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

« back to all changes in this revision

Viewing changes to vala/valaintegertype.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:
251
251
        ValaSymbol* (*get_pointer_member) (ValaDataType* self, const char* member_name);
252
252
        gboolean (*is_real_struct_type) (ValaDataType* self);
253
253
        char* (*get_type_id) (ValaDataType* self);
254
 
        char* (*get_type_signature) (ValaDataType* self);
255
254
        gboolean (*is_disposable) (ValaDataType* self);
256
255
        ValaDataType* (*get_actual_type) (ValaDataType* self, ValaDataType* derived_instance_type, ValaMemberAccess* method_access, ValaCodeNode* node_reference);
257
256
};
286
285
void vala_code_node_unref (gpointer instance);
287
286
GParamSpec* vala_param_spec_code_node (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
288
287
void vala_value_set_code_node (GValue* value, gpointer v_object);
 
288
void vala_value_take_code_node (GValue* value, gpointer v_object);
289
289
gpointer vala_value_get_code_node (const GValue* value);
290
290
GType vala_code_node_get_type (void);
291
291
gpointer vala_code_visitor_ref (gpointer instance);
292
292
void vala_code_visitor_unref (gpointer instance);
293
293
GParamSpec* vala_param_spec_code_visitor (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
294
294
void vala_value_set_code_visitor (GValue* value, gpointer v_object);
 
295
void vala_value_take_code_visitor (GValue* value, gpointer v_object);
295
296
gpointer vala_value_get_code_visitor (const GValue* value);
296
297
GType vala_code_visitor_get_type (void);
297
298
GType vala_semantic_analyzer_get_type (void);
304
305
void vala_scope_unref (gpointer instance);
305
306
GParamSpec* vala_param_spec_scope (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
306
307
void vala_value_set_scope (GValue* value, gpointer v_object);
 
308
void vala_value_take_scope (GValue* value, gpointer v_object);
307
309
gpointer vala_value_get_scope (const GValue* value);
308
310
GType vala_scope_get_type (void);
309
311
GType vala_formal_parameter_get_type (void);
324
326
void vala_source_reference_unref (gpointer instance);
325
327
GParamSpec* vala_param_spec_source_reference (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
326
328
void vala_value_set_source_reference (GValue* value, gpointer v_object);
 
329
void vala_value_take_source_reference (GValue* value, gpointer v_object);
327
330
gpointer vala_value_get_source_reference (const GValue* value);
328
331
GType vala_source_reference_get_type (void);
329
332
ValaSourceReference* vala_code_node_get_source_reference (ValaCodeNode* self);
365
368
 
366
369
static ValaDataType* vala_integer_type_real_copy (ValaDataType* base) {
367
370
        ValaIntegerType * self;
368
 
        ValaDataType* result;
 
371
        ValaDataType* result = NULL;
369
372
        ValaIntegerType* _result_;
370
373
        self = (ValaIntegerType*) base;
371
374
        _result_ = vala_integer_type_new (VALA_STRUCT (vala_value_type_get_type_symbol ((ValaValueType*) self)), self->priv->literal_value, self->priv->literal_type_name);
384
387
 
385
388
static gboolean vala_integer_type_real_compatible (ValaDataType* base, ValaDataType* target_type) {
386
389
        ValaIntegerType * self;
387
 
        gboolean result;
 
390
        gboolean result = FALSE;
388
391
        gboolean _tmp0_ = FALSE;
389
392
        self = (ValaIntegerType*) base;
390
393
        g_return_val_if_fail (target_type != NULL, FALSE);
476
479
 
477
480
 
478
481
GType vala_integer_type_get_type (void) {
479
 
        static GType vala_integer_type_type_id = 0;
480
 
        if (vala_integer_type_type_id == 0) {
 
482
        static volatile gsize vala_integer_type_type_id__volatile = 0;
 
483
        if (g_once_init_enter (&vala_integer_type_type_id__volatile)) {
481
484
                static const GTypeInfo g_define_type_info = { sizeof (ValaIntegerTypeClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) vala_integer_type_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ValaIntegerType), 0, (GInstanceInitFunc) vala_integer_type_instance_init, NULL };
 
485
                GType vala_integer_type_type_id;
482
486
                vala_integer_type_type_id = g_type_register_static (VALA_TYPE_VALUE_TYPE, "ValaIntegerType", &g_define_type_info, 0);
 
487
                g_once_init_leave (&vala_integer_type_type_id__volatile, vala_integer_type_type_id);
483
488
        }
484
 
        return vala_integer_type_type_id;
 
489
        return vala_integer_type_type_id__volatile;
485
490
}
486
491
 
487
492