|
|
1.1 root 1: #include <string.h>
2:
3: #include <stdio.h>
4:
5:
6:
7: #define LINSIZ 128
8:
9:
10:
11: #ifdef __STDC__
12:
13: #define P_(x) x
14:
15: #else
16:
17: #define P_(x) ()
18:
19: #define const
20:
21: #endif
22:
23:
24:
25: /* are we compiling on an Atari? */
26:
27: #if defined(atarist) || defined(ATARI)
28:
29: #define NATIVEATARI 1
30:
31: #endif
32:
33:
34:
35: #if defined(__STDC__) && !defined(NO_STDLIB)
36:
37: # include <stdlib.h>
38:
39: #else
40:
41: #define size_t int
42:
43: extern char *malloc();
44:
45: #endif
46:
47:
48:
49: #define GAS 0
50:
51: #define ASM 1
52:
53: #define PUREC 2
54:
55: extern int syntax;
56:
57:
58:
59: /* this variable should always be 0
60:
61: * at the end of translation */
62:
63: extern int ifstkptr;
64:
65:
66:
67: char *concat P_((char *, char *));
68:
69: char *concat3 P_((char *, char *, char *));
70:
71: char *concat4 P_((char *, char *, char *, char *));
72:
73: char *concat5 P_((char *,char *, char *, char *, char *));
74:
75: char *concat6 P_((char *,char *,char *, char *, char *, char *));
76:
1.1.1.2 ! root 77: char *concat8 P_((char *,char *,char *, char *, char *, char *, char *, char *));
! 78:
! 79: char *concat9 P_((char *,char *,char *, char *, char *, char *, char *, char *, char *));
! 80:
1.1 root 81: void do_define P_((char *, char *));
82:
83: void do_ifdef P_((char *));
84:
85: void do_ifndef P_((char *));
86:
87: void do_else P_((void));
88:
89: void do_endif P_((void));
90:
91: void do_include P_((char *));
92:
93: void do_initial_defs P_((void));
94:
95: void yyerror P_((char *));
96:
97:
98:
99: char *wordlookup P_((char *));
100:
101: char *changesiz P_((char *));
102:
1.1.1.2 ! root 103: char *changesiz2 P_((char *));
! 104:
1.1 root 105: char *fixupword P_((char *));
106:
107: void emit P_((char *));
108:
109:
110:
111: char *immediate P_((char *));
112:
113: char *indirect P_((char *));
114:
115: char *postinc P_((char *));
116:
117: char *predec P_((char *));
118:
119: char *indexed P_((char *, char *));
120:
121: char *sizedop P_((char *, char *));
122:
123: char *twoindex P_((char *, char *, char *));
124:
1.1.1.2 ! root 125: char *postindex P_((char *, char *, char *, char *));
! 126:
! 127: char *postindex0 P_((char *));
! 128:
! 129: char *postindex1 P_((char *, char *));
! 130:
! 131: char *preindex P_((char *, char *, char *, char *));
! 132:
! 133: char *bitfield P_((char *, char *, char *));
1.1 root 134:
135: char *do_ops P_((char *, char *, char *, char *));
136:
137: char *hexop P_((char *));
138:
139:
140:
141: extern FILE *infile, *outfile;
142:
143: extern int hidecnt;
144:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.