annotate mc.h @ 70:2e84590720a6

typedef name
author kono
date Mon, 24 Feb 2003 11:42:53 +0900
parents 254a0c576114
children 3b5d293cea36
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
1 /* Micro-C header file */
d35df41eac69 Initial revision
kono
parents:
diff changeset
2
d35df41eac69 Initial revision
kono
parents:
diff changeset
3 #define DEBUG error(-1)
d35df41eac69 Initial revision
kono
parents:
diff changeset
4
d35df41eac69 Initial revision
kono
parents:
diff changeset
5 /*#include "CCLIB.TXT" */
19
b62230ea38f6 ifdef debug
kono
parents: 18
diff changeset
6 #ifdef __micro_c__
b62230ea38f6 ifdef debug
kono
parents: 18
diff changeset
7 #include "stdio.h"
b62230ea38f6 ifdef debug
kono
parents: 18
diff changeset
8 #else
b62230ea38f6 ifdef debug
kono
parents: 18
diff changeset
9 #include <stdio.h>
b62230ea38f6 ifdef debug
kono
parents: 18
diff changeset
10 #endif
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
11
d35df41eac69 Initial revision
kono
parents:
diff changeset
12 #define SIZE_INT 4
d35df41eac69 Initial revision
kono
parents:
diff changeset
13
d35df41eac69 Initial revision
kono
parents:
diff changeset
14 #define INT (-1)
d35df41eac69 Initial revision
kono
parents:
diff changeset
15 #define CHAR (-2)
d35df41eac69 Initial revision
kono
parents:
diff changeset
16 #define UNSIGNED (-3)
d35df41eac69 Initial revision
kono
parents:
diff changeset
17 #define POINTER (-4)
d35df41eac69 Initial revision
kono
parents:
diff changeset
18 #define ARRAY (-5)
d35df41eac69 Initial revision
kono
parents:
diff changeset
19 #define STRUCT (-6)
d35df41eac69 Initial revision
kono
parents:
diff changeset
20 #define UNION (-7)
d35df41eac69 Initial revision
kono
parents:
diff changeset
21 #define FUNCTION (-8)
d35df41eac69 Initial revision
kono
parents:
diff changeset
22 #define EMPTY (-9)
d35df41eac69 Initial revision
kono
parents:
diff changeset
23
d35df41eac69 Initial revision
kono
parents:
diff changeset
24 #define STATIC (-10)
d35df41eac69 Initial revision
kono
parents:
diff changeset
25 #define GOTO (-11)
d35df41eac69 Initial revision
kono
parents:
diff changeset
26 #define RETURN (-12)
d35df41eac69 Initial revision
kono
parents:
diff changeset
27 #define BREAK (-13)
d35df41eac69 Initial revision
kono
parents:
diff changeset
28 #define CONTINUE (-14)
d35df41eac69 Initial revision
kono
parents:
diff changeset
29 #define IF (-15)
d35df41eac69 Initial revision
kono
parents:
diff changeset
30 #define ELSE (-16)
d35df41eac69 Initial revision
kono
parents:
diff changeset
31 #define FOR (-17)
d35df41eac69 Initial revision
kono
parents:
diff changeset
32 #define DO (-18)
d35df41eac69 Initial revision
kono
parents:
diff changeset
33 #define WHILE (-19)
d35df41eac69 Initial revision
kono
parents:
diff changeset
34 #define SWITCH (-20)
d35df41eac69 Initial revision
kono
parents:
diff changeset
35 #define CASE (-21)
d35df41eac69 Initial revision
kono
parents:
diff changeset
36 #define DEFAULT (-22)
d35df41eac69 Initial revision
kono
parents:
diff changeset
37 #define RESERVE (-23)
d35df41eac69 Initial revision
kono
parents:
diff changeset
38 #define TAG (-24)
d35df41eac69 Initial revision
kono
parents:
diff changeset
39 #define FIELD (-25)
d35df41eac69 Initial revision
kono
parents:
diff changeset
40 #define IDENT (-26)
d35df41eac69 Initial revision
kono
parents:
diff changeset
41 #define STRING (-27)
d35df41eac69 Initial revision
kono
parents:
diff changeset
42 #define MACRO (-28)
d35df41eac69 Initial revision
kono
parents:
diff changeset
43 #define BLABEL (-29)
d35df41eac69 Initial revision
kono
parents:
diff changeset
44 #define FLABEL (-30)
d35df41eac69 Initial revision
kono
parents:
diff changeset
45 #define TYPEDEF (-31)
d35df41eac69 Initial revision
kono
parents:
diff changeset
46 #define SIZEOF (-32)
d35df41eac69 Initial revision
kono
parents:
diff changeset
47 #define TYPE (-33)
d35df41eac69 Initial revision
kono
parents:
diff changeset
48 #define LONG (-34)
d35df41eac69 Initial revision
kono
parents:
diff changeset
49 #define SHORT (-35)
d35df41eac69 Initial revision
kono
parents:
diff changeset
50 #define EXTRN (-36)
d35df41eac69 Initial revision
kono
parents:
diff changeset
51 #define VOID (-37)
d35df41eac69 Initial revision
kono
parents:
diff changeset
52 #define REGISTER (-38)
d35df41eac69 Initial revision
kono
parents:
diff changeset
53 #define CODE (-39)
d35df41eac69 Initial revision
kono
parents:
diff changeset
54 #define ENVIRONMENT (-40)
18
df7fa8cee67b pass -Wall
kono
parents: 3
diff changeset
55 #define DEFINED (-41)
20
8d3db5fc8a97 *** empty log message ***
kono
parents: 19
diff changeset
56 #define KONST (-42)
28
c6994794f084 functional macro (imcomplete)
kono
parents: 25
diff changeset
57 #define FMACRO (-43)
c6994794f084 functional macro (imcomplete)
kono
parents: 25
diff changeset
58 #define LMACRO (-44)
67
254a0c576114 argument type list
kono
parents: 66
diff changeset
59 #define DOTS (-45)
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
60
d35df41eac69 Initial revision
kono
parents:
diff changeset
61 #define TOP 0
d35df41eac69 Initial revision
kono
parents:
diff changeset
62 #define GDECL 1
d35df41eac69 Initial revision
kono
parents:
diff changeset
63 #define GSDECL 2
d35df41eac69 Initial revision
kono
parents:
diff changeset
64 #define GUDECL 3
d35df41eac69 Initial revision
kono
parents:
diff changeset
65 #define ADECL 4
d35df41eac69 Initial revision
kono
parents:
diff changeset
66 #define LDECL 5
d35df41eac69 Initial revision
kono
parents:
diff changeset
67 #define LSDECL 6
d35df41eac69 Initial revision
kono
parents:
diff changeset
68 #define LUDECL 7
d35df41eac69 Initial revision
kono
parents:
diff changeset
69 #define STADECL 8
d35df41eac69 Initial revision
kono
parents:
diff changeset
70 #define STAT 9
d35df41eac69 Initial revision
kono
parents:
diff changeset
71 #define GTDECL 10
d35df41eac69 Initial revision
kono
parents:
diff changeset
72 #define LTDECL 11
18
df7fa8cee67b pass -Wall
kono
parents: 3
diff changeset
73 #define IFDEF 12
29
160e20394f80 macro function (imcomplete)
kono
parents: 28
diff changeset
74 #define MDECL 13
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
75
d35df41eac69 Initial revision
kono
parents:
diff changeset
76 #define GVAR 1
d35df41eac69 Initial revision
kono
parents:
diff changeset
77 #define RGVAR 2
d35df41eac69 Initial revision
kono
parents:
diff changeset
78 #define CRGVAR 3
d35df41eac69 Initial revision
kono
parents:
diff changeset
79 #define LVAR 4
d35df41eac69 Initial revision
kono
parents:
diff changeset
80 #define RLVAR 5
d35df41eac69 Initial revision
kono
parents:
diff changeset
81 #define CRLVAR 6
d35df41eac69 Initial revision
kono
parents:
diff changeset
82 #define CONST 7
d35df41eac69 Initial revision
kono
parents:
diff changeset
83 #define FNAME 8
d35df41eac69 Initial revision
kono
parents:
diff changeset
84 #define INDIRECT 9
d35df41eac69 Initial revision
kono
parents:
diff changeset
85 #define RINDIRECT 10
d35df41eac69 Initial revision
kono
parents:
diff changeset
86 #define CRINDIRECT 11
d35df41eac69 Initial revision
kono
parents:
diff changeset
87 #define ADDRESS 12
d35df41eac69 Initial revision
kono
parents:
diff changeset
88 #define MINUS 13
d35df41eac69 Initial revision
kono
parents:
diff changeset
89 #define LNOT 14
d35df41eac69 Initial revision
kono
parents:
diff changeset
90 #define BNOT 15
d35df41eac69 Initial revision
kono
parents:
diff changeset
91 #define INC 16
d35df41eac69 Initial revision
kono
parents:
diff changeset
92 #define POSTINC 17
d35df41eac69 Initial revision
kono
parents:
diff changeset
93 #define PREINC 18
d35df41eac69 Initial revision
kono
parents:
diff changeset
94 #define CPOSTINC 19
d35df41eac69 Initial revision
kono
parents:
diff changeset
95 #define CPREINC 20
d35df41eac69 Initial revision
kono
parents:
diff changeset
96 #define DEC 21
d35df41eac69 Initial revision
kono
parents:
diff changeset
97 #define CPOSTDEC 22
d35df41eac69 Initial revision
kono
parents:
diff changeset
98 #define CPREDEC 23
d35df41eac69 Initial revision
kono
parents:
diff changeset
99 #define MUL 24
d35df41eac69 Initial revision
kono
parents:
diff changeset
100 #define UMUL 25
d35df41eac69 Initial revision
kono
parents:
diff changeset
101 #define DIV 26
d35df41eac69 Initial revision
kono
parents:
diff changeset
102 #define UDIV 27
d35df41eac69 Initial revision
kono
parents:
diff changeset
103 #define MOD 28
d35df41eac69 Initial revision
kono
parents:
diff changeset
104 #define UMOD 29
d35df41eac69 Initial revision
kono
parents:
diff changeset
105 #define ADD 30
d35df41eac69 Initial revision
kono
parents:
diff changeset
106 #define SUB 31
d35df41eac69 Initial revision
kono
parents:
diff changeset
107 #define RSHIFT 32
d35df41eac69 Initial revision
kono
parents:
diff changeset
108 #define URSHIFT 33
d35df41eac69 Initial revision
kono
parents:
diff changeset
109 #define LSHIFT 34
d35df41eac69 Initial revision
kono
parents:
diff changeset
110 #define ULSHIFT 35
d35df41eac69 Initial revision
kono
parents:
diff changeset
111 #define GT 36
d35df41eac69 Initial revision
kono
parents:
diff changeset
112 #define UGT 37
d35df41eac69 Initial revision
kono
parents:
diff changeset
113 #define GE 38
d35df41eac69 Initial revision
kono
parents:
diff changeset
114 #define UGE 39
d35df41eac69 Initial revision
kono
parents:
diff changeset
115 #define LT 40
d35df41eac69 Initial revision
kono
parents:
diff changeset
116 #define ULT 41
d35df41eac69 Initial revision
kono
parents:
diff changeset
117 #define LE 42
d35df41eac69 Initial revision
kono
parents:
diff changeset
118 #define ULE 43
d35df41eac69 Initial revision
kono
parents:
diff changeset
119 #define EQ 44
d35df41eac69 Initial revision
kono
parents:
diff changeset
120 #define NEQ 45
d35df41eac69 Initial revision
kono
parents:
diff changeset
121 #define BAND 46
d35df41eac69 Initial revision
kono
parents:
diff changeset
122 #define EOR 47
d35df41eac69 Initial revision
kono
parents:
diff changeset
123 #define BOR 48
d35df41eac69 Initial revision
kono
parents:
diff changeset
124 #define LAND 49
d35df41eac69 Initial revision
kono
parents:
diff changeset
125 #define LOR 50
d35df41eac69 Initial revision
kono
parents:
diff changeset
126 #define COND 51
d35df41eac69 Initial revision
kono
parents:
diff changeset
127 #define ASS 52
d35df41eac69 Initial revision
kono
parents:
diff changeset
128 #define CASS 53
d35df41eac69 Initial revision
kono
parents:
diff changeset
129 #define ASSOP 54
d35df41eac69 Initial revision
kono
parents:
diff changeset
130 #define CASSOP 55
d35df41eac69 Initial revision
kono
parents:
diff changeset
131 #define COMMA 56
d35df41eac69 Initial revision
kono
parents:
diff changeset
132 #define LPAR 57
d35df41eac69 Initial revision
kono
parents:
diff changeset
133 #define RPAR 58
d35df41eac69 Initial revision
kono
parents:
diff changeset
134 #define LBRA 59
d35df41eac69 Initial revision
kono
parents:
diff changeset
135 #define RBRA 60
d35df41eac69 Initial revision
kono
parents:
diff changeset
136 #define LC 61
d35df41eac69 Initial revision
kono
parents:
diff changeset
137 #define RC 62
d35df41eac69 Initial revision
kono
parents:
diff changeset
138 #define COLON 63
d35df41eac69 Initial revision
kono
parents:
diff changeset
139 #define SM 64
d35df41eac69 Initial revision
kono
parents:
diff changeset
140 #define PERIOD 65
d35df41eac69 Initial revision
kono
parents:
diff changeset
141 #define ARROW 66
d35df41eac69 Initial revision
kono
parents:
diff changeset
142 #define CNAME 67
d35df41eac69 Initial revision
kono
parents:
diff changeset
143 #define SASS 68
67
254a0c576114 argument type list
kono
parents: 66
diff changeset
144 #define RSTRUCT 69
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
145
d35df41eac69 Initial revision
kono
parents:
diff changeset
146 #define US 1
d35df41eac69 Initial revision
kono
parents:
diff changeset
147 #define AS 100
d35df41eac69 Initial revision
kono
parents:
diff changeset
148
d35df41eac69 Initial revision
kono
parents:
diff changeset
149 #define FILERR 1
d35df41eac69 Initial revision
kono
parents:
diff changeset
150 #define DCERR 2
d35df41eac69 Initial revision
kono
parents:
diff changeset
151 #define STERR 3
d35df41eac69 Initial revision
kono
parents:
diff changeset
152 #define EXERR 4
d35df41eac69 Initial revision
kono
parents:
diff changeset
153 #define CNERR 5
d35df41eac69 Initial revision
kono
parents:
diff changeset
154 #define CHERR 6
d35df41eac69 Initial revision
kono
parents:
diff changeset
155 #define GSERR 7
d35df41eac69 Initial revision
kono
parents:
diff changeset
156 #define LSERR 8
d35df41eac69 Initial revision
kono
parents:
diff changeset
157 #define STRERR 9
d35df41eac69 Initial revision
kono
parents:
diff changeset
158 #define LNERR 10
d35df41eac69 Initial revision
kono
parents:
diff changeset
159 #define EOFERR 11
d35df41eac69 Initial revision
kono
parents:
diff changeset
160 #define MCERR 12
d35df41eac69 Initial revision
kono
parents:
diff changeset
161 #define INCERR 13
d35df41eac69 Initial revision
kono
parents:
diff changeset
162 #define HPERR 14
d35df41eac69 Initial revision
kono
parents:
diff changeset
163 #define TYERR 15
d35df41eac69 Initial revision
kono
parents:
diff changeset
164 #define LVERR 16
d35df41eac69 Initial revision
kono
parents:
diff changeset
165 #define UDERR 17
d35df41eac69 Initial revision
kono
parents:
diff changeset
166 #define OPTION 18
d35df41eac69 Initial revision
kono
parents:
diff changeset
167 #define REG_ERR 19
d35df41eac69 Initial revision
kono
parents:
diff changeset
168 #define CODE_ERR 20
29
160e20394f80 macro function (imcomplete)
kono
parents: 28
diff changeset
169 #define MSERR 21
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
170
d35df41eac69 Initial revision
kono
parents:
diff changeset
171 #define GSYMS 9000
d35df41eac69 Initial revision
kono
parents:
diff changeset
172 #define LSYMS 500
32
b35787d8a442 macro initialization
kono
parents: 30
diff changeset
173 #define MSYMS 3000
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
174
d35df41eac69 Initial revision
kono
parents:
diff changeset
175 #define HEAPSIZE 10000
d35df41eac69 Initial revision
kono
parents:
diff changeset
176 /* #define CHEAPSIZE 3000 */
d35df41eac69 Initial revision
kono
parents:
diff changeset
177 #define CHEAPSIZE 256000
d35df41eac69 Initial revision
kono
parents:
diff changeset
178 #define LBUFSIZE 4096
34
0756caa79167 macro function recursive and copy method
kono
parents: 33
diff changeset
179 #define MACROSIZE 16000
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
180
25
b7a94557bf92 *** empty log message ***
kono
parents: 20
diff changeset
181 #define FILES 10
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
182 #define OUTPUT_FILE_NAME "mcout.s"
d35df41eac69 Initial revision
kono
parents:
diff changeset
183
29
160e20394f80 macro function (imcomplete)
kono
parents: 28
diff changeset
184 EXTERN int sym,ch,type,mode,stmode,gfree,lfree,mflag,lineno,glineno;
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
185 EXTERN int labelno,gpc,disp,reg_var,debug;
d35df41eac69 Initial revision
kono
parents:
diff changeset
186 EXTERN int symval,args,init_vars,heap[HEAPSIZE];
d35df41eac69 Initial revision
kono
parents:
diff changeset
187 EXTERN int blabel,clabel,dlabel,cslabel,ilabel,control,ac,ac2,lsrc,chk,asmf;
d35df41eac69 Initial revision
kono
parents:
diff changeset
188 EXTERN int MAX_REGISTER_VAR;
d35df41eac69 Initial revision
kono
parents:
diff changeset
189
d35df41eac69 Initial revision
kono
parents:
diff changeset
190 EXTERN unsigned hash;
d35df41eac69 Initial revision
kono
parents:
diff changeset
191
34
0756caa79167 macro function recursive and copy method
kono
parents: 33
diff changeset
192 EXTERN int chsave;
0756caa79167 macro function recursive and copy method
kono
parents: 33
diff changeset
193 EXTERN char *chptrsave;
29
160e20394f80 macro function (imcomplete)
kono
parents: 28
diff changeset
194 EXTERN char linebuf[LBUFSIZE],namebuf[LBUFSIZE],*chptr;
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
195 EXTERN char *name,*cheapp,**av,/*obuf[320],*/*sptr,escape(void);
42
a89cf0d6904f regv assop
kono
parents: 37
diff changeset
196 EXTERN int arg_offset,stat_no,size_of_int,disp_offset,endian,csvalue1;
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
197 EXTERN int code_arg_offset;
d35df41eac69 Initial revision
kono
parents:
diff changeset
198 EXTERN int retlabel,retpending,retcont;
d35df41eac69 Initial revision
kono
parents:
diff changeset
199
d35df41eac69 Initial revision
kono
parents:
diff changeset
200 EXTERN FILE *obuf;
d35df41eac69 Initial revision
kono
parents:
diff changeset
201
d35df41eac69 Initial revision
kono
parents:
diff changeset
202 typedef struct nametable {
d35df41eac69 Initial revision
kono
parents:
diff changeset
203 char *nm;
d35df41eac69 Initial revision
kono
parents:
diff changeset
204 int sc,ty,dsp; } NMTBL;
d35df41eac69 Initial revision
kono
parents:
diff changeset
205
30
20ed2786a276 still macro
kono
parents: 29
diff changeset
206 EXTERN NMTBL mtable[MSYMS];
28
c6994794f084 functional macro (imcomplete)
kono
parents: 25
diff changeset
207 EXTERN NMTBL ntable[GSYMS+LSYMS];
c6994794f084 functional macro (imcomplete)
kono
parents: 25
diff changeset
208 EXTERN NMTBL *nptr,*gnptr;
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
209 EXTERN NMTBL *fnptr;
70
2e84590720a6 typedef name
kono
parents: 67
diff changeset
210 EXTERN int typedefed;
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
211
25
b7a94557bf92 *** empty log message ***
kono
parents: 20
diff changeset
212 EXTERN struct {int fd,ln;char *name0;FILE *fcb;} *filep,filestack[FILES];
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
213 EXTERN char cheap[CHEAPSIZE];
34
0756caa79167 macro function recursive and copy method
kono
parents: 33
diff changeset
214 EXTERN char *macropp,macro_buf[MACROSIZE];
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
215
61
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents: 59
diff changeset
216 extern void error(int n);
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents: 59
diff changeset
217 extern int size(int t);
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents: 59
diff changeset
218 extern int scalar(int t);
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents: 59
diff changeset
219 extern int list2(int e1, int e2);
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents: 59
diff changeset
220 extern int list3(int e1, int e2, int e3);
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents: 59
diff changeset
221 extern int list4(int e1, int e2, int e3,int e4);
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents: 59
diff changeset
222 extern int reverse0(int t1);
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents: 59
diff changeset
223 extern int assign_data(int e, int t, NMTBL *n,int offset);
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents: 59
diff changeset
224 extern int assign_expr0(int e1,int e2,int t,int type) ;
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents: 59
diff changeset
225 extern int assign_expr(int e1,int e2,int t,int type) ;
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents: 59
diff changeset
226 extern int append4(int p,int a1,int a2,int a3);
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents: 59
diff changeset
227
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents: 59
diff changeset
228
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents: 59
diff changeset
229
33
8500dbb69dd9 bad macro processing. give up this method.
kono
parents: 32
diff changeset
230 #define car(e) (heap[(int)(e)])
8500dbb69dd9 bad macro processing. give up this method.
kono
parents: 32
diff changeset
231
8500dbb69dd9 bad macro processing. give up this method.
kono
parents: 32
diff changeset
232 #define cadr(e) (heap[((int)(e))+1])
8500dbb69dd9 bad macro processing. give up this method.
kono
parents: 32
diff changeset
233
8500dbb69dd9 bad macro processing. give up this method.
kono
parents: 32
diff changeset
234 #define caddr(e) (heap[((int)(e))+2])
8500dbb69dd9 bad macro processing. give up this method.
kono
parents: 32
diff changeset
235
8500dbb69dd9 bad macro processing. give up this method.
kono
parents: 32
diff changeset
236 #define cadddr(e) (heap[((int)(e))+3])
8500dbb69dd9 bad macro processing. give up this method.
kono
parents: 32
diff changeset
237
66
0b068058dd67 *** empty log message ***
kono
parents: 65
diff changeset
238 #include "conv/conv.h"
0b068058dd67 *** empty log message ***
kono
parents: 65
diff changeset
239 #include "conv/c.h"
0b068058dd67 *** empty log message ***
kono
parents: 65
diff changeset
240 /*
59
eeca07d1b1c2 *** empty log message ***
kono
parents: 42
diff changeset
241 #include "conv/c2cbc.h"
eeca07d1b1c2 *** empty log message ***
kono
parents: 42
diff changeset
242 #include "conv/cbc2c.h"
eeca07d1b1c2 *** empty log message ***
kono
parents: 42
diff changeset
243 #include "conv/null.h"
66
0b068058dd67 *** empty log message ***
kono
parents: 65
diff changeset
244 */
59
eeca07d1b1c2 *** empty log message ***
kono
parents: 42
diff changeset
245
62
129f4802b027 separation done
kono
parents: 61
diff changeset
246 extern Converter *conv;
59
eeca07d1b1c2 *** empty log message ***
kono
parents: 42
diff changeset
247
61
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents: 59
diff changeset
248
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents: 59
diff changeset
249 EXTERN void error(int n);
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents: 59
diff changeset
250 EXTERN int append4(int p,int a1,int a2,int a3);
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents: 59
diff changeset
251 EXTERN int assign_expr(int e1,int e2,int t,int type);
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents: 59
diff changeset
252 EXTERN int assign_expr0(int e1,int e2,int t,int type);
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents: 59
diff changeset
253 EXTERN int backdef(void);
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents: 59
diff changeset
254 EXTERN int fwdlabel(void);
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents: 59
diff changeset
255 EXTERN int get_register_var(void);
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents: 59
diff changeset
256 EXTERN int glist2(int e1,int e2);
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents: 59
diff changeset
257 EXTERN int integral(int t);
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents: 59
diff changeset
258 EXTERN int list2(int e1, int e2);
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents: 59
diff changeset
259 EXTERN int list3(int e1, int e2, int e3);
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents: 59
diff changeset
260 EXTERN int list4(int e1, int e2, int e3, int e4);
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents: 59
diff changeset
261 EXTERN int reverse0(int t1);
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents: 59
diff changeset
262 EXTERN int rplacad(int e, int n);
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents: 59
diff changeset
263 EXTERN int rplacadd(int e, int n);
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents: 59
diff changeset
264 EXTERN int rvalue_t(int e,int type);
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents: 59
diff changeset
265 EXTERN int scalar(int t);
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents: 59
diff changeset
266 EXTERN void bexpr(int e1, char cond, int l1);
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents: 59
diff changeset
267 EXTERN void def_label(int cslabel, int dlabel);
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents: 59
diff changeset
268 EXTERN void display_ntable(NMTBL *n, char *s);
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents: 59
diff changeset
269 EXTERN void exit(int l);
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents: 59
diff changeset
270 EXTERN void fwddef(int l);
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents: 59
diff changeset
271
33
8500dbb69dd9 bad macro processing. give up this method.
kono
parents: 32
diff changeset
272 /* end */