Pristine Ack-5.5
[Ack-5.5.git] / modules / src / em_code / em_private.h
1 /* $Id: em_private.h,v 1.4 1995/03/24 10:27:28 ceriel Exp $ */
2 /*
3  * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
4  * See the copyright notice in the ACK home directory, in the file "Copyright".
5  */
6 /* private inclusion file */
7
8 #include <em_arith.h>
9 #include <em_label.h>
10
11 /* include the EM description files */
12 #include        <em_spec.h>
13 #include        <em_pseu.h>
14 #include        <em_mnem.h>
15 #include        <em_reg.h>
16
17 #include        <ansi.h>
18
19 #include        "em_codeEK.h"
20
21 #ifdef READABLE_EM
22 /* macros used in the definitions of the interface functions C_* */
23 #define OP(x)           C_pt_op(x)
24 #define CST(x)          C_pt_cst(x)
25 #define DCST(x)         C_pt_cst(x)
26 #define SCON(x,y)       C_pt_scon((x), (y))
27 #define PS(x)           C_pt_ps(x)
28 #define DLB(x)          C_pt_dlb(x)
29 #define DFDLB(x)        C_pt_dlb(x)
30 #define ILB(x)          C_pt_ilb(x)
31 #define DFILB(x)        C_pt_dfilb(x)
32 #define NOFF(x,y)       C_pt_noff((x), (y))
33 #define DOFF(x,y)       C_pt_doff((x), (y))
34 #define PNAM(x)         C_pt_pnam(x)
35 #define DNAM(x)         C_pt_dnam(x)
36 #define DFDNAM(x)       C_pt_dnam(x)
37 #define CEND()
38 #define CCEND()         C_pt_ccend()
39 #define WCON(x,y,z)     C_pt_wcon((x), (y), (z))
40 #define COMMA()         C_pt_comma()
41 #define NL()            C_pt_nl()
42 #define CILB(x)         C_pt_ilb(x)
43
44 #else
45 /* macros used in the definitions of the interface functions C_* */
46 #define OP(x)           C_pt_op(x)
47 #define CST(x)          C_pt_cst(x)
48 #define DCST(x)         C_pt_cst(x)
49 #define SCON(x,y)       C_pt_scon((x), (y))
50 #define PS(x)           C_pt_ps(x)
51 #define DLB(x)          C_pt_dlb(x)
52 #define DFDLB(x)        C_pt_dlb(x)
53 #define ILB(x)          C_pt_ilb(x)
54 #define DFILB(x)        C_pt_ilb(x)
55 #define NOFF(x,y)       C_pt_noff((x), (y))
56 #define DOFF(x,y)       C_pt_doff((x), (y))
57 #define PNAM(x)         C_pt_pnam(x)
58 #define DNAM(x)         C_pt_dnam(x)
59 #define DFDNAM(x)       C_pt_dnam(x)
60 #define CEND()          C_pt_cend()
61 #define CCEND()         C_pt_cend()
62 #define WCON(x,y,z)     C_pt_wcon((x), (y), (z))
63 #define COMMA()
64 #define NL()
65 #define CILB(x)         CST((arith) x)
66
67 #define C_pt_cend()     C_putbyte(sp_cend)
68 #define C_pt_op(x)      C_putbyte(x)
69 #define C_pt_ps(x)      C_putbyte(x)
70 #endif /* READABLE_EM */
71
72 _PROTOTYPE(void C_pt_dnam, (char *));
73 _PROTOTYPE(void C_pt_ilb, (label));
74 _PROTOTYPE(void C_pt_cst, (arith));
75 _PROTOTYPE(void C_pt_scon, (char *, arith));
76 _PROTOTYPE(void C_pt_dlb, (label));
77 _PROTOTYPE(void C_pt_doff, (label, arith));
78 _PROTOTYPE(void C_pt_noff, (char *, arith));
79 _PROTOTYPE(void C_pt_pnam, (char *));
80 _PROTOTYPE(void C_pt_dfilb, (label));
81 _PROTOTYPE(void C_pt_wcon, (int, char *, arith));
82 #ifdef READABLE_EM
83 _PROTOTYPE(void C_pt_ps, (int));
84 _PROTOTYPE(void C_pt_op, (int));
85 _PROTOTYPE(void C_pt_nl, (void));
86 _PROTOTYPE(void C_pt_comma, (void));
87 _PROTOTYPE(void C_pt_ccend, (void));
88 #endif /* READABLE_EM */