ó ĦĊ2Yc@`sûddlmZddlmZddlmZddlmZddlZddlmZddlm Z ej j d kr‘dd l m Z ndd l m Z id ej6d ej6d ej6d ej6Zd„Zd„Zdefd„ƒYZdS(i(tabsolute_import(tdivision(tprint_function(tunicode_literalsNi(tast(tCCodeGeneratori(tStringIOuNULLu""ug_object_get_type ()cC`stj|ƒ}|r|SdS(Nu0(tDEFAULT_C_VALUEStget(ttypevaltdefault((su/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/testcodegen.pytget_default_for_typeval*scC`sT|jr|jjddƒS|jr>|jjddƒjƒStsPt|ƒ‚dS(Nu u_u.u(ttarget_fundamentaltreplacet target_ginametlowertFalsetAssertionError(R ((su/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/testcodegen.pytuscore_from_type1s   tEverythingCodeGeneratorcB`seZd„Zd„ZRS(c C`s@tjddƒ|_t|j|||||||ƒ|_dS(Nu Everythingu1.0(Rt Namespacet namespaceRtgen(tselftout_h_filenametout_c_filenametfunction_decorationtinclude_first_headertinclude_last_headertinclude_first_srctinclude_last_src((su/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/testcodegen.pyt__init__<s c C`sçtjg}|jtjƒtjdtjtjdtjƒgt|j j dƒƒ}|j j |ƒd}|j j ||ƒd}x™|D]‘}|t|ƒ}|j j |ƒ}tj|tj|dtjƒgt|ƒ}|j j |ƒt|ƒ}d|f}|j j ||ƒqŽWd}xı|D]ħ}|tjkrKq0n|t|ƒ}|j j |ƒ}tj|tjtjdtjƒtjd|dtjdtjƒgt|ƒ}|j j |ƒ|j j |dƒq0Wd }xû|D]ó}|tjkr qòn|t|ƒ}|j j |ƒ}tj|tjtjdtjƒtjd|dtjdtjƒgt|ƒ}|j j |ƒtd ƒ}t|jƒ}|jd |fƒ|jdƒ|j j ||jƒƒqòWd }xä|D]Ü}|tjkrqön|t|ƒ}|j j |ƒ}tj|tj|dtjƒtjd|dtjdtjƒgt|ƒ}|j j |ƒtd ƒ}t|jƒ}|jd ƒ|j j ||jƒƒqöW|j jƒdS(Nunullfuncttransferu return; u const return u return %s; u oneparam uarg0t directionu one_outparam uwu *arg0 = %s; upassthrough_one u return arg0; (RtTYPE_ANYtextendtINTROSPECTABLE_BASICtFunctiontReturnt TYPE_NONEtPARAM_TRANSFER_NONERRt gen_symbolRtappendtset_function_bodyRR t ParametertPARAM_DIRECTION_INtPARAM_DIRECTION_OUTRtretvaltwritetgetvaluetcodegen( RttypestfunctbodytprefixR tnametsymR ((su/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/testcodegen.pyR0Ns|               (t__name__t __module__RR0(((su/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/testcodegen.pyR:s (t __future__RRRRtsystRR2Rt version_infotmajorRtioR"t TYPE_STRINGt TYPE_FILENAMEt TYPE_GTYPERR RtobjectR(((su/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/testcodegen.pyts