From 9dae71ae081657b652fd6b17b1d3ec3257f0a189 Mon Sep 17 00:00:00 2001 From: ceriel Date: Wed, 10 Nov 1993 15:07:12 +0000 Subject: [PATCH] Updated for C_ prototypes --- util/ceg/defaults/not_impl/not_impl.c | 1 + util/ceg/defaults/pseudo/C_close.c | 1 + util/ceg/defaults/pseudo/C_df_dlb.c | 1 + util/ceg/defaults/pseudo/C_df_dnam.c | 1 + util/ceg/defaults/pseudo/C_df_ilb.c | 1 + util/ceg/defaults/pseudo/C_end.c | 1 + util/ceg/defaults/pseudo/C_end_narg.c | 1 + util/ceg/defaults/pseudo/C_exa_dlb.c | 1 + util/ceg/defaults/pseudo/C_exa_dnam.c | 1 + util/ceg/defaults/pseudo/C_exp.c | 1 + util/ceg/defaults/pseudo/C_ina_dlb.c | 1 + util/ceg/defaults/pseudo/C_ina_dnam.c | 1 + util/ceg/defaults/pseudo/C_init.c | 1 + util/ceg/defaults/pseudo/C_inp.c | 1 + util/ceg/defaults/pseudo/C_insertpart.c | 4 ++++ util/ceg/defaults/pseudo/C_magic.c | 1 + util/ceg/defaults/pseudo/C_pro.c | 1 + util/ceg/defaults/pseudo/C_pro_narg.c | 1 + util/ceg/defaults/storage/C_bss_cst.c | 1 + util/ceg/defaults/storage/C_bss_dlb.c | 1 + util/ceg/defaults/storage/C_bss_dnam.c | 1 + util/ceg/defaults/storage/C_bss_ilb.c | 1 + util/ceg/defaults/storage/C_bss_pnam.c | 1 + util/ceg/defaults/storage/C_con_cst.c | 1 + util/ceg/defaults/storage/C_con_dlb.c | 1 + util/ceg/defaults/storage/C_con_dnam.c | 1 + util/ceg/defaults/storage/C_con_ilb.c | 1 + util/ceg/defaults/storage/C_con_pnam.c | 1 + util/ceg/defaults/storage/C_con_scon.c | 1 + util/ceg/defaults/storage/C_hol_cst.c | 1 + util/ceg/defaults/storage/C_hol_dlb.c | 1 + util/ceg/defaults/storage/C_hol_dnam.c | 1 + util/ceg/defaults/storage/C_hol_ilb.c | 1 + util/ceg/defaults/storage/C_hol_pnam.c | 1 + util/ceg/defaults/storage/C_rom_cst.c | 1 + util/ceg/defaults/storage/C_rom_dlb.c | 1 + util/ceg/defaults/storage/C_rom_dnam.c | 1 + util/ceg/defaults/storage/C_rom_ilb.c | 1 + util/ceg/defaults/storage/C_rom_pnam.c | 1 + util/ceg/defaults/storage/C_rom_scon.c | 1 + 40 files changed, 43 insertions(+) diff --git a/util/ceg/defaults/not_impl/not_impl.c b/util/ceg/defaults/not_impl/not_impl.c index 8391c16a5..4a7eaf021 100644 --- a/util/ceg/defaults/not_impl/not_impl.c +++ b/util/ceg/defaults/not_impl/not_impl.c @@ -1,6 +1,7 @@ #include #include "back.h" +void not_implemented( instr) char *instr; { diff --git a/util/ceg/defaults/pseudo/C_close.c b/util/ceg/defaults/pseudo/C_close.c index bd41a47be..af8325347 100644 --- a/util/ceg/defaults/pseudo/C_close.c +++ b/util/ceg/defaults/pseudo/C_close.c @@ -4,6 +4,7 @@ extern int B_busy; +void C_close() { assert( B_busy); diff --git a/util/ceg/defaults/pseudo/C_df_dlb.c b/util/ceg/defaults/pseudo/C_df_dlb.c index 053b2997b..0a5a136a5 100644 --- a/util/ceg/defaults/pseudo/C_df_dlb.c +++ b/util/ceg/defaults/pseudo/C_df_dlb.c @@ -2,6 +2,7 @@ #include #include "back.h" +void C_df_dlb( l) label l; diff --git a/util/ceg/defaults/pseudo/C_df_dnam.c b/util/ceg/defaults/pseudo/C_df_dnam.c index 70ac6fc42..4d6a97a98 100644 --- a/util/ceg/defaults/pseudo/C_df_dnam.c +++ b/util/ceg/defaults/pseudo/C_df_dnam.c @@ -2,6 +2,7 @@ #include #include "back.h" +void C_df_dnam( s) char *s; { diff --git a/util/ceg/defaults/pseudo/C_df_ilb.c b/util/ceg/defaults/pseudo/C_df_ilb.c index e377f98a0..852572ce9 100644 --- a/util/ceg/defaults/pseudo/C_df_ilb.c +++ b/util/ceg/defaults/pseudo/C_df_ilb.c @@ -4,6 +4,7 @@ extern int B_procno; +void C_df_ilb( l) label l; { diff --git a/util/ceg/defaults/pseudo/C_end.c b/util/ceg/defaults/pseudo/C_end.c index 8dc6c5f7d..11f34c8e5 100644 --- a/util/ceg/defaults/pseudo/C_end.c +++ b/util/ceg/defaults/pseudo/C_end.c @@ -5,6 +5,7 @@ extern int B_locals_created; extern int B_procno; +void C_end( l) arith l; { diff --git a/util/ceg/defaults/pseudo/C_end_narg.c b/util/ceg/defaults/pseudo/C_end_narg.c index 129617f35..23f2fd14d 100644 --- a/util/ceg/defaults/pseudo/C_end_narg.c +++ b/util/ceg/defaults/pseudo/C_end_narg.c @@ -4,6 +4,7 @@ extern int B_locals_created; +void C_end_narg() { assert( B_locals_created); diff --git a/util/ceg/defaults/pseudo/C_exa_dlb.c b/util/ceg/defaults/pseudo/C_exa_dlb.c index 7d34fd477..eceb72c73 100644 --- a/util/ceg/defaults/pseudo/C_exa_dlb.c +++ b/util/ceg/defaults/pseudo/C_exa_dlb.c @@ -2,6 +2,7 @@ #include #include "back.h" +void C_exa_dlb( l) label l; { diff --git a/util/ceg/defaults/pseudo/C_exa_dnam.c b/util/ceg/defaults/pseudo/C_exa_dnam.c index 8f2174a4f..b241e0ccd 100644 --- a/util/ceg/defaults/pseudo/C_exa_dnam.c +++ b/util/ceg/defaults/pseudo/C_exa_dnam.c @@ -2,6 +2,7 @@ #include #include "back.h" +void C_exa_dnam( s) char *s; { diff --git a/util/ceg/defaults/pseudo/C_exp.c b/util/ceg/defaults/pseudo/C_exp.c index e8c0b1465..f5667abf1 100644 --- a/util/ceg/defaults/pseudo/C_exp.c +++ b/util/ceg/defaults/pseudo/C_exp.c @@ -2,6 +2,7 @@ #include #include "back.h" +void C_exp( s) char *s; { diff --git a/util/ceg/defaults/pseudo/C_ina_dlb.c b/util/ceg/defaults/pseudo/C_ina_dlb.c index a6218733a..7e163ee22 100644 --- a/util/ceg/defaults/pseudo/C_ina_dlb.c +++ b/util/ceg/defaults/pseudo/C_ina_dlb.c @@ -2,6 +2,7 @@ #include #include "back.h" +void C_ina_dlb( l) label l; { diff --git a/util/ceg/defaults/pseudo/C_ina_dnam.c b/util/ceg/defaults/pseudo/C_ina_dnam.c index e2bc1037b..1d41b6bed 100644 --- a/util/ceg/defaults/pseudo/C_ina_dnam.c +++ b/util/ceg/defaults/pseudo/C_ina_dnam.c @@ -2,6 +2,7 @@ #include #include "back.h" +void C_ina_dnam( s) char *s; { diff --git a/util/ceg/defaults/pseudo/C_init.c b/util/ceg/defaults/pseudo/C_init.c index 2c9fee6d8..220340e5c 100644 --- a/util/ceg/defaults/pseudo/C_init.c +++ b/util/ceg/defaults/pseudo/C_init.c @@ -3,6 +3,7 @@ #include #include "mach.h" +void C_init( wsize, psize) arith wsize, psize; { diff --git a/util/ceg/defaults/pseudo/C_inp.c b/util/ceg/defaults/pseudo/C_inp.c index d54fe1ccc..28e474b52 100644 --- a/util/ceg/defaults/pseudo/C_inp.c +++ b/util/ceg/defaults/pseudo/C_inp.c @@ -2,6 +2,7 @@ #include #include "back.h" +void C_inp( s) char *s; { diff --git a/util/ceg/defaults/pseudo/C_insertpart.c b/util/ceg/defaults/pseudo/C_insertpart.c index 97c65a093..50331be03 100644 --- a/util/ceg/defaults/pseudo/C_insertpart.c +++ b/util/ceg/defaults/pseudo/C_insertpart.c @@ -2,6 +2,7 @@ #include #include "back.h" +void C_insertpart( d) int d; @@ -15,6 +16,7 @@ int d; } +void C_beginpart( d) int d; @@ -28,6 +30,7 @@ int d; } +void C_endpart( d) int d; @@ -41,6 +44,7 @@ int d; } +int C_getid() { static int id = 0; diff --git a/util/ceg/defaults/pseudo/C_magic.c b/util/ceg/defaults/pseudo/C_magic.c index 17b23c3e2..0c42945fd 100644 --- a/util/ceg/defaults/pseudo/C_magic.c +++ b/util/ceg/defaults/pseudo/C_magic.c @@ -1,6 +1,7 @@ #define CODE_EXPANDER #include +void C_magic() { } diff --git a/util/ceg/defaults/pseudo/C_pro.c b/util/ceg/defaults/pseudo/C_pro.c index af5f3a599..60e9720eb 100644 --- a/util/ceg/defaults/pseudo/C_pro.c +++ b/util/ceg/defaults/pseudo/C_pro.c @@ -5,6 +5,7 @@ extern int B_locals_created; extern int B_procno; +void C_pro( s, l) char *s; arith l; diff --git a/util/ceg/defaults/pseudo/C_pro_narg.c b/util/ceg/defaults/pseudo/C_pro_narg.c index dd103f51e..24c84444f 100644 --- a/util/ceg/defaults/pseudo/C_pro_narg.c +++ b/util/ceg/defaults/pseudo/C_pro_narg.c @@ -5,6 +5,7 @@ extern int B_locals_created; extern int B_procno; +void C_pro_narg( s) char*s; diff --git a/util/ceg/defaults/storage/C_bss_cst.c b/util/ceg/defaults/storage/C_bss_cst.c index 242c31be0..ec704a959 100644 --- a/util/ceg/defaults/storage/C_bss_cst.c +++ b/util/ceg/defaults/storage/C_bss_cst.c @@ -29,6 +29,7 @@ #define relocEM_PSIZE reloc4 #endif +void C_bss_cst( n, w, i) arith n, w; int i; diff --git a/util/ceg/defaults/storage/C_bss_dlb.c b/util/ceg/defaults/storage/C_bss_dlb.c index 12d1db235..07b3a1926 100644 --- a/util/ceg/defaults/storage/C_bss_dlb.c +++ b/util/ceg/defaults/storage/C_bss_dlb.c @@ -29,6 +29,7 @@ #define relocEM_PSIZE reloc4 #endif +void C_bss_dlb( n, l, offs, i) arith n, offs; label l; diff --git a/util/ceg/defaults/storage/C_bss_dnam.c b/util/ceg/defaults/storage/C_bss_dnam.c index 293cb7058..582fb0912 100644 --- a/util/ceg/defaults/storage/C_bss_dnam.c +++ b/util/ceg/defaults/storage/C_bss_dnam.c @@ -29,6 +29,7 @@ #define relocEM_PSIZE reloc4 #endif +void C_bss_dnam( n, s, offs, i) arith n, offs; char *s; diff --git a/util/ceg/defaults/storage/C_bss_ilb.c b/util/ceg/defaults/storage/C_bss_ilb.c index e9db6e1f4..0b93f1899 100644 --- a/util/ceg/defaults/storage/C_bss_ilb.c +++ b/util/ceg/defaults/storage/C_bss_ilb.c @@ -31,6 +31,7 @@ extern int B_procno; +void C_bss_ilb( n, l, i) arith n; label l; diff --git a/util/ceg/defaults/storage/C_bss_pnam.c b/util/ceg/defaults/storage/C_bss_pnam.c index 45319326f..5c8d4817b 100644 --- a/util/ceg/defaults/storage/C_bss_pnam.c +++ b/util/ceg/defaults/storage/C_bss_pnam.c @@ -29,6 +29,7 @@ #define relocEM_PSIZE reloc4 #endif +void C_bss_pnam( n, s, i) arith n; char *s; diff --git a/util/ceg/defaults/storage/C_con_cst.c b/util/ceg/defaults/storage/C_con_cst.c index ee5751a55..988fd668f 100644 --- a/util/ceg/defaults/storage/C_con_cst.c +++ b/util/ceg/defaults/storage/C_con_cst.c @@ -30,6 +30,7 @@ #endif +void C_con_cst( c) arith c; { diff --git a/util/ceg/defaults/storage/C_con_dlb.c b/util/ceg/defaults/storage/C_con_dlb.c index cf5ccad84..21ff39179 100644 --- a/util/ceg/defaults/storage/C_con_dlb.c +++ b/util/ceg/defaults/storage/C_con_dlb.c @@ -29,6 +29,7 @@ #define relocEM_PSIZE reloc4 #endif +void C_con_dlb( g, o) label g; arith o; diff --git a/util/ceg/defaults/storage/C_con_dnam.c b/util/ceg/defaults/storage/C_con_dnam.c index c2eb63ec7..a51bb6ebe 100644 --- a/util/ceg/defaults/storage/C_con_dnam.c +++ b/util/ceg/defaults/storage/C_con_dnam.c @@ -29,6 +29,7 @@ #define relocEM_PSIZE reloc4 #endif +void C_con_dnam( g, o) char *g; arith o; diff --git a/util/ceg/defaults/storage/C_con_ilb.c b/util/ceg/defaults/storage/C_con_ilb.c index 25150da00..896e407a6 100644 --- a/util/ceg/defaults/storage/C_con_ilb.c +++ b/util/ceg/defaults/storage/C_con_ilb.c @@ -31,6 +31,7 @@ extern int B_procno; +void C_con_ilb( l) label l; { diff --git a/util/ceg/defaults/storage/C_con_pnam.c b/util/ceg/defaults/storage/C_con_pnam.c index a0aa0f7e7..21566f957 100644 --- a/util/ceg/defaults/storage/C_con_pnam.c +++ b/util/ceg/defaults/storage/C_con_pnam.c @@ -29,6 +29,7 @@ #define relocEM_PSIZE reloc4 #endif +void C_con_pnam( p) char *p; { diff --git a/util/ceg/defaults/storage/C_con_scon.c b/util/ceg/defaults/storage/C_con_scon.c index c09136d01..035fb1ec9 100644 --- a/util/ceg/defaults/storage/C_con_scon.c +++ b/util/ceg/defaults/storage/C_con_scon.c @@ -29,6 +29,7 @@ #define relocEM_PSIZE reloc4 #endif +void C_con_scon( s, n) char *s; arith n; diff --git a/util/ceg/defaults/storage/C_hol_cst.c b/util/ceg/defaults/storage/C_hol_cst.c index 4dc16b0f4..9712bdf06 100644 --- a/util/ceg/defaults/storage/C_hol_cst.c +++ b/util/ceg/defaults/storage/C_hol_cst.c @@ -31,6 +31,7 @@ extern int B_holno; +void C_hol_cst( n, w, i) arith n, w; int i; diff --git a/util/ceg/defaults/storage/C_hol_dlb.c b/util/ceg/defaults/storage/C_hol_dlb.c index 58f44a0d7..f7edd0352 100644 --- a/util/ceg/defaults/storage/C_hol_dlb.c +++ b/util/ceg/defaults/storage/C_hol_dlb.c @@ -31,6 +31,7 @@ extern int B_holno; +void C_hol_dlb( n, l, offs, i) arith n, offs; label l; diff --git a/util/ceg/defaults/storage/C_hol_dnam.c b/util/ceg/defaults/storage/C_hol_dnam.c index d9b7c18ec..4ea5b4692 100644 --- a/util/ceg/defaults/storage/C_hol_dnam.c +++ b/util/ceg/defaults/storage/C_hol_dnam.c @@ -31,6 +31,7 @@ extern int B_holno; +void C_hol_dnam( n, s, offs, i) arith n, offs; char *s; diff --git a/util/ceg/defaults/storage/C_hol_ilb.c b/util/ceg/defaults/storage/C_hol_ilb.c index 20be43589..e375c8323 100644 --- a/util/ceg/defaults/storage/C_hol_ilb.c +++ b/util/ceg/defaults/storage/C_hol_ilb.c @@ -31,6 +31,7 @@ extern int B_holno, B_procno; +void C_hol_ilb( n, l, i) arith n; label l; diff --git a/util/ceg/defaults/storage/C_hol_pnam.c b/util/ceg/defaults/storage/C_hol_pnam.c index e9e488f23..96c79dcd0 100644 --- a/util/ceg/defaults/storage/C_hol_pnam.c +++ b/util/ceg/defaults/storage/C_hol_pnam.c @@ -31,6 +31,7 @@ extern int B_holno; +void C_hol_pnam( n, s, i) arith n; char *s; diff --git a/util/ceg/defaults/storage/C_rom_cst.c b/util/ceg/defaults/storage/C_rom_cst.c index 4046433a9..0e6053edd 100644 --- a/util/ceg/defaults/storage/C_rom_cst.c +++ b/util/ceg/defaults/storage/C_rom_cst.c @@ -29,6 +29,7 @@ #define relocEM_PSIZE reloc4 #endif +void C_rom_cst( c) arith c; { diff --git a/util/ceg/defaults/storage/C_rom_dlb.c b/util/ceg/defaults/storage/C_rom_dlb.c index ba6cde59a..1dae3892b 100644 --- a/util/ceg/defaults/storage/C_rom_dlb.c +++ b/util/ceg/defaults/storage/C_rom_dlb.c @@ -29,6 +29,7 @@ #define relocEM_PSIZE reloc4 #endif +void C_rom_dlb( g, o) label g; arith o; diff --git a/util/ceg/defaults/storage/C_rom_dnam.c b/util/ceg/defaults/storage/C_rom_dnam.c index 9f802b334..3424ef662 100644 --- a/util/ceg/defaults/storage/C_rom_dnam.c +++ b/util/ceg/defaults/storage/C_rom_dnam.c @@ -29,6 +29,7 @@ #define relocEM_PSIZE reloc4 #endif +void C_rom_dnam( g, o) char *g; arith o; diff --git a/util/ceg/defaults/storage/C_rom_ilb.c b/util/ceg/defaults/storage/C_rom_ilb.c index fd8d6d42b..17023ea4f 100644 --- a/util/ceg/defaults/storage/C_rom_ilb.c +++ b/util/ceg/defaults/storage/C_rom_ilb.c @@ -31,6 +31,7 @@ extern int B_procno; +void C_rom_ilb( l) label l; { diff --git a/util/ceg/defaults/storage/C_rom_pnam.c b/util/ceg/defaults/storage/C_rom_pnam.c index 6bf305ffa..0d18fe011 100644 --- a/util/ceg/defaults/storage/C_rom_pnam.c +++ b/util/ceg/defaults/storage/C_rom_pnam.c @@ -29,6 +29,7 @@ #define relocEM_PSIZE reloc4 #endif +void C_rom_pnam( p) char *p; { diff --git a/util/ceg/defaults/storage/C_rom_scon.c b/util/ceg/defaults/storage/C_rom_scon.c index edd4e15f5..6e7be1816 100644 --- a/util/ceg/defaults/storage/C_rom_scon.c +++ b/util/ceg/defaults/storage/C_rom_scon.c @@ -29,6 +29,7 @@ #define relocEM_PSIZE reloc4 #endif +void C_rom_scon( s, n) char *s; arith n;