]> git.draconx.ca Git - gob-dx.git/blob - src/treefuncs.def
Replace gnulib patch with new common helper macro.
[gob-dx.git] / src / treefuncs.def
1 # Run ./generate_treefuncs.pl after modifying this to regenerate
2 # treefuncs.[ch]
3
4 # These are the parse tree definitions, eliminates typos
5
6 HEADER
7 /* for ccode type */
8 enum {
9         A_CCODE,
10         AT_CCODE,
11         C_CCODE,
12         AD_CCODE,
13         H_CCODE,
14         HT_CCODE,
15         PH_CCODE,
16         CT_CCODE
17 };
18
19 /* check type */
20 enum {
21         NULL_CHECK,
22         TYPE_CHECK,
23         LT_CHECK,
24         GT_CHECK,
25         LE_CHECK,
26         GE_CHECK,
27         EQ_CHECK,
28         NE_CHECK
29 };
30
31 /* scope type */
32 enum {
33         NO_SCOPE,
34         PUBLIC_SCOPE,
35         PRIVATE_SCOPE,
36         PROTECTED_SCOPE,
37         CLASS_SCOPE
38 };
39
40 /* method type */
41 enum {
42         REGULAR_METHOD,
43         INIT_METHOD,
44         CLASS_INIT_METHOD,
45         CONSTRUCTOR_METHOD,
46         DISPOSE_METHOD,
47         FINALIZE_METHOD,
48         VIRTUAL_METHOD,
49         SIGNAL_LAST_METHOD,
50         SIGNAL_FIRST_METHOD,
51         OVERRIDE_METHOD
52 };
53
54 ENDHEADER
55
56 CLASS Class
57   STRING        otype   # this object class type
58   STRING        ptype   # parent class type
59   STRING        bonobo_object_class # Class for BonoboObject
60   BOOL          glade_xml # Glade XML Class
61   STRING        chunk_size # if the object should be allocated with mem_chunks
62   STRINGLIST    interfaces # GObject interfaces this class exports
63   NODELIST      nodes
64   BOOL          abstract # if G_TYPE_FLAG_ABSTRACT should be used
65   BOOL          dynamic # if class is dynamically registered via GTypeModule
66 ENDCLASS
67
68 CLASS Type
69   STRING        name    # the specifier part
70   STRING        pointer # the pointer part
71   STRING        postfix
72 ENDCLASS
73
74 CLASS CCode
75   INT           cctype
76   STRING        cbuf
77   INT           line_no
78 ENDCLASS
79
80 CLASS Check
81   INT           chtype
82   STRING        number
83 ENDCLASS
84
85 CLASS FuncArg
86   TYPE          atype
87   STRING        name
88   NODELIST      checks
89 ENDCLASS
90
91 CLASS Argument
92   STRING        gtktype
93   TYPE          atype
94   STRINGLIST    flags
95   STRING        name
96   STRING        get
97   INT           get_line
98   STRING        set
99   INT           set_line
100   INT           line_no
101 ENDCLASS
102
103 CLASS Property
104   STRING        gtktype
105   TYPE          ptype
106   STRINGLIST    flags
107   STRING        name
108   STRING        canonical_name
109   STRING        nick
110   STRING        blurb
111   STRING        minimum
112   STRING        maximum
113   STRING        default_value
114   STRING        extra_gtktype
115   BOOL          override
116   BOOL          link
117   BOOL          export
118   STRING        get
119   INT           get_line
120   STRING        set
121   INT           set_line
122   INT           line_no
123 ENDCLASS
124
125 CLASS Method
126   INT           scope           # scope type
127   INT           method          # method type
128   TYPE          mtype
129   STRING        otype           # for override methods
130   STRINGLIST    gtktypes        # GObject types for a signal
131   STRINGLIST    flags           # G_SIGNAL_* flags for a signal
132   STRING        signal_name     # Name of signal
133   STRING        id
134   NODELIST      args
135   STRING        funcattrs       # GLib function attribute macros
136   STRING        onerror
137   STRING        defreturn
138   STRING        cbuf
139   INT           line_no
140   INT           ccode_line
141   BOOL          vararg
142   INT           unique_id       # A unique id for new methods
143   BOOL          bonobo_object_func      # Function for BonoboObject
144   STRING        interface       # interface this belongs to
145 ENDCLASS
146
147 CLASS Variable
148   INT           scope
149   TYPE          vtype
150   BOOL          glade_widget
151   STRING        id
152   INT           line_no
153   BOOL          destructor_unref
154   STRING        destructor
155   INT           destructor_line
156   BOOL          destructor_simple
157   STRING        initializer
158   INT           initializer_line
159   BOOL          initializer_simple
160 ENDCLASS
161
162 CLASS EnumDef
163   STRING        etype
164   STRING        prefix
165   NODELIST      values
166 ENDCLASS
167
168 CLASS EnumValue
169   STRING        name
170   STRING        value
171 ENDCLASS
172
173 CLASS Flags
174   STRING        ftype
175   STRING        prefix
176   STRINGLIST    values
177 ENDCLASS
178
179 CLASS Error
180   STRING        etype
181   STRING        prefix
182   STRINGLIST    values
183 ENDCLASS