Added prototyping stuff
authorceriel <none@none>
Wed, 10 Nov 1993 10:26:07 +0000 (10:26 +0000)
committerceriel <none@none>
Wed, 10 Nov 1993 10:26:07 +0000 (10:26 +0000)
53 files changed:
modules/src/em_code/bhcst.c
modules/src/em_code/bhdlb.c
modules/src/em_code/bhdnam.c
modules/src/em_code/bhfcon.c
modules/src/em_code/bhicon.c
modules/src/em_code/bhilb.c
modules/src/em_code/bhpnam.c
modules/src/em_code/bhucon.c
modules/src/em_code/crcst.c
modules/src/em_code/crdlb.c
modules/src/em_code/crdnam.c
modules/src/em_code/crilb.c
modules/src/em_code/crpnam.c
modules/src/em_code/crscon.c
modules/src/em_code/crxcon.c
modules/src/em_code/cst.c
modules/src/em_code/dfdlb.c
modules/src/em_code/dfdnam.c
modules/src/em_code/dfilb.c
modules/src/em_code/dlb.c
modules/src/em_code/dnam.c
modules/src/em_code/em.c
modules/src/em_code/em.nogen
modules/src/em_code/em_code.3X
modules/src/em_code/em_private.h
modules/src/em_code/end.c
modules/src/em_code/endarg.c
modules/src/em_code/exc.c
modules/src/em_code/failed.c
modules/src/em_code/fcon.c
modules/src/em_code/getid.c
modules/src/em_code/icon.c
modules/src/em_code/ilb.c
modules/src/em_code/insert.c
modules/src/em_code/internerr.c
modules/src/em_code/msend.c
modules/src/em_code/msstart.c
modules/src/em_code/op.c
modules/src/em_code/opcst.c
modules/src/em_code/opdlb.c
modules/src/em_code/opdnam.c
modules/src/em_code/opilb.c
modules/src/em_code/opnarg.c
modules/src/em_code/oppnam.c
modules/src/em_code/pnam.c
modules/src/em_code/pro.c
modules/src/em_code/pronarg.c
modules/src/em_code/proto.make
modules/src/em_code/psdlb.c
modules/src/em_code/psdnam.c
modules/src/em_code/pspnam.c
modules/src/em_code/scon.c
modules/src/em_code/ucon.c

index 8e44cd5..c1bec07 100644 (file)
@@ -2,6 +2,7 @@
 
 /* $Header$ */
 
+void
 CC_bhcst(op, n, w, i)
        arith n;
        arith w;
index a94796c..0ad5678 100644 (file)
@@ -2,6 +2,7 @@
 
 /* $Header$ */
 
+void
 CC_bhdlb(op, n, s, off, i)
        arith n;
        label s;
index cd9bb2f..a99ce36 100644 (file)
@@ -2,6 +2,7 @@
 
 /* $Header$ */
 
+void
 CC_bhdnam(op, n, s, off, i)
        arith n;
        char *s;
index 558953c..0d9277d 100644 (file)
@@ -2,6 +2,7 @@
 
 /* $Header$ */
 
+void
 CC_bhfcon(op, n, s, sz, i)
        arith n;
        char *s;
index feb330f..09ca503 100644 (file)
@@ -2,6 +2,7 @@
 
 /* $Header$ */
 
+void
 CC_bhicon(op, n, s, sz, i)
        arith n;
        char *s;
index 81d53c9..45dcf2b 100644 (file)
@@ -2,6 +2,7 @@
 
 /* $Header$ */
 
+void
 CC_bhilb(op, n, l, i)
        arith n;
        label l;
index d0dc076..a4bfddf 100644 (file)
@@ -2,6 +2,7 @@
 
 /* $Header$ */
 
+void
 CC_bhpnam(op, n, p, i)
        arith n;
        char *p;
index 9fd5d30..219e961 100644 (file)
@@ -2,6 +2,7 @@
 
 /* $Header$ */
 
+void
 CC_bhucon(op, n, s, sz, i)
        arith n;
        char *s;
index 414b613..ab454ab 100644 (file)
@@ -2,6 +2,7 @@
 
 /* $Header$ */
 
+void
 CC_crcst(op, v)
        arith v;
 {
index ff44a56..2f8909c 100644 (file)
@@ -2,6 +2,7 @@
 
 /* $Header$ */
 
+void
 CC_crdlb(op, v, off)
        label v;
        arith off;
index ab398dd..8f69c31 100644 (file)
@@ -2,6 +2,7 @@
 
 /* $Header$ */
 
+void
 CC_crdnam(op, s, off)
        char *s;
        arith off;
index e43268a..8f8ba22 100644 (file)
@@ -2,6 +2,7 @@
 
 /* $Header$ */
 
+void
 CC_crilb(op, l)
        label l;
 {
index a31aa82..37f3222 100644 (file)
@@ -2,6 +2,7 @@
 
 /* $Header$ */
 
+void
 CC_crpnam(op, p)
        char *p;
 {
index 6b6dd56..b0d46ab 100644 (file)
@@ -2,6 +2,7 @@
 
 /* $Header$ */
 
+void
 CC_crscon(op, v, s)
        char *v;
        arith s;
index 88e168b..68a69d0 100644 (file)
@@ -2,6 +2,7 @@
 
 /* $Header$ */
 
+void
 CC_crxcon(op, spec, v, s)
        char *v;
        arith s;
index 4adfd3b..e6c9454 100644 (file)
@@ -2,6 +2,7 @@
 
 /* $Header$ */
 
+void
 CC_cst(l)
        arith l;
 {
index aed1dd9..bfb553b 100644 (file)
@@ -2,6 +2,7 @@
 
 /* $Header$ */
 
+void
 CC_dfdlb(l)
        label l;
 {
index ab53383..8d24349 100644 (file)
@@ -2,6 +2,7 @@
 
 /* $Header$ */
 
+void
 CC_dfdnam(s)
        char *s;
 {
index 9b87cbb..1f95789 100644 (file)
@@ -2,6 +2,7 @@
 
 /* $Header$ */
 
+void
 CC_dfilb(l)
        label l;
 {
index 8e19135..3d92c1e 100644 (file)
@@ -2,6 +2,7 @@
 
 /* $Header$ */
 
+void
 CC_dlb(l, val)
        label l;
        arith val;
index 6b414d6..6cec649 100644 (file)
@@ -2,6 +2,7 @@
 
 /* $Header$ */
 
+void
 CC_dnam(str, val)
        char *str;
        arith val;
index 8aac6ed..a742526 100644 (file)
@@ -46,6 +46,7 @@ char          *C_current_out = obuf;
 char           *C_opp = obuf;
 #endif
 
+void
 C_flush() {
 #ifdef INCORE
        static unsigned int bufsiz;
@@ -78,6 +79,7 @@ C_flush() {
 #define Xputbyte(c) put(c)
 #endif
 
+void
 C_putbyte(c)
        int c;
 {
@@ -89,11 +91,13 @@ C_putbyte(c)
 #endif
 
 /*ARGSUSED*/
+void
 C_init(w, p)
        arith w, p;
 {
 }
 
+int
 C_open(nm)
        char *nm;
 {
@@ -108,6 +112,7 @@ C_open(nm)
        return 1;
 }
 
+void
 C_close()
 {
        /*      Finish the code-generation.
@@ -142,6 +147,7 @@ C_close()
        C_ofp = 0;
 }
 
+int
 C_busy()
 {
        return C_ofp != 0; /* true if code is being generated */
@@ -156,6 +162,7 @@ C_busy()
        names.
 */
 
+void
 C_magic()
 {
 }
@@ -171,12 +178,14 @@ wrs(s)
        }
 }
 
+void
 C_pt_dnam(s)
        char *s;
 {
        wrs(s);
 }
 
+void
 C_pt_ilb(l)
        label l;
 {
@@ -189,6 +198,7 @@ C_pt_ilb(l)
 extern char em_mnem[][4];
 extern char em_pseu[][4];
 
+void
 C_pt_op(x)
 {
        C_putbyte(' ');
@@ -196,6 +206,7 @@ C_pt_op(x)
        C_putbyte(' ');
 }
 
+void
 C_pt_cst(l)
        arith l;
 {
@@ -205,6 +216,7 @@ C_pt_cst(l)
        wrs(buf);
 }
 
+void
 C_pt_scon(x, y)
        char *x;
        arith y;
@@ -224,6 +236,7 @@ C_pt_scon(x, y)
        C_putbyte('\'');
 }
 
+void
 C_pt_ps(x)
 {
        C_putbyte(' ');
@@ -231,6 +244,7 @@ C_pt_ps(x)
        C_putbyte(' ');
 }
 
+void
 C_pt_dlb(l)
        label l;
 {
@@ -240,6 +254,7 @@ C_pt_dlb(l)
        wrs(buf);
 }
 
+void
 C_pt_doff(l, v)
        label l;
        arith v;
@@ -253,6 +268,7 @@ C_pt_doff(l, v)
        }
 }
 
+void
 C_pt_noff(s, v)
        char *s;
        arith v;
@@ -266,6 +282,7 @@ C_pt_noff(s, v)
        }
 }
 
+void
 C_pt_pnam(s)
        char *s;
 {
@@ -273,6 +290,7 @@ C_pt_pnam(s)
        wrs(s);
 }
 
+void
 C_pt_dfilb(l)
        label l;
 {
@@ -282,6 +300,7 @@ C_pt_dfilb(l)
        wrs(buf);
 }
 
+void
 C_pt_wcon(sp, v, sz)   /* sp_icon, sp_ucon or sp_fcon with int repr    */
        int sp;
        char *v;
@@ -294,9 +313,20 @@ C_pt_wcon(sp, v, sz)       /* sp_icon, sp_ucon or sp_fcon with int repr    */
        C_pt_cst(sz);
 }
 
-C_pt_nl() { C_putbyte('\n'); }
-C_pt_comma() { C_putbyte(','); }
-C_pt_ccend() { C_putbyte('?'); }
+void
+C_pt_nl() {
+       C_putbyte('\n');
+}
+
+void
+C_pt_comma() {
+       C_putbyte(',');
+}
+
+void
+C_pt_ccend() { 
+       C_putbyte('?');
+}
 
 #else /* READABLE_EM */
 
@@ -312,6 +342,7 @@ C_pt_ccend() { C_putbyte('?'); }
        names.
 */
 
+void
 C_magic()
 {
        put16(sp_magic);
@@ -321,6 +352,7 @@ C_magic()
 #define        fit16i(x)       ((x) >= (long)0xFFFF8000 && (x) <= (long)0x00007FFF)
 #define        fit8u(x)        ((x) <= 0xFF)           /* x is already unsigned */
 
+void
 C_pt_ilb(l)
        register label l;
 {
@@ -334,6 +366,7 @@ C_pt_ilb(l)
        }
 }
 
+void
 C_pt_dlb(l)
        register label l;
 {
@@ -347,6 +380,7 @@ C_pt_dlb(l)
        }
 }
 
+void
 C_pt_cst(l)
        register arith l;
 {
@@ -367,6 +401,7 @@ C_pt_cst(l)
        }
 }
 
+void
 C_pt_doff(l, v)
        label l;
        arith v;
@@ -381,6 +416,27 @@ C_pt_doff(l, v)
        }
 }
 
+void
+C_pt_str(s)
+       register char *s;
+{
+       register int len;
+
+       C_pt_cst((arith) (len = strlen(s)));
+       while (--len >= 0) {
+               put8(*s++);
+       }
+}
+
+void
+C_pt_dnam(s)
+       char *s;
+{
+       put8(sp_dnam);
+       C_pt_str(s);
+}
+
+void
 C_pt_noff(s, v)
        char *s;
        arith v;
@@ -395,13 +451,7 @@ C_pt_noff(s, v)
        }
 }
 
-C_pt_dnam(s)
-       char *s;
-{
-       put8(sp_dnam);
-       C_pt_str(s);
-}
-
+void
 C_pt_pnam(s)
        char *s;
 {
@@ -409,6 +459,7 @@ C_pt_pnam(s)
        C_pt_str(s);
 }
 
+void
 C_pt_wcon(sp, v, sz)   /* sp_icon, sp_ucon or sp_fcon with int repr    */
        int sp;
        char *v;
@@ -420,17 +471,7 @@ C_pt_wcon(sp, v, sz)       /* sp_icon, sp_ucon or sp_fcon with int repr    */
        C_pt_str(v);
 }
 
-C_pt_str(s)
-       register char *s;
-{
-       register int len;
-
-       C_pt_cst((arith) (len = strlen(s)));
-       while (--len >= 0) {
-               put8(*s++);
-       }
-}
-
+void
 C_pt_scon(b, n)
        register char *b;
        register arith n;
index 1b17ec1..8a0d6de 100644 (file)
 #ifndef sp_icon
 #include <em_spec.h>
 #endif
+
+/* prototypes, also hand written. */
+_PROTOTYPE(void CC_bhcst, (int, arith, arith, int));
+_PROTOTYPE(void CC_bhdlb, (int, arith, label, arith, int));
+_PROTOTYPE(void CC_bhdnam, (int, arith, char *, arith, int));
+_PROTOTYPE(void CC_bhfcon, (int, arith, char *, arith, int));
+_PROTOTYPE(void CC_bhicon, (int, arith, char *, arith, int));
+_PROTOTYPE(void CC_bhilb, (int, arith, label, int));
+_PROTOTYPE(void CC_bhpnam, (int, arith, char *, int));
+_PROTOTYPE(void CC_bhucon, (int, arith, char *, arith, int));
+_PROTOTYPE(void CC_crcst, (int, arith));
+_PROTOTYPE(void CC_crdlb, (int, label, arith));
+_PROTOTYPE(void CC_crdnam, (int, char *, arith));
+_PROTOTYPE(void CC_crilb, (int, label));
+_PROTOTYPE(void CC_crpnam, (int, char *));
+_PROTOTYPE(void CC_crscon, (int, char *, arith));
+_PROTOTYPE(void CC_crxcon, (int, int, char *, arith));
+_PROTOTYPE(void CC_cst, (arith));
+_PROTOTYPE(void CC_dfdlb, (label));
+_PROTOTYPE(void CC_dfdnam, (char *));
+_PROTOTYPE(void CC_dfilb, (label));
+_PROTOTYPE(void CC_dlb, (label, arith));
+_PROTOTYPE(void CC_dnam, (char *, arith));
+_PROTOTYPE(void CC_end, (arith));
+_PROTOTYPE(void CC_endnarg, (void));
+_PROTOTYPE(void CC_exc, (arith, arith));
+_PROTOTYPE(void CC_fcon, (char *, arith));
+_PROTOTYPE(void CC_icon, (char *, arith));
+_PROTOTYPE(void CC_ilb, (label));
+_PROTOTYPE(void CC_msend, (void));
+_PROTOTYPE(void CC_msstart, (int));
+_PROTOTYPE(void CC_op, (int));
+_PROTOTYPE(void CC_opcst, (int, arith));
+_PROTOTYPE(void CC_opdlb, (int, label, arith));
+_PROTOTYPE(void CC_opdnam, (int, char *, arith));
+_PROTOTYPE(void CC_opilb, (int, label));
+_PROTOTYPE(void CC_opnarg, (int));
+_PROTOTYPE(void CC_oppnam, (int, char *));
+_PROTOTYPE(void CC_pnam, (char *));
+_PROTOTYPE(void CC_pro, (char *, arith));
+_PROTOTYPE(void CC_pronarg, (char *));
+_PROTOTYPE(void CC_psdlb, (int, label));
+_PROTOTYPE(void CC_psdnam, (int, char *));
+_PROTOTYPE(void CC_pspnam, (int, char *));
+_PROTOTYPE(void CC_scon, (char *, arith));
+_PROTOTYPE(void CC_ucon, (char *, arith));
+
+_PROTOTYPE(void C_init, (arith, arith));
+_PROTOTYPE(void C_failed, (void));
+_PROTOTYPE(void C_internal_error, (void));
+_PROTOTYPE(int C_open, (char *));
+_PROTOTYPE(void C_close, (void));
+_PROTOTYPE(int C_busy, (void));
+_PROTOTYPE(void C_magic, (void));
+_PROTOTYPE(int C_getid, (void));
+_PROTOTYPE(void C_insertpart, (int));
+_PROTOTYPE(void C_beginpart, (int));
+_PROTOTYPE(void C_endpart, (int));
index e2dab08..84c0516 100644 (file)
@@ -6,61 +6,61 @@ emcode \- EM code interface for compilers
 .nf
 .B #include <em.h>
 .PP
-.B C_init(wsize, psize)
+.B void C_init(wsize, psize)
 .B arith wsize, psize;
 .PP
 .B int C_open(filename)
-.B C_close()
+.B void C_close()
 .B int C_busy()
 .B char *filename;
 .PP
-.B C_magic()
+.B void C_magic()
 .PP
-.B C_df_dlb(l)
-.B C_df_dnam(s)
-.B C_df_ilb(l)
+.B void C_df_dlb(l)
+.B void C_df_dnam(s)
+.B void C_df_ilb(l)
 .B label l; char *s;
 .PP
-.B C_pro(s, l)
-.B C_pro_narg(s)
-.B C_end(l)
-.B C_end_narg()
+.B void C_pro(s, l)
+.B void C_pro_narg(s)
+.B void C_end(l)
+.B void C_end_narg()
 .B char *s; arith l;
 .PP
-.B C_exa_dlb(l)
-.B C_exa_dnam(s)
-.B C_exp(s)
-.B C_ina_dlb(l)
-.B C_ina_dnam(s)
-.B C_inp(s)
+.B void C_exa_dlb(l)
+.B void C_exa_dnam(s)
+.B void C_exp(s)
+.B void C_ina_dlb(l)
+.B void C_ina_dnam(s)
+.B void C_inp(s)
 .B char *s; label l;
 .PP
-.BI C_bss_ cstp ()
-.BI C_hol_ cstp ()
-.BI C_con_ cstp ()
-.BI C_rom_ cstp ()
+.BI "void C_bss_" cstp ()
+.BI "void C_hol_" cstp ()
+.BI "void C_con_" cstp ()
+.BI "void C_rom_" cstp ()
 .PP
 .B #include <em_mes.h>
-.B C_mes_begin(ms)
-.BI C_ cstp ()
-.B C_mes_end()
+.B void C_mes_begin(ms)
+.BI "void C_" cstp ()
+.B void C_mes_end()
 .B int ms;
 .PP
-.B C_exc(c1, c2)
+.B void C_exc(c1, c2)
 .B arith c1, c2;
 .PP
-.BI C_ mnem ()
-.BI C_ mnem _dlb()
-.BI C_ mnem _dnam()
-.BI C_ mnem _narg()
+.BI "void C_" mnem ()
+.BI "void C_" mnem _dlb()
+.BI "void C_" mnem _dnam()
+.BI "void C_" mnem _narg()
 .PP
-.B C_insertpart(id)
+.B void C_insertpart(id)
 .B int id;
 .PP
-.B C_beginpart(id)
+.B void C_beginpart(id)
 .B int id;
 .PP
-.B C_endpart(id)
+.B void C_endpart(id)
 .B int id;
 .PP
 .B int C_getid()
index 7fc357e..0388b91 100644 (file)
 #include       <em_mnem.h>
 #include       <em_reg.h>
 
+#include       <ansi.h>
+
+#include       "em_codeEK.h"
+
 #ifdef READABLE_EM
 /* macros used in the definitions of the interface functions C_* */
 #define        OP(x)           C_pt_op(x)
 #define        C_pt_op(x)      C_putbyte(x)
 #define        C_pt_ps(x)      C_putbyte(x)
 #endif /* READABLE_EM */
+
+_PROTOTYPE(void C_pt_dnam, (char *));
+_PROTOTYPE(void C_pt_ilb, (label));
+_PROTOTYPE(void C_pt_op, (int));
+_PROTOTYPE(void C_pt_cst, (arith));
+_PROTOTYPE(void C_pt_scon, (char *, arith));
+_PROTOTYPE(void C_pt_ps, (int));
+_PROTOTYPE(void C_pt_dlb, (label));
+_PROTOTYPE(void C_pt_doff, (label, arith));
+_PROTOTYPE(void C_pt_noff, (char *, arith));
+_PROTOTYPE(void C_pt_pnam, (char *));
+_PROTOTYPE(void C_pt_dfilb, (label));
+_PROTOTYPE(void C_pt_wcon, (int, char *, arith));
+#ifdef READABLE_EM
+_PROTOTYPE(void C_pt_nl, (void));
+_PROTOTYPE(void C_pt_comma, (void));
+_PROTOTYPE(void C_pt_ccend, (void));
+#endif /* READABLE_EM */
index bf3c42c..027a211 100644 (file)
@@ -2,6 +2,7 @@
 
 /* $Header$ */
 
+void
 CC_end(l)
        arith l;
 {
index d9419f7..a5a3fee 100644 (file)
@@ -2,6 +2,7 @@
 
 /* $Header$ */
 
+void
 CC_endnarg()
 {
        /*      END pseudo of procedure with unknown # of locals
index 887e248..ac575e6 100644 (file)
@@ -2,6 +2,7 @@
 
 /* $Header$ */
 
+void
 CC_exc(c1,c2)
        arith c1,c2;
 {
index 92fe960..9eee8a9 100644 (file)
@@ -5,6 +5,7 @@
  */
 #include <system.h>
 
+void
 C_failed()
 {
        sys_write(STDERR,"read, write, or open failed\n",28);
index 162573c..fc13bba 100644 (file)
@@ -2,6 +2,7 @@
 
 /* $Header$ */
 
+void
 CC_fcon(val, siz)
        char *val;
        arith siz;
index 4b107bc..ec7f960 100644 (file)
@@ -3,6 +3,7 @@
 /*     Get a unique id for C_insertpart, etc.
 */
 
+int
 C_getid()
 {
        static int id = 0;
index 3785b3f..5cbbb0b 100644 (file)
@@ -2,6 +2,7 @@
 
 /* $Header$ */
 
+void
 CC_icon(val, siz)
        char *val;
        arith siz;
index c3c209e..7445826 100644 (file)
@@ -2,6 +2,7 @@
 
 /* $Header$ */
 
+void
 CC_ilb(l)
        label l;
 {
index 167eb38..cb9d6e6 100644 (file)
@@ -302,6 +302,7 @@ resume(p)
        pp->pp_begin = C_current_out - C_BASE;
 }
 
+void
 C_insertpart(part)
        int part;
 {
@@ -340,6 +341,7 @@ C_insertpart(part)
        resume(p);
 }
 
+void
 C_beginpart(part)
        int part;
 {
@@ -359,6 +361,7 @@ C_beginpart(part)
        resume(p);
 }
 
+void
 C_endpart(part)
        int part;
 {
index 187d72b..517fe37 100644 (file)
@@ -5,6 +5,7 @@
  */
 #include <system.h>
 
+void
 C_internal_error()
 {
        sys_write(STDERR,"internal error\n",15);
index f7cdb4c..df7c30b 100644 (file)
@@ -2,6 +2,7 @@
 
 /* $Header$ */
 
+void
 CC_msend()
 {
        CEND();
index 9ecf398..74d39f7 100644 (file)
@@ -2,6 +2,7 @@
 
 /* $Header$ */
 
+void
 CC_msstart(cst)
        int cst;
 {
index d57f9e6..28f901a 100644 (file)
@@ -2,6 +2,7 @@
 
 /* $Header$ */
 
+void
 CC_op(opcode)
 {
        /*      Instruction that never has an argument
index 98ce4b2..5cd6860 100644 (file)
@@ -2,6 +2,7 @@
 
 /* $Header$ */
 
+void
 CC_opcst(opcode, cst)
        arith cst;
 {
index 7b7d3df..2186918 100644 (file)
@@ -2,6 +2,7 @@
 
 /* $Header$ */
 
+void
 CC_opdlb(opcode, dlb, offset)
        label dlb;
        arith offset;
index a40a0f2..88223f9 100644 (file)
@@ -2,6 +2,7 @@
 
 /* $Header$ */
 
+void
 CC_opdnam(opcode, dnam, offset)
        char *dnam;
        arith offset;
index 35c4763..e2ffa42 100644 (file)
@@ -2,6 +2,7 @@
 
 /* $Header$ */
 
+void
 CC_opilb(opcode, ilb)
        label ilb;
 {
index 62e3bfe..fa15a1b 100644 (file)
@@ -2,6 +2,7 @@
 
 /* $Header$ */
 
+void
 CC_opnarg(opcode)
 {
        /*      Instruction with optional argument, but now without one
index 756e4c7..1419849 100644 (file)
@@ -2,6 +2,7 @@
 
 /* $Header$ */
 
+void
 CC_oppnam(opcode, pnam)
        char *pnam;
 {
index 6de3864..fb2f730 100644 (file)
@@ -2,6 +2,7 @@
 
 /* $Header$ */
 
+void
 CC_pnam(str)
        char *str;
 {
index 28c1608..aea680e 100644 (file)
@@ -2,6 +2,7 @@
 
 /* $Header$ */
 
+void
 CC_pro(pnam, l)
        char *pnam;
        arith l;
index f3a1b93..a8fabf9 100644 (file)
@@ -2,6 +2,7 @@
 
 /* $Header$ */
 
+void
 CC_pronarg(pnam)
        char *pnam;
 {
index 3a156ff..f54154b 100644 (file)
@@ -6,7 +6,7 @@ ETC = $(SRC_HOME)/etc
 SRC_DIR = $(SRC_HOME)/modules/src/em_code
 MOD_DIR = $(TARGET_HOME)/modules
 
-INCLUDES = -I$(TARGET_HOME)/h -I$(TARGET_HOME)/config -I$(MOD_DIR)/h -I$(SRC_HOME)/modules/src/read_em -I$(SRC_DIR)
+INCLUDES = -I. -I$(TARGET_HOME)/h -I$(TARGET_HOME)/config -I$(MOD_DIR)/h -I$(SRC_HOME)/modules/src/read_em -I$(SRC_DIR)
 CFLAGS = $(INCLUDES) $(COPTIONS)
 SRC =  $(SRC_DIR)/bhcst.c\
        $(SRC_DIR)/bhdlb.c\
@@ -64,11 +64,12 @@ OBS = failed.$(SUF) insert.$(SUF) internerr.$(SUF) getid.$(SUF)
 all:           em_codeEK.h libeme.$(LIBSUF) libemk.$(LIBSUF) em_code.3
 
 install:       all
+               -mkdir $(MOD_DIR)/lib
+               -mkdir $(MOD_DIR)/h
                cp libeme.$(LIBSUF) $(MOD_DIR)/lib/libeme.$(LIBSUF)
                $(RANLIB) $(MOD_DIR)/lib/libeme.$(LIBSUF)
                cp libemk.$(LIBSUF) $(MOD_DIR)/lib/libemk.$(LIBSUF)
                $(RANLIB) $(MOD_DIR)/lib/libemk.$(LIBSUF)
-               cp em_code.3 $(MOD_DIR)/man/em_code.3
                cp em_codeEK.h $(MOD_DIR)/h/em_codeEK.h
                if [ $(DO_MACHINE_INDEP) = y ] ; \
                then    mk_manpage em_code.3 $(TARGET_HOME) ; \
@@ -78,7 +79,6 @@ cmp:  all
                -cmp libeme.$(LIBSUF) $(MOD_DIR)/lib/libeme.$(LIBSUF)
                -cmp libemk.$(LIBSUF) $(MOD_DIR)/lib/libemk.$(LIBSUF)
                -cmp em_codeEK.h $(MOD_DIR)/h/em_codeEK.h
-               -cmp em_code.3 $(MOD_DIR)/man/em_code.3
 
 em_code.3:     $(SRC_DIR)/em_code.3X
                -sh -c 'tbl < $(SRC_DIR)/em_code.3X > em_code.3'
index 4a1c6be..9687ce3 100644 (file)
@@ -2,6 +2,7 @@
 
 /* $Header$ */
 
+void
 CC_psdlb(op, dlb)
        label dlb;
 {
index d903d7b..e426d6c 100644 (file)
@@ -2,6 +2,7 @@
 
 /* $Header$ */
 
+void
 CC_psdnam(op, dnam)
        char *dnam;
 {
index 3a4bd36..d033a1e 100644 (file)
@@ -2,6 +2,7 @@
 
 /* $Header$ */
 
+void
 CC_pspnam(op, pnam)
        char *pnam;
 {
index c900b27..d5f7624 100644 (file)
@@ -2,6 +2,7 @@
 
 /* $Header$ */
 
+void
 CC_scon(str, siz)
        char *str;
        arith siz;
index b24d343..df532bb 100644 (file)
@@ -2,6 +2,7 @@
 
 /* $Header$ */
 
+void
 CC_ucon(val,siz)
        char *val;
        arith siz;