~ubuntu-branches/ubuntu/lucid/vala/lucid

« back to all changes in this revision

Viewing changes to vala/valadestructor.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:
229
229
void vala_code_node_unref (gpointer instance);
230
230
GParamSpec* vala_param_spec_code_node (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
231
231
void vala_value_set_code_node (GValue* value, gpointer v_object);
 
232
void vala_value_take_code_node (GValue* value, gpointer v_object);
232
233
gpointer vala_value_get_code_node (const GValue* value);
233
234
GType vala_code_node_get_type (void);
234
235
gpointer vala_code_visitor_ref (gpointer instance);
235
236
void vala_code_visitor_unref (gpointer instance);
236
237
GParamSpec* vala_param_spec_code_visitor (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
237
238
void vala_value_set_code_visitor (GValue* value, gpointer v_object);
 
239
void vala_value_take_code_visitor (GValue* value, gpointer v_object);
238
240
gpointer vala_value_get_code_visitor (const GValue* value);
239
241
GType vala_code_visitor_get_type (void);
240
242
GType vala_semantic_analyzer_get_type (void);
255
257
void vala_source_reference_unref (gpointer instance);
256
258
GParamSpec* vala_param_spec_source_reference (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
257
259
void vala_value_set_source_reference (GValue* value, gpointer v_object);
 
260
void vala_value_take_source_reference (GValue* value, gpointer v_object);
258
261
gpointer vala_value_get_source_reference (const GValue* value);
259
262
GType vala_source_reference_get_type (void);
260
263
ValaSymbol* vala_symbol_construct (GType object_type, const char* name, ValaSourceReference* source_reference);
273
276
void vala_scope_unref (gpointer instance);
274
277
GParamSpec* vala_param_spec_scope (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
275
278
void vala_value_set_scope (GValue* value, gpointer v_object);
 
279
void vala_value_take_scope (GValue* value, gpointer v_object);
276
280
gpointer vala_value_get_scope (const GValue* value);
277
281
GType vala_scope_get_type (void);
278
282
ValaScope* vala_symbol_get_scope (ValaSymbol* self);
322
326
 
323
327
static gboolean vala_destructor_real_check (ValaCodeNode* base, ValaSemanticAnalyzer* analyzer) {
324
328
        ValaDestructor * self;
325
 
        gboolean result;
 
329
        gboolean result = FALSE;
326
330
        self = (ValaDestructor*) base;
327
331
        g_return_val_if_fail (analyzer != NULL, FALSE);
328
332
        if (vala_code_node_get_checked ((ValaCodeNode*) self)) {
416
420
 
417
421
 
418
422
GType vala_destructor_get_type (void) {
419
 
        static GType vala_destructor_type_id = 0;
420
 
        if (vala_destructor_type_id == 0) {
 
423
        static volatile gsize vala_destructor_type_id__volatile = 0;
 
424
        if (g_once_init_enter (&vala_destructor_type_id__volatile)) {
421
425
                static const GTypeInfo g_define_type_info = { sizeof (ValaDestructorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) vala_destructor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ValaDestructor), 0, (GInstanceInitFunc) vala_destructor_instance_init, NULL };
 
426
                GType vala_destructor_type_id;
422
427
                vala_destructor_type_id = g_type_register_static (VALA_TYPE_SYMBOL, "ValaDestructor", &g_define_type_info, 0);
 
428
                g_once_init_leave (&vala_destructor_type_id__volatile, vala_destructor_type_id);
423
429
        }
424
 
        return vala_destructor_type_id;
 
430
        return vala_destructor_type_id__volatile;
425
431
}
426
432
 
427
433