~ubuntu-branches/ubuntu/raring/gjs/raring

« back to all changes in this revision

Viewing changes to gi/function.c

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2012-09-08 20:48:59 UTC
  • mfrom: (1.10.4)
  • Revision ID: package-import@ubuntu.com-20120908204859-5ak4lr1kkza1mudq
Tags: 1.33.10-0ubuntu1
* New upstream bugfix release.
* debian/control.in:
  - Bump minimum gobject-introspection

Show diffs side-by-side

added added

removed removed

Lines of Context:
599
599
    gboolean is_method;
600
600
    GITypeInfo return_info;
601
601
    GITypeTag return_tag;
602
 
    GIInfoType info_type;
603
602
    jsval *return_values = NULL;
604
603
    guint8 next_rval = 0; /* index into return_values */
605
604
    GSList *iter;
617
616
        completed_trampolines = NULL;
618
617
    }
619
618
 
620
 
    info_type = g_base_info_get_type((GIBaseInfo *)function->info);
621
 
 
622
 
    switch (info_type) {
623
 
    case GI_INFO_TYPE_FUNCTION:
624
 
        {
625
 
            GIFunctionInfoFlags flags;
626
 
            flags = g_function_info_get_flags((GIFunctionInfo *)function->info);
627
 
            is_method = (flags & GI_FUNCTION_IS_METHOD) != 0;
628
 
            can_throw_gerror = (flags & GI_FUNCTION_THROWS) != 0;
629
 
        }
630
 
        break;
631
 
    case GI_INFO_TYPE_VFUNC:
632
 
        {
633
 
            GIVFuncInfoFlags flags;
634
 
            flags = g_vfunc_info_get_flags ((GIVFuncInfo *)function->info);
635
 
            can_throw_gerror = (flags & GI_VFUNC_THROWS) != 0;
636
 
        }
637
 
        is_method = TRUE;
638
 
      break;
639
 
    case GI_INFO_TYPE_CALLBACK:
640
 
        is_method = TRUE;
641
 
        can_throw_gerror = FALSE;
642
 
        break;
643
 
    default:
644
 
        g_assert_not_reached();
645
 
    }
 
619
    is_method = g_callable_info_is_method(function->info);
 
620
    can_throw_gerror = g_callable_info_can_throw_gerror(function->info);
646
621
 
647
622
    c_argc = function->invoker.cif.nargs;
648
623
    gi_argc = g_callable_info_get_n_args( (GICallableInfo*) function->info);