~jsvoboda/helenos/sysel

« back to all changes in this revision

Viewing changes to uspace/app/sbi/src/rdata_t.h

  • Committer: Jiri Svoboda
  • Date: 2010-05-08 08:10:44 UTC
  • Revision ID: jiri@wiwaxia-20100508081044-5hvcjwu15rsfvgnv
Update SBI to rev. 244.

Show diffs side-by-side

added added

removed removed

Lines of Context:
81
81
        struct stree_symbol *sym;
82
82
} rdata_deleg_t;
83
83
 
 
84
/** Enumerated type value. */
 
85
typedef struct {
 
86
        /** Enum member declaration */
 
87
        struct stree_embr *value;
 
88
} rdata_enum_t;
 
89
 
84
90
/** Array variable */
85
91
typedef struct {
86
92
        /** Rank */
115
121
        void *data;
116
122
} rdata_resource_t;
117
123
 
 
124
/** Symbol reference variable
 
125
 *
 
126
 * A symbol reference points to a program symbol.
 
127
 */
 
128
typedef struct {
 
129
        /** Program symbol. */
 
130
        struct stree_symbol *sym;
 
131
} rdata_symbol_t;
 
132
 
118
133
typedef enum var_class {
119
134
        /** Boolean */
120
135
        vc_bool,
134
149
        /** Delegate */
135
150
        vc_deleg,
136
151
 
 
152
        /** Enumerated type value */
 
153
        vc_enum,
 
154
 
137
155
        /** Array */
138
156
        vc_array,
139
157
 
141
159
        vc_object,
142
160
 
143
161
        /** Interpreter builtin resource */
144
 
        vc_resource
 
162
        vc_resource,
 
163
 
 
164
        /** Symbol reference */
 
165
        vc_symbol
145
166
} var_class_t;
146
167
 
147
168
/** Variable.
160
181
                rdata_string_t *string_v;
161
182
                rdata_ref_t *ref_v;
162
183
                rdata_deleg_t *deleg_v;
 
184
                rdata_enum_t *enum_v;
163
185
                rdata_array_t *array_v;
164
186
                rdata_object_t *object_v;
165
187
                rdata_resource_t *resource_v;
 
188
                rdata_symbol_t *symbol_v;
166
189
        } u;
167
190
} rdata_var_t;
168
191