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

« back to all changes in this revision

Viewing changes to vala/valaenumvaluetype.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:
261
261
        ValaSymbol* (*get_pointer_member) (ValaDataType* self, const char* member_name);
262
262
        gboolean (*is_real_struct_type) (ValaDataType* self);
263
263
        char* (*get_type_id) (ValaDataType* self);
264
 
        char* (*get_type_signature) (ValaDataType* self);
265
264
        gboolean (*is_disposable) (ValaDataType* self);
266
265
        ValaDataType* (*get_actual_type) (ValaDataType* self, ValaDataType* derived_instance_type, ValaMemberAccess* method_access, ValaCodeNode* node_reference);
267
266
};
291
290
void vala_code_node_unref (gpointer instance);
292
291
GParamSpec* vala_param_spec_code_node (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
293
292
void vala_value_set_code_node (GValue* value, gpointer v_object);
 
293
void vala_value_take_code_node (GValue* value, gpointer v_object);
294
294
gpointer vala_value_get_code_node (const GValue* value);
295
295
GType vala_code_node_get_type (void);
296
296
gpointer vala_code_visitor_ref (gpointer instance);
297
297
void vala_code_visitor_unref (gpointer instance);
298
298
GParamSpec* vala_param_spec_code_visitor (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
299
299
void vala_value_set_code_visitor (GValue* value, gpointer v_object);
 
300
void vala_value_take_code_visitor (GValue* value, gpointer v_object);
300
301
gpointer vala_value_get_code_visitor (const GValue* value);
301
302
GType vala_code_visitor_get_type (void);
302
303
GType vala_semantic_analyzer_get_type (void);
309
310
void vala_scope_unref (gpointer instance);
310
311
GParamSpec* vala_param_spec_scope (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
311
312
void vala_value_set_scope (GValue* value, gpointer v_object);
 
313
void vala_value_take_scope (GValue* value, gpointer v_object);
312
314
gpointer vala_value_get_scope (const GValue* value);
313
315
GType vala_scope_get_type (void);
314
316
GType vala_formal_parameter_get_type (void);
328
330
void vala_source_reference_unref (gpointer instance);
329
331
GParamSpec* vala_param_spec_source_reference (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
330
332
void vala_value_set_source_reference (GValue* value, gpointer v_object);
 
333
void vala_value_take_source_reference (GValue* value, gpointer v_object);
331
334
gpointer vala_value_get_source_reference (const GValue* value);
332
335
GType vala_source_reference_get_type (void);
333
336
ValaSourceReference* vala_code_node_get_source_reference (ValaCodeNode* self);
342
345
void vala_code_context_unref (gpointer instance);
343
346
GParamSpec* vala_param_spec_code_context (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
344
347
void vala_value_set_code_context (GValue* value, gpointer v_object);
 
348
void vala_value_take_code_context (GValue* value, gpointer v_object);
345
349
gpointer vala_value_get_code_context (const GValue* value);
346
350
GType vala_code_context_get_type (void);
347
351
ValaCodeContext* vala_code_context_get (void);
368
372
 
369
373
static ValaDataType* vala_enum_value_type_real_copy (ValaDataType* base) {
370
374
        ValaEnumValueType * self;
371
 
        ValaDataType* result;
 
375
        ValaDataType* result = NULL;
372
376
        ValaEnumValueType* _result_;
373
377
        self = (ValaEnumValueType*) base;
374
378
        _result_ = vala_enum_value_type_new (VALA_ENUM (vala_value_type_get_type_symbol ((ValaValueType*) self)));
382
386
 
383
387
static ValaSymbol* vala_enum_value_type_real_get_member (ValaDataType* base, const char* member_name) {
384
388
        ValaEnumValueType * self;
385
 
        ValaSymbol* result;
 
389
        ValaSymbol* result = NULL;
386
390
        ValaSymbol* _result_;
387
391
        self = (ValaEnumValueType*) base;
388
392
        g_return_val_if_fail (member_name != NULL, NULL);
414
418
 
415
419
 
416
420
GType vala_enum_value_type_get_type (void) {
417
 
        static GType vala_enum_value_type_type_id = 0;
418
 
        if (vala_enum_value_type_type_id == 0) {
 
421
        static volatile gsize vala_enum_value_type_type_id__volatile = 0;
 
422
        if (g_once_init_enter (&vala_enum_value_type_type_id__volatile)) {
419
423
                static const GTypeInfo g_define_type_info = { sizeof (ValaEnumValueTypeClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) vala_enum_value_type_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ValaEnumValueType), 0, (GInstanceInitFunc) vala_enum_value_type_instance_init, NULL };
 
424
                GType vala_enum_value_type_type_id;
420
425
                vala_enum_value_type_type_id = g_type_register_static (VALA_TYPE_VALUE_TYPE, "ValaEnumValueType", &g_define_type_info, 0);
 
426
                g_once_init_leave (&vala_enum_value_type_type_id__volatile, vala_enum_value_type_type_id);
421
427
        }
422
 
        return vala_enum_value_type_type_id;
 
428
        return vala_enum_value_type_type_id__volatile;
423
429
}
424
430
 
425
431