]> git.draconx.ca Git - gob-dx.git/blob - src/treefuncs.def
Release 1.0.9
[gob-dx.git] / src / treefuncs.def
1 HEADER
2 /* for ccode type */
3 enum {
4         A_CCODE,
5         AT_CCODE,
6         C_CCODE,
7         H_CCODE,
8         HT_CCODE,
9         PH_CCODE
10 };
11
12 /* check type */
13 enum {
14         NULL_CHECK,
15         TYPE_CHECK,
16         LT_CHECK,
17         GT_CHECK,
18         LE_CHECK,
19         GE_CHECK,
20         EQ_CHECK,
21         NE_CHECK
22 };
23
24 /* scope type */
25 enum {
26         NO_SCOPE,
27         PUBLIC_SCOPE,
28         PRIVATE_SCOPE,
29         PROTECTED_SCOPE,
30         CLASS_SCOPE
31 };
32
33 /* method type */
34 enum {
35         REGULAR_METHOD,
36         INIT_METHOD,
37         CLASS_INIT_METHOD,
38         VIRTUAL_METHOD,
39         SIGNAL_LAST_METHOD,
40         SIGNAL_FIRST_METHOD,
41         OVERRIDE_METHOD
42 };
43 ENDHEADER
44
45 CLASS Class
46   STRING        otype   # this object class type
47   STRING        ptype   # parent class type
48   STRING        bonobo_x_class # Class for BonoboXObject
49   STRING        chunk_size # if the object should be allocated with mem_chunks
50   NODELIST      nodes
51 ENDCLASS
52
53 CLASS Type
54   STRING        name    # the specifier part
55   STRING        pointer # the pointer part
56   STRING        postfix
57 ENDCLASS
58
59 CLASS CCode
60   INT           cctype
61   STRING        cbuf
62   INT           line_no
63 ENDCLASS
64
65 CLASS Check
66   INT           chtype
67   STRING        number
68 ENDCLASS
69
70 CLASS FuncArg
71   TYPE          atype
72   STRING        name
73   NODELIST      checks
74 ENDCLASS
75
76 CLASS Argument
77   STRING        gtktype
78   TYPE          atype
79   STRINGLIST    flags
80   STRING        name
81   STRING        get
82   INT           get_line
83   STRING        set
84   INT           set_line
85   INT           line_no
86 ENDCLASS
87
88 CLASS Method
89   INT           scope           # scope type
90   INT           method          # method type
91   TYPE          mtype
92   STRING        otype           # for override methods
93   STRINGLIST    gtktypes        # GTK types for a signal
94   STRINGLIST    flags           # GTK_RUN_* flags for a signal
95   STRING        id
96   NODELIST      args
97   STRING        onerror
98   STRING        defreturn
99   STRING        cbuf
100   INT           line_no
101   INT           ccode_line
102   BOOL          vararg
103   INT           unique_id       # A unique id for new methods
104   BOOL          bonobo_x_func   # Function for BonoboXObject
105 ENDCLASS
106
107 CLASS Variable
108   INT           scope
109   TYPE          vtype
110   STRING        id
111   INT           line_no
112   STRING        destructor
113   INT           destructor_line
114   BOOL          destructor_simple
115   STRING        initializer
116   INT           initializer_line
117 ENDCLASS