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

« back to all changes in this revision

Viewing changes to vala/valamethodtype.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:
249
249
        ValaSymbol* (*get_pointer_member) (ValaDataType* self, const char* member_name);
250
250
        gboolean (*is_real_struct_type) (ValaDataType* self);
251
251
        char* (*get_type_id) (ValaDataType* self);
252
 
        char* (*get_type_signature) (ValaDataType* self);
253
252
        gboolean (*is_disposable) (ValaDataType* self);
254
253
        ValaDataType* (*get_actual_type) (ValaDataType* self, ValaDataType* derived_instance_type, ValaMemberAccess* method_access, ValaCodeNode* node_reference);
255
254
};
274
273
void vala_code_node_unref (gpointer instance);
275
274
GParamSpec* vala_param_spec_code_node (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
276
275
void vala_value_set_code_node (GValue* value, gpointer v_object);
 
276
void vala_value_take_code_node (GValue* value, gpointer v_object);
277
277
gpointer vala_value_get_code_node (const GValue* value);
278
278
GType vala_code_node_get_type (void);
279
279
gpointer vala_code_visitor_ref (gpointer instance);
280
280
void vala_code_visitor_unref (gpointer instance);
281
281
GParamSpec* vala_param_spec_code_visitor (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
282
282
void vala_value_set_code_visitor (GValue* value, gpointer v_object);
 
283
void vala_value_take_code_visitor (GValue* value, gpointer v_object);
283
284
gpointer vala_value_get_code_visitor (const GValue* value);
284
285
GType vala_code_visitor_get_type (void);
285
286
GType vala_semantic_analyzer_get_type (void);
292
293
void vala_scope_unref (gpointer instance);
293
294
GParamSpec* vala_param_spec_scope (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
294
295
void vala_value_set_scope (GValue* value, gpointer v_object);
 
296
void vala_value_take_scope (GValue* value, gpointer v_object);
295
297
gpointer vala_value_get_scope (const GValue* value);
296
298
GType vala_scope_get_type (void);
297
299
GType vala_formal_parameter_get_type (void);
347
349
 
348
350
static gboolean vala_method_type_real_is_invokable (ValaDataType* base) {
349
351
        ValaMethodType * self;
350
 
        gboolean result;
 
352
        gboolean result = FALSE;
351
353
        self = (ValaMethodType*) base;
352
354
        result = TRUE;
353
355
        return result;
361
363
 
362
364
static ValaDataType* vala_method_type_real_get_return_type (ValaDataType* base) {
363
365
        ValaMethodType * self;
364
 
        ValaDataType* result;
 
366
        ValaDataType* result = NULL;
365
367
        self = (ValaMethodType*) base;
366
368
        result = _vala_code_node_ref0 (vala_method_get_return_type (self->priv->_method_symbol));
367
369
        return result;
370
372
 
371
373
static ValaList* vala_method_type_real_get_parameters (ValaDataType* base) {
372
374
        ValaMethodType * self;
373
 
        ValaList* result;
 
375
        ValaList* result = NULL;
374
376
        self = (ValaMethodType*) base;
375
377
        result = vala_method_get_parameters (self->priv->_method_symbol);
376
378
        return result;
379
381
 
380
382
static ValaDataType* vala_method_type_real_copy (ValaDataType* base) {
381
383
        ValaMethodType * self;
382
 
        ValaDataType* result;
 
384
        ValaDataType* result = NULL;
383
385
        self = (ValaMethodType*) base;
384
386
        result = (ValaDataType*) vala_method_type_new (self->priv->_method_symbol);
385
387
        return result;
388
390
 
389
391
static gboolean vala_method_type_real_compatible (ValaDataType* base, ValaDataType* target_type) {
390
392
        ValaMethodType * self;
391
 
        gboolean result;
 
393
        gboolean result = FALSE;
392
394
        ValaDataType* _tmp0_;
393
395
        ValaDelegateType* dt;
394
396
        self = (ValaMethodType*) base;
407
409
 
408
410
static char* vala_method_type_real_to_qualified_string (ValaDataType* base, ValaScope* scope) {
409
411
        ValaMethodType * self;
410
 
        char* result;
 
412
        char* result = NULL;
411
413
        self = (ValaMethodType*) base;
412
414
        result = vala_symbol_get_full_name ((ValaSymbol*) self->priv->_method_symbol);
413
415
        return result;
416
418
 
417
419
static char* vala_method_type_real_get_cname (ValaDataType* base) {
418
420
        ValaMethodType * self;
419
 
        char* result;
 
421
        char* result = NULL;
420
422
        self = (ValaMethodType*) base;
421
423
        result = g_strdup ("gpointer");
422
424
        return result;
425
427
 
426
428
static ValaSymbol* vala_method_type_real_get_member (ValaDataType* base, const char* member_name) {
427
429
        ValaMethodType * self;
428
 
        ValaSymbol* result;
 
430
        ValaSymbol* result = NULL;
429
431
        gboolean _tmp0_ = FALSE;
430
432
        self = (ValaMethodType*) base;
431
433
        g_return_val_if_fail (member_name != NULL, NULL);
509
511
 
510
512
 
511
513
GType vala_method_type_get_type (void) {
512
 
        static GType vala_method_type_type_id = 0;
513
 
        if (vala_method_type_type_id == 0) {
 
514
        static volatile gsize vala_method_type_type_id__volatile = 0;
 
515
        if (g_once_init_enter (&vala_method_type_type_id__volatile)) {
514
516
                static const GTypeInfo g_define_type_info = { sizeof (ValaMethodTypeClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) vala_method_type_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ValaMethodType), 0, (GInstanceInitFunc) vala_method_type_instance_init, NULL };
 
517
                GType vala_method_type_type_id;
515
518
                vala_method_type_type_id = g_type_register_static (VALA_TYPE_DATA_TYPE, "ValaMethodType", &g_define_type_info, 0);
 
519
                g_once_init_leave (&vala_method_type_type_id__volatile, vala_method_type_type_id);
516
520
        }
517
 
        return vala_method_type_type_id;
 
521
        return vala_method_type_type_id__volatile;
518
522
}
519
523
 
520
524