Mercurial > hg > CbC > old > device
annotate mc.h @ 599:df04bc5fd5fe
*** empty log message ***
author | kono |
---|---|
date | Thu, 26 Jan 2006 15:19:55 +0900 |
parents | cc2a83f98188 |
children | 429ec87e03e7 |
rev | line source |
---|---|
0 | 1 /* Micro-C header file */ |
2 | |
195 | 3 #define FLOAT_CODE 1 |
237 | 4 #define LONGLONG_CODE 1 |
292 | 5 #define CASE_CODE 1 |
316 | 6 #define ASM_CODE 1 |
329 | 7 #define BIT_FIELD_CODE 1 |
195 | 8 |
164 | 9 /* reserved word start */ |
10 | |
482 | 11 /* type ( keyword ) */ |
12 | |
327 | 13 #define INT (-1) |
14 #define UNSIGNED (-2) | |
15 #define CHAR (-3) | |
16 #define UCHAR (-4) | |
162 | 17 #define POINTER (-5) |
327 | 18 #define ARRAY (-6) |
19 #define STRUCT (-7) | |
20 #define UNION (-8) | |
21 #define FUNCTION (-9) | |
0 | 22 |
482 | 23 #define SIGNED (-10) |
24 #define LONG (-11) | |
25 #define SHORT (-12) | |
26 #define USHORT (-13) | |
27 #define VOID (-14) | |
28 #define CODE (-15) | |
29 #define ENUM (-16) | |
30 | |
31 #define FLOAT (-17) | |
32 #define DOUBLE (-18) | |
33 #define LONGLONG (-19) | |
34 #define ULONGLONG (-20) | |
35 | |
36 /* type qualifier */ | |
37 | |
38 #define KONST (-21) | |
39 #define STATIC (-22) | |
40 #define EXTRN (-23) | |
41 #define EXTRN1 (-24) | |
42 #define VOLATILE (-25) | |
43 #define RESTRICT (-26) | |
44 #define INLINE (-27) | |
45 #define REGISTER (-28) | |
46 #define FREGISTER (-29) | |
47 #define DREGISTER (-30) | |
48 #define LREGISTER (-31) | |
49 | |
50 #define DOTS (-32) | |
0 | 51 |
482 | 52 /* keyword */ |
53 | |
54 #define GOTO (-33) | |
55 #define RETURN (-34) | |
56 #define BREAK (-35) | |
57 #define CONTINUE (-36) | |
58 #define IF (-37) | |
59 #define ELSE (-38) | |
60 #define FOR (-39) | |
61 #define DO (-40) | |
62 #define WHILE (-41) | |
63 #define SWITCH (-42) | |
64 #define CASE (-43) | |
65 #define DEFAULT (-44) | |
66 #define RESERVE (-45) | |
67 #define TAG (-46) | |
68 #define FIELD (-47) | |
69 #define IDENT (-48) | |
70 #define MACRO (-49) | |
71 #define BLABEL (-50) | |
72 #define FLABEL (-51) | |
73 #define TYPEDEF (-52) | |
74 #define SIZEOF (-53) | |
75 #define TYPE (-54) | |
76 #define DEFINED (-55) | |
77 | |
78 #define ENVIRONMENT (-56) | |
79 | |
80 #define FMACRO (-57) | |
81 #define LMACRO (-58) | |
82 | |
461 | 83 #define TYPEOF (-59) |
84 #define ASM (-60) | |
164 | 85 |
544 | 86 #define C_FILE (-61) |
87 #define C_FUNCTION (-62) | |
88 #define C_LINE (-63) | |
89 | |
164 | 90 /* reserved word end */ |
78 | 91 |
327 | 92 #define EMPTY (-99) |
103 | 93 |
164 | 94 /* mode start */ |
327 | 95 #define TOP 0 |
96 #define GDECL 1 | |
97 #define GSDECL 2 | |
98 #define GUDECL 3 | |
99 #define ADECL 4 | |
100 #define LDECL 5 | |
101 #define LSDECL 6 | |
102 #define LUDECL 7 | |
0 | 103 #define STADECL 8 |
327 | 104 #define STAT 9 |
105 #define GTDECL 10 | |
106 #define LTDECL 11 | |
107 #define IFDEF 12 | |
108 #define MDECL 13 | |
176 | 109 #define GEDECL 14 |
110 #define LEDECL 15 | |
362 | 111 #define LLDECL 16 |
112 #define SFDINIT 17 | |
164 | 113 /* mode end */ |
114 | |
327 | 115 #define US 1 |
116 #define AS 10000 | |
117 #define SOP 200 | |
118 #define COP 400 | |
119 #define DOP 600 | |
120 #define FOP 800 | |
121 #define LOP 1000 | |
164 | 122 |
123 /* tree node tags start */ | |
124 | |
316 | 125 #define LIST_ARGS(i) (i==FUNCTION||i==CODE||i==ASM) |
599 | 126 #define OP(i) (i%SOP) /* tag value without attribute */ |
127 #define OP_TAG(i) (((i)/SOP)*SOP) /* attribute of tag */ | |
164 | 128 |
129 /* nullary argments */ | |
0 | 130 |
327 | 131 #define GVAR 1 |
132 #define RGVAR 2 | |
133 #define URGVAR 3 | |
134 #define LVAR 4 | |
135 #define RLVAR 5 | |
136 #define URLVAR 6 | |
137 #define CRGVAR (COP+RGVAR) | |
138 #define CURGVAR (COP+URGVAR) | |
139 #define CRLVAR (COP+RLVAR) | |
140 #define CURLVAR (COP+URLVAR) | |
141 #define FRGVAR (FOP+RGVAR) | |
142 #define FRLVAR (FOP+RLVAR) | |
143 #define DRGVAR (DOP+RGVAR) | |
144 #define DRLVAR (DOP+RLVAR) | |
145 #define SRGVAR (SOP+RGVAR) | |
146 #define SURGVAR (SOP+URGVAR) | |
147 #define SRLVAR (SOP+RLVAR) | |
148 #define SURLVAR (SOP+URLVAR) | |
149 #define LRGVAR (LOP+RGVAR) | |
150 #define LURGVAR (LOP+URGVAR) | |
151 #define LRLVAR (LOP+RLVAR) | |
152 #define LURLVAR (LOP+URLVAR) | |
164 | 153 |
327 | 154 #define CONST 7 |
155 #define DCONST (DOP+CONST) | |
156 #define FCONST (FOP+CONST) | |
157 #define LCONST (LOP+CONST) | |
158 #define STRING 8 | |
159 #define FNAME 9 | |
450
eaf9e2746c83
parallel assign for simple expr. (too complex solution)
kono
parents:
449
diff
changeset
|
160 #define LCALL 10 |
452 | 161 #define COMMENT 11 |
162 #define DECL 12 | |
163 #define COMP 13 | |
164 #define LABEL 14 | |
500 | 165 #define IVAR 15 |
164 | 166 |
450
eaf9e2746c83
parallel assign for simple expr. (too complex solution)
kono
parents:
449
diff
changeset
|
167 #define NULLARY_ARGS(i) (i==RETURN||i==ENVIRONMENT||i==LCALL||i==REGISTER||i==DREGISTER||i==FREGISTER||i==LREGISTER||(GVAR<=(i%SOP)&&(i%SOP)<=LABEL)) |
164 | 168 |
169 /* unary argments */ | |
170 | |
500 | 171 #define ADDRESS 16 |
172 #define MINUS 17 | |
173 #define LNOT 18 | |
174 #define BNOT 19 | |
175 #define INC 20 | |
176 #define POSTINC 21 | |
177 #define UPOSTINC 22 | |
178 #define PREINC 23 | |
179 #define UPREINC 24 | |
180 #define POSTDEC 25 | |
181 #define UPOSTDEC 26 | |
182 #define PREDEC 27 | |
183 #define UPREDEC 28 | |
184 #define DEC 29 | |
196 | 185 #define CPOSTINC (COP+POSTINC) |
186 #define CUPOSTINC (COP+UPOSTINC) | |
187 #define CPREINC (COP+PREINC) | |
188 #define CUPREINC (COP+UPREINC) | |
189 #define CPOSTDEC (COP+POSTDEC) | |
190 #define CUPOSTDEC (COP+UPOSTDEC) | |
191 #define CPREDEC (COP+CPREDEC) | |
192 #define CUPREDEC (COP+UPREDEC) | |
193 #define SPOSTINC (SOP+POSTINC) | |
194 #define SUPOSTINC (SOP+UPOSTINC) | |
195 #define SPREINC (SOP+PREINC) | |
196 #define SUPREINC (SOP+UPREINC) | |
197 #define SPOSTDEC (SOP+POSTDEC) | |
198 #define SUPOSTDEC (SOP+UPOSTDEC) | |
199 #define SPREDEC (SOP+PREDEC) | |
200 #define SUPREDEC (SOP+UPREDEC) | |
327 | 201 #define FPOSTINC (FOP+POSTINC) |
202 #define FPREINC (FOP+PREINC) | |
203 #define DPOSTINC (DOP+POSTINC) | |
204 #define DPREINC (DOP+PREINC) | |
205 #define LPOSTINC (LOP+POSTINC) | |
206 #define LPREINC (LOP+PREINC) | |
207 #define LUPOSTINC (LOP+UPOSTINC) | |
208 #define LUPREINC (LOP+UPREINC) | |
500 | 209 #define INDIRECT 30 |
210 #define RINDIRECT 31 | |
211 #define URINDIRECT 32 | |
327 | 212 #define CRINDIRECT (COP+RINDIRECT) |
213 #define CURINDIRECT (COP+URINDIRECT) | |
214 #define SRINDIRECT (SOP+RINDIRECT) | |
215 #define SURINDIRECT (SOP+URINDIRECT) | |
216 #define FRINDIRECT (FOP+RINDIRECT) | |
217 #define DRINDIRECT (DOP+RINDIRECT) | |
218 #define LRINDIRECT (LOP+RINDIRECT) | |
219 #define LURINDIRECT (LOP+URINDIRECT) | |
500 | 220 #define RSTRUCT 33 |
221 #define ALLOCA 34 | |
222 #define BUILTINP 35 | |
223 #define BUILTIN_EXPECT 36 | |
224 #define ATTRIBUTE 37 | |
225 #define BIT_FIELD 38 | |
226 #define RBIT_FIELD 39 | |
227 #define BPREINC 40 | |
228 #define BPOSTINC 41 | |
229 #define CONV 42 | |
164 | 230 |
231 #define UNARY_ARGS(i) (ADDRESS<=(i%SOP)&&(i%SOP)<=CONV) | |
232 | |
233 /* binary argments */ | |
234 | |
500 | 235 #define MUL 43 |
236 #define UMUL 44 | |
237 #define DIV 45 | |
238 #define UDIV 46 | |
239 #define MOD 47 | |
240 #define UMOD 48 | |
241 #define ADD 49 | |
242 #define SUB 50 | |
243 #define CMP 51 | |
244 #define RSHIFT 52 | |
245 #define URSHIFT 53 | |
246 #define LSHIFT 54 | |
247 #define ULSHIFT 55 | |
248 #define GT 56 | |
249 #define UGT 57 | |
250 #define GE 58 | |
251 #define UGE 59 | |
252 #define LT 60 | |
253 #define ULT 61 | |
254 #define LE 62 | |
255 #define ULE 63 | |
256 #define EQ 64 | |
257 #define NEQ 65 | |
258 #define BAND 66 | |
259 #define EOR 67 | |
260 #define BOR 68 | |
261 #define LAND 69 | |
262 #define LOR 70 | |
263 #define ASS 71 | |
264 #define UCMP 72 | |
265 #define UCMPGE 73 | |
266 #define CMPGE 74 | |
267 #define CMPEQ 75 | |
268 #define CMPNEQ 76 | |
269 #define ASSOP 77 | |
270 #define COMMA 78 | |
164 | 271 |
500 | 272 #define CASS 79 |
273 #define CASSOP 80 | |
274 #define CUASSOP 81 | |
0 | 275 |
327 | 276 #define SASS (SOP+CASS) |
164 | 277 #define SASSOP (SOP+CASSOP) |
278 #define SUASSOP (SOP+CUASSOP) | |
279 | |
327 | 280 #define DASS (DOP+ASS) |
281 #define DCMPGE (DOP+CMPGE) | |
282 #define DCMPEQ (DOP+CMPEQ) | |
283 #define DCMPNEQ (DOP+CMPNEQ) | |
284 #define DASSOP (DOP+ASSOP) | |
285 #define DCMP (DOP+CMP) | |
286 #define DMINUS (DOP+MINUS) | |
287 #define DMUL (DOP+MUL) | |
288 #define DDIV (DOP+DIV) | |
289 #define DADD (DOP+ADD) | |
290 #define DSUB (DOP+SUB) | |
164 | 291 |
327 | 292 #define FASS (FOP+ASS) |
293 #define FCMPGE (FOP+CMPGE) | |
294 #define FCMPEQ (FOP+CMPEQ) | |
295 #define FCMPNEQ (FOP+CMPNEQ) | |
296 #define FASSOP (FOP+ASSOP) | |
297 #define FCMP (FOP+CMP) | |
298 #define FMINUS (FOP+MINUS) | |
299 #define FMUL (FOP+MUL) | |
300 #define FDIV (FOP+DIV) | |
301 #define FADD (FOP+ADD) | |
302 #define FSUB (FOP+SUB) | |
78 | 303 |
327 | 304 #define LASS (LOP+CASS) |
305 #define LCMPGE (LOP+CMPGE) | |
306 #define LCMPEQ (LOP+CMPEQ) | |
307 #define LCMPNEQ (LOP+CMPNEQ) | |
195 | 308 #define LASSOP (LOP+CASSOP) |
164 | 309 #define LUASSOP (LOP+CUASSOP) |
327 | 310 #define LCMP (LOP+CMP) |
311 #define LMINUS (LOP+MINUS) | |
312 #define LMUL (LOP+MUL) | |
313 #define LDIV (LOP+DIV) | |
314 #define LUMUL (LOP+UMUL) | |
315 #define LUDIV (LOP+UDIV) | |
316 #define LADD (LOP+ADD) | |
317 #define LSUB (LOP+SUB) | |
81 | 318 |
195 | 319 |
327 | 320 #define LMOD (LOP+MOD) |
321 #define LUMOD (LOP+UMOD) | |
322 #define LLSHIFT (LOP+LSHIFT) | |
323 #define LULSHIFT (LOP+ULSHIFT) | |
324 #define LRSHIFT (LOP+RSHIFT) | |
325 #define LURSHIFT (LOP+URSHIFT) | |
326 #define LBAND (LOP+BAND) | |
327 #define LEOR (LOP+EOR) | |
328 #define LBOR (LOP+BOR) | |
195 | 329 |
500 | 330 #define BASS 82 |
331 #define BASSOP 83 | |
332 #define BFD_REPL 84 | |
195 | 333 |
500 | 334 #define STASS 85 |
326 | 335 |
164 | 336 |
337 #define BINARY_ARGS(i) (MUL<=(i%SOP)&&(i%SOP)<=STASS) | |
338 | |
339 /* tarnary argments */ | |
340 | |
500 | 341 #define COND 86 |
342 #define UCOND 87 | |
327 | 343 #define SCOND (SOP+COND) |
490 | 344 #define SUCOND (SOP+UCOND) |
327 | 345 #define DCOND (DOP+COND) |
346 #define FCOND (FOP+COND) | |
347 #define LCOND (LOP+COND) | |
490 | 348 #define LUCOND (LOP+UCOND) |
164 | 349 |
491 | 350 #define TARNARY_ARGS(i) (COND==(i%SOP)||UCOND==(i%SOP)) |
164 | 351 |
352 /* not appeared as tags */ | |
81 | 353 |
500 | 354 #define LPAR 88 |
355 #define RPAR 89 | |
356 #define LBRA 90 | |
357 #define RBRA 91 | |
358 #define LC 92 | |
359 #define RC 93 | |
360 #define COLON 94 | |
361 #define SM 95 | |
362 #define PERIOD 96 | |
363 #define ARROW 97 | |
364 #define CNAME 98 | |
194 | 365 |
500 | 366 #define I2C 99 |
367 #define I2S 100 | |
368 #define I2I 101 | |
369 #define I2U 102 | |
370 #define I2D 103 | |
371 #define I2F 104 | |
372 #define I2LL 105 | |
373 #define I2ULL 106 | |
353 | 374 |
500 | 375 #define U2UC 107 |
376 #define U2US 108 | |
377 #define U2I 109 | |
378 #define U2U 110 | |
379 #define U2D 111 | |
380 #define U2F 112 | |
381 #define U2LL 113 | |
382 #define U2ULL 114 | |
353 | 383 |
194 | 384 |
327 | 385 #define D2I (DOP+I2I) |
386 #define D2U (DOP+I2U) | |
387 #define D2D (DOP+I2D) | |
388 #define D2F (DOP+I2F) | |
389 #define D2LL (DOP+I2LL) | |
390 #define D2ULL (DOP+I2ULL) | |
164 | 391 |
327 | 392 #define F2I (FOP+I2I) |
393 #define F2U (FOP+I2U) | |
394 #define F2D (FOP+I2D) | |
395 #define F2F (FOP+I2F) | |
396 #define F2LL (FOP+I2LL) | |
397 #define F2ULL (FOP+I2ULL) | |
194 | 398 |
327 | 399 #define LL2I (LOP+I2I) |
400 #define LL2U (LOP+I2U) | |
401 #define LL2D (LOP+I2D) | |
402 #define LL2F (LOP+I2F) | |
403 #define LL2LL (LOP+I2LL) | |
404 #define LL2ULL (LOP+I2ULL) | |
194 | 405 |
327 | 406 #define ULL2I (LOP+U2I) |
407 #define ULL2U (LOP+U2U) | |
408 #define ULL2D (LOP+U2D) | |
409 #define ULL2F (LOP+U2F) | |
410 #define ULL2LL (LOP+U2LL) | |
411 #define ULL2ULL (LOP+U2ULL) | |
194 | 412 |
164 | 413 /* tree node tags end */ |
414 | |
453 | 415 /* statement start */ |
416 | |
500 | 417 #define ST_DECL 115 |
418 #define ST_IF 116 | |
419 #define ST_DO 117 | |
420 #define ST_WHILE 118 | |
421 #define ST_FOR 119 | |
422 #define ST_SWITCH 120 | |
423 #define ST_COMP 121 | |
424 #define ST_BREAK 122 | |
425 #define ST_CONTINUE 123 | |
426 #define ST_CASE 124 | |
427 #define ST_DEFAULT 125 | |
428 #define ST_RETURN 126 | |
429 #define ST_GOTO 127 | |
430 #define ST_ASM 128 | |
431 #define ST_LABEL 129 | |
566 | 432 #define ST_OP 130 |
433 #define ST_COMMENT 131 | |
453 | 434 |
509 | 435 #define IS_STATEMENT(i) (i==INLINE||(ST_DECL<=i&&i<=ST_COMMENT)) |
453 | 436 |
566 | 437 #define HAS_ADDRESS 132 |
526 | 438 |
453 | 439 /* statement end */ |
440 | |
164 | 441 /* error number start */ |
0 | 442 |
327 | 443 #define FILERR 1 |
444 #define DCERR 2 | |
445 #define RDERR 3 | |
446 #define STERR 4 | |
447 #define EXERR 5 | |
448 #define CNERR 6 | |
449 #define CHERR 7 | |
450 #define GSERR 8 | |
451 #define LSERR 9 | |
452 #define STRERR 10 | |
453 #define LNERR 11 | |
454 #define EOFERR 12 | |
455 #define MCERR 13 | |
456 #define INCERR 14 | |
457 #define HPERR 15 | |
458 #define TYERR 16 | |
459 #define LVERR 17 | |
460 #define UDERR 18 | |
461 #define OPTION 19 | |
462 #define REG_ERR 20 | |
389 | 463 #define RGERR 21 |
464 #define CODE_ERR 22 | |
465 #define MSERR 23 | |
466 #define BTERR 24 | |
467 #define HSERR 25 | |
468 #define NMERR 26 | |
469 #define MMERR 27 | |
470 #define INERR 28 | |
523 | 471 #define AGERR 29 |
472 #define ILERR 30 | |
558 | 473 #define CSERR 31 |
572 | 474 #define GTERR 32 |
475 #define FNERR 33 | |
476 #define UCERR 34 | |
477 #define UFERR 35 | |
574 | 478 #define ENERR 36 |
479 #define SIERR 37 | |
327 | 480 |
164 | 481 /* error number end */ |
0 | 482 |
526 | 483 /* ctmode bit */ |
484 | |
461 | 485 #define KONST_BIT 1 |
486 #define VOLATILE_BIT 2 | |
487 #define RESTRICT_BIT 4 | |
488 | |
25 | 489 #define FILES 10 |
327 | 490 #define MAX_INCLUDE_PATH_COUNT 10 |
448 | 491 /* |
492 For this comiler 8192*2 is Ok. Linux kernel requires 8192*4. | |
493 */ | |
447 | 494 #define GSYMS (8192*4) |
358 | 495 #define HEAPSIZE 30000 |
452 | 496 #define CHEAPSIZE (sizeof(NMTBL)*8192) |
327 | 497 #define LBUFSIZE 4096 |
347 | 498 #define STRSIZE 4096 |
254 | 499 |
0 | 500 typedef struct nametable { |
327 | 501 char *nm; |
348 | 502 struct nametable *next; |
445 | 503 int sc,attr; |
504 int ty,dsp; } NMTBL; | |
0 | 505 |
452 | 506 extern int *heap; /* heap area (in cheap ) */ |
507 extern NMTBL *global_list; /* list of all global NMTBL */ | |
508 extern NMTBL *local_static_list; /* list of local static variable */ | |
0 | 509 |
195 | 510 #if FLOAT_CODE |
81 | 511 extern int dlist2(int e1, double e2); |
195 | 512 #endif |
513 #if LONGLONG_CODE | |
514 extern int llist2(int e1, long long e2); | |
515 #endif | |
61 | 516 extern int list2(int e1, int e2); |
517 extern int list3(int e1, int e2, int e3); | |
518 extern int list4(int e1, int e2, int e3,int e4); | |
450
eaf9e2746c83
parallel assign for simple expr. (too complex solution)
kono
parents:
449
diff
changeset
|
519 extern int list5(int e1, int e2, int e3,int e4,int e5); |
318 | 520 extern int length(int e1); |
464 | 521 extern int getfree(int size); |
318 | 522 extern int nth(int n,int e1); |
61 | 523 extern int reverse0(int t1); |
524 extern int append4(int p,int a1,int a2,int a3); | |
450
eaf9e2746c83
parallel assign for simple expr. (too complex solution)
kono
parents:
449
diff
changeset
|
525 extern int append5(int p,int a1,int a2,int a3,int a4); |
309 | 526 extern int insert_ascend(int p,int e,int eq()); |
61 | 527 |
347 | 528 extern void free_nptr(NMTBL *n); |
529 extern NMTBL *get_nptr(); | |
346 | 530 |
590 | 531 #if 1 |
450
eaf9e2746c83
parallel assign for simple expr. (too complex solution)
kono
parents:
449
diff
changeset
|
532 extern int heapsize; |
467 | 533 #define CHECK_HEAP(b) ({int _k=(int)(b);if(_k>heapsize||_k<0)error(-1);_k;}) |
450
eaf9e2746c83
parallel assign for simple expr. (too complex solution)
kono
parents:
449
diff
changeset
|
534 #else |
eaf9e2746c83
parallel assign for simple expr. (too complex solution)
kono
parents:
449
diff
changeset
|
535 #define CHECK_HEAP(b) (b) |
eaf9e2746c83
parallel assign for simple expr. (too complex solution)
kono
parents:
449
diff
changeset
|
536 #endif |
33 | 537 |
450
eaf9e2746c83
parallel assign for simple expr. (too complex solution)
kono
parents:
449
diff
changeset
|
538 #define car(e) (heap[(int)(CHECK_HEAP(e))]) |
eaf9e2746c83
parallel assign for simple expr. (too complex solution)
kono
parents:
449
diff
changeset
|
539 |
eaf9e2746c83
parallel assign for simple expr. (too complex solution)
kono
parents:
449
diff
changeset
|
540 #define cadr(e) (heap[((int)(CHECK_HEAP(e)))+1]) |
33 | 541 |
450
eaf9e2746c83
parallel assign for simple expr. (too complex solution)
kono
parents:
449
diff
changeset
|
542 #define caddr(e) (heap[((int)(CHECK_HEAP(e)))+2]) |
33 | 543 |
450
eaf9e2746c83
parallel assign for simple expr. (too complex solution)
kono
parents:
449
diff
changeset
|
544 #define cadddr(e) (heap[((int)(CHECK_HEAP(e)))+3]) |
eaf9e2746c83
parallel assign for simple expr. (too complex solution)
kono
parents:
449
diff
changeset
|
545 |
eaf9e2746c83
parallel assign for simple expr. (too complex solution)
kono
parents:
449
diff
changeset
|
546 #define caddddr(e) (heap[((int)(CHECK_HEAP(e)))+4]) |
449 | 547 |
195 | 548 #if FLOAT_CODE |
81 | 549 #define dcadr(e) (*(double*)&heap[((int)(e))+1]) |
550 #define dcaddr(e) (*(double*)&heap[((int)(e))+2]) | |
195 | 551 #endif |
552 | |
553 #if LONGLONG_CODE | |
554 #define lcadr(e) (*(long long*)&heap[((int)(e))+1]) | |
555 #define lcaddr(e) (*(long long*)&heap[((int)(e))+2]) | |
556 #endif | |
81 | 557 |
33 | 558 /* end */ |