~ubuntu-branches/ubuntu/maverick/vala/maverick

« back to all changes in this revision

Viewing changes to vala/valastatementlist.c

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2010-04-02 10:10:55 UTC
  • mfrom: (1.4.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20100402101055-qbx3okzv0tnp3wpp
Tags: 0.8.0-0ubuntu1
* New upstream release:
  - Infer type arguments when calling generic methods.
  - Support `in' operator for arrays.
  - Add experimental support for regular expression literals.
  - Add experimental support for chained relational expressions.
  - Add va_list support.
  - Add clutter-gtk-0.10 bindings (Gordon Allott).
  - Add gdl-1.0 bindings (Nicolas Joseph).
  - Add gstreamer-app-0.10 bindings (Sebastian Dröge).
  - Add gstreamer-cdda-0.10 bindings (Sebastian Dröge).
  - Add gudev-1.0 bindings (Jim Nelson).
  - Add libgda-report-4.0 bindings (Shawn Ferris).
  - Add libgvc (graphviz) bindings (Martin Olsson).
  - Add purple bindings (Adrien Bustany).
  - Many bug fixes and binding updates.
* debian/patches/99_ltmain_as-needed.patch: refreshed

Show diffs side-by-side

added added

removed removed

Lines of Context:
187
187
void vala_code_node_unref (gpointer instance);
188
188
GParamSpec* vala_param_spec_code_node (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
189
189
void vala_value_set_code_node (GValue* value, gpointer v_object);
 
190
void vala_value_take_code_node (GValue* value, gpointer v_object);
190
191
gpointer vala_value_get_code_node (const GValue* value);
191
192
GType vala_code_node_get_type (void);
192
193
gpointer vala_code_visitor_ref (gpointer instance);
193
194
void vala_code_visitor_unref (gpointer instance);
194
195
GParamSpec* vala_param_spec_code_visitor (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
195
196
void vala_value_set_code_visitor (GValue* value, gpointer v_object);
 
197
void vala_value_take_code_visitor (GValue* value, gpointer v_object);
196
198
gpointer vala_value_get_code_visitor (const GValue* value);
197
199
GType vala_code_visitor_get_type (void);
198
200
GType vala_semantic_analyzer_get_type (void);
212
214
void vala_source_reference_unref (gpointer instance);
213
215
GParamSpec* vala_param_spec_source_reference (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
214
216
void vala_value_set_source_reference (GValue* value, gpointer v_object);
 
217
void vala_value_take_source_reference (GValue* value, gpointer v_object);
215
218
gpointer vala_value_get_source_reference (const GValue* value);
216
219
GType vala_source_reference_get_type (void);
217
220
void vala_code_node_set_source_reference (ValaCodeNode* self, ValaSourceReference* value);
243
246
 
244
247
 
245
248
ValaStatement* vala_statement_list_get (ValaStatementList* self, gint index) {
246
 
        ValaStatement* result;
 
249
        ValaStatement* result = NULL;
247
250
        g_return_val_if_fail (self != NULL, NULL);
248
251
        result = (ValaStatement*) vala_list_get (self->priv->list, index);
249
252
        return result;
328
331
 
329
332
 
330
333
GType vala_statement_list_get_type (void) {
331
 
        static GType vala_statement_list_type_id = 0;
332
 
        if (vala_statement_list_type_id == 0) {
 
334
        static volatile gsize vala_statement_list_type_id__volatile = 0;
 
335
        if (g_once_init_enter (&vala_statement_list_type_id__volatile)) {
333
336
                static const GTypeInfo g_define_type_info = { sizeof (ValaStatementListClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) vala_statement_list_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ValaStatementList), 0, (GInstanceInitFunc) vala_statement_list_instance_init, NULL };
334
337
                static const GInterfaceInfo vala_statement_info = { (GInterfaceInitFunc) vala_statement_list_vala_statement_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
 
338
                GType vala_statement_list_type_id;
335
339
                vala_statement_list_type_id = g_type_register_static (VALA_TYPE_CODE_NODE, "ValaStatementList", &g_define_type_info, 0);
336
340
                g_type_add_interface_static (vala_statement_list_type_id, VALA_TYPE_STATEMENT, &vala_statement_info);
 
341
                g_once_init_leave (&vala_statement_list_type_id__volatile, vala_statement_list_type_id);
337
342
        }
338
 
        return vala_statement_list_type_id;
 
343
        return vala_statement_list_type_id__volatile;
339
344
}
340
345
 
341
346