| Server IP : 182.53.201.61 / Your IP : 216.73.217.175 Web Server : Apache/2.2.15 (Fedora) System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686 User : apache ( 48) PHP Version : 5.3.3 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/share/pygobject/2.0/codegen/ |
Upload File : |
Ñò
V¢ºJc
@ sz d d k Z d d k Z d d k Z d d k Z d d k Z d d k Z e i d ƒ Z e i d ƒ Z e i d ƒ Z d „ Z
d d „ Z d „ Z
d „ Z d Z e i d
ƒ Z g d „ Z d „ Z g d
„ Z d „ Z e i d e i e i Bƒ Z e i d ƒ Z e i d ƒ Z e i d ƒ Z e i d ƒ Z d d d „ ƒ YZ d „ Z e d j o e i e e i ƒ ƒ n d S( iÿÿÿÿNs ([^A-Z])([A-Z])s ([A-Z][A-Z])([A-Z][0-9a-z])s ^([A-Z])([A-Z])c C sI t i d | ƒ } t i d | ƒ } t i d | d d ƒ} t i | ƒ S( sš Converts a typename to the equivalent upercase and underscores
name. This is used to form the type conversion macros and enum/flag
name variabless \1_\2t counti ( t _upperstr_pat1t subt _upperstr_pat2t _upperstr_pat3t stringt upper( t name( ( s) /usr/share/pygobject/2.0/codegen/h2def.pyt to_upper_strR s c C s[ | o8 t i t i | ƒ d t | t | ƒ ƒ d d d ƒ St i t | ƒ d d d ƒ S( s7 create a typecode (eg. GTK_TYPE_WIDGET) from a typenamet _t _TYPE_i ( R t replaceR R t len( t typenamet namespace( ( s) /usr/share/pygobject/2.0/codegen/h2def.pyt typecode[ s 8c C sŸ g } d } x€ t i | d | ƒ } | d j oI | i | | | !ƒ t i | d | ƒ } | d j o | d } qŒ Pq | i | | ƒ Pq t i | d ƒ S( Ni s /*s */i t ( R t findt appendt join( t buft partst lastpost pos( ( s) /usr/share/pygobject/2.0/codegen/h2def.pyt strip_commentse s
c C s% t i d ƒ } | i d | ƒ } | S( Ns [A-Z]*_API R ( t ret compileR ( R t pat( ( s) /usr/share/pygobject/2.0/codegen/h2def.pyt
strip_dll_apiw s s [A-Z][a-z]*[A-Z][A-Za-z0-9]*s ([A-Z]+[a-z]*)([A-Za-z0-9]+)c C s, t | ƒ } t | ƒ } g } t i d t d d t d t i ƒ } d } xg | t | ƒ j oS | i | | ƒ } | p Pn | i | i d ƒ | i d ƒ f ƒ | i
ƒ } qP Wt i d d t d d t d
t i ƒ } d } xg | t | ƒ j oS | i | | ƒ } | p Pn | i | i d ƒ | i d ƒ f ƒ | i
ƒ } qí Wt i d t d d t d t i ƒ } d } x~ | t | ƒ j oj | i | | ƒ } | p Pn | i d ƒ | i d ƒ f } | | j o | i | ƒ n | i
ƒ } q†Wt i d d t d
d t d t i ƒ } d } x~ | t | ƒ j oj | i | | ƒ } | p Pn | i d ƒ | i d ƒ f } | | j o | i | ƒ n | i
ƒ } q:Wt i d t d d t i ƒ } d } xŽ | t | ƒ j oz | i | | ƒ } | p Pn | i d ƒ d f } | i d ƒ d d f } | | j o | i | ƒ n | i
ƒ } qâWt i d t d d t i ƒ } d } xŽ | t | ƒ j oz | i | | ƒ } | p Pn | i d ƒ d f } | i d ƒ d d f } | | j o | i | ƒ n | i
ƒ } qšWd S( s9
Try to find object definitions in header files.
s struct\s+_(s )\s*{\s*t (s )\s+i i i s typedef struct\s+[_\w]*\s*{\s*s
)\s+[^}]*}\s*s )\s*;s
)Class\s*{\s*s )Class\s+s )Class\s+[^}]*}\s*s
)Class\s*;s GTypeInterface\s+R t Classt GTypeInterfaces
)Iface\s*{\s*t IfaceN( R R R R t obj_name_patt MULTILINER t searchR t groupt end( R t objdefst maybeobjdefsR R t mt tt t2( ( s) /usr/share/pygobject/2.0/codegen/h2def.pyt
find_obj_defs€ s’ # %' %#
'
c C s¦ | i ƒ d } x | t | ƒ j o{ | | \ } } xd t | d t | ƒ ƒ D]? } | | d | j o$ | i | d | | ƒ | | =PqP qP W| d } q W| S( Ni i ( t sortR t ranget insert( R&