From 1c570328f0ecbc323c3c8b82eeb3cac6f0e44d46 Mon Sep 17 00:00:00 2001 From: ceriel Date: Fri, 20 Jan 1989 15:01:37 +0000 Subject: [PATCH] fixed parameter types --- util/ceg/ce_back/as_back/con1.c | 2 +- util/ceg/ce_back/as_back/con2.c | 2 +- util/ceg/ce_back/as_back/con4.c | 2 +- util/ceg/ce_back/as_back/gen1.c | 8 ++++---- util/ceg/ce_back/as_back/gen2.c | 8 ++++---- util/ceg/ce_back/as_back/gen4.c | 8 ++++---- util/ceg/ce_back/as_back/reloc1.c | 2 +- util/ceg/ce_back/as_back/reloc2.c | 2 +- util/ceg/ce_back/as_back/reloc4.c | 2 +- util/ceg/ce_back/as_back/rom1.c | 2 +- util/ceg/ce_back/as_back/rom2.c | 2 +- util/ceg/ce_back/as_back/rom4.c | 2 +- util/ceg/ce_back/as_back/text1.c | 2 +- util/ceg/ce_back/as_back/text2.c | 2 +- util/ceg/ce_back/as_back/text4.c | 2 +- 15 files changed, 24 insertions(+), 24 deletions(-) diff --git a/util/ceg/ce_back/as_back/con1.c b/util/ceg/ce_back/as_back/con1.c index df74cef3d..4b8bfd5f0 100644 --- a/util/ceg/ce_back/as_back/con1.c +++ b/util/ceg/ce_back/as_back/con1.c @@ -1,7 +1,7 @@ #include "header.h" con1( w) -arith w; +ONE_BYTE w; { gen1( w); } diff --git a/util/ceg/ce_back/as_back/con2.c b/util/ceg/ce_back/as_back/con2.c index 258bdc40d..b7c93bddb 100644 --- a/util/ceg/ce_back/as_back/con2.c +++ b/util/ceg/ce_back/as_back/con2.c @@ -1,7 +1,7 @@ #include "header.h" con2( w) -arith w; +TWO_BYTES w; { gen2( w); } diff --git a/util/ceg/ce_back/as_back/con4.c b/util/ceg/ce_back/as_back/con4.c index 9b806b595..675823296 100644 --- a/util/ceg/ce_back/as_back/con4.c +++ b/util/ceg/ce_back/as_back/con4.c @@ -1,7 +1,7 @@ #include "header.h" con4( w) -arith w; +FOUR_BYTES w; { gen4( w); } diff --git a/util/ceg/ce_back/as_back/gen1.c b/util/ceg/ce_back/as_back/gen1.c index 83c77e52f..6655466e3 100644 --- a/util/ceg/ce_back/as_back/gen1.c +++ b/util/ceg/ce_back/as_back/gen1.c @@ -1,14 +1,14 @@ #include "header.h" gen1( w) -arith w; +ONE_BYTE w; { switch ( cur_seg) { - case SEGTXT : fprint( codefile, BYTE_FMT, (arith) w); + case SEGTXT : fprint( codefile, BYTE_FMT, (long) w); break; - case SEGCON : fprint( codefile, BYTE_FMT, (arith) w); + case SEGCON : fprint( codefile, BYTE_FMT, (long) w); break; - case SEGROM : fprint( codefile, BYTE_FMT, (arith) w); + case SEGROM : fprint( codefile, BYTE_FMT, (long) w); break; case SEGBSS : bss( (arith) 1); break; diff --git a/util/ceg/ce_back/as_back/gen2.c b/util/ceg/ce_back/as_back/gen2.c index 6af489e55..43ecd0236 100644 --- a/util/ceg/ce_back/as_back/gen2.c +++ b/util/ceg/ce_back/as_back/gen2.c @@ -1,14 +1,14 @@ #include "header.h" gen2( w) -arith w; +TWO_BYTES w; { switch ( cur_seg) { - case SEGTXT : fprint( codefile, WORD_FMT, (arith) w); + case SEGTXT : fprint( codefile, WORD_FMT, (long) w); break; - case SEGCON : fprint( codefile, WORD_FMT, (arith) w); + case SEGCON : fprint( codefile, WORD_FMT, (long) w); break; - case SEGROM : fprint( codefile, WORD_FMT, (arith) w); + case SEGROM : fprint( codefile, WORD_FMT, (long) w); break; case SEGBSS : bss( (arith) 2); break; diff --git a/util/ceg/ce_back/as_back/gen4.c b/util/ceg/ce_back/as_back/gen4.c index 3209f6584..80f231a59 100644 --- a/util/ceg/ce_back/as_back/gen4.c +++ b/util/ceg/ce_back/as_back/gen4.c @@ -1,14 +1,14 @@ #include "header.h" gen4( w) -arith w; +FOUR_BYTES w; { switch ( cur_seg) { - case SEGTXT : fprint( codefile, LONG_FMT, (arith) w); + case SEGTXT : fprint( codefile, LONG_FMT, (long) w); break; - case SEGCON : fprint( codefile, LONG_FMT, (arith) w); + case SEGCON : fprint( codefile, LONG_FMT, (long) w); break; - case SEGROM : fprint( codefile, LONG_FMT, (arith) w); + case SEGROM : fprint( codefile, LONG_FMT, (long) w); break; case SEGBSS : bss( (arith) 4); break; diff --git a/util/ceg/ce_back/as_back/reloc1.c b/util/ceg/ce_back/as_back/reloc1.c index 24557b8e9..a32fb61e0 100644 --- a/util/ceg/ce_back/as_back/reloc1.c +++ b/util/ceg/ce_back/as_back/reloc1.c @@ -5,5 +5,5 @@ char *s; arith o; int r; { - fprint( codefile, RELOC1_FMT, s, (arith) o); + fprint( codefile, RELOC1_FMT, s, (long) o); } diff --git a/util/ceg/ce_back/as_back/reloc2.c b/util/ceg/ce_back/as_back/reloc2.c index 85a4485a0..e07d35fec 100644 --- a/util/ceg/ce_back/as_back/reloc2.c +++ b/util/ceg/ce_back/as_back/reloc2.c @@ -5,5 +5,5 @@ char *s; arith o; int r; { - fprint( codefile, RELOC2_FMT, s, (arith) o); + fprint( codefile, RELOC2_FMT, s, (long) o); } diff --git a/util/ceg/ce_back/as_back/reloc4.c b/util/ceg/ce_back/as_back/reloc4.c index 773231d37..14d6ad8e2 100644 --- a/util/ceg/ce_back/as_back/reloc4.c +++ b/util/ceg/ce_back/as_back/reloc4.c @@ -5,5 +5,5 @@ char *s; arith o; int r; { - fprint( codefile, RELOC4_FMT, s, (arith) o); + fprint( codefile, RELOC4_FMT, s, (long) o); } diff --git a/util/ceg/ce_back/as_back/rom1.c b/util/ceg/ce_back/as_back/rom1.c index dec8207fb..41ece4a6c 100644 --- a/util/ceg/ce_back/as_back/rom1.c +++ b/util/ceg/ce_back/as_back/rom1.c @@ -1,7 +1,7 @@ #include "header.h" rom1( w) -arith w; +ONE_BYTE w; { gen1( w); } diff --git a/util/ceg/ce_back/as_back/rom2.c b/util/ceg/ce_back/as_back/rom2.c index f64118610..32e68f2cd 100644 --- a/util/ceg/ce_back/as_back/rom2.c +++ b/util/ceg/ce_back/as_back/rom2.c @@ -1,7 +1,7 @@ #include "header.h" rom2( w) -arith w; +TWO_BYTES w; { gen2( w); } diff --git a/util/ceg/ce_back/as_back/rom4.c b/util/ceg/ce_back/as_back/rom4.c index 89eca333a..5713c541b 100644 --- a/util/ceg/ce_back/as_back/rom4.c +++ b/util/ceg/ce_back/as_back/rom4.c @@ -1,7 +1,7 @@ #include "header.h" rom4( w) -arith w; +FOUR_BYTES w; { gen4( w); } diff --git a/util/ceg/ce_back/as_back/text1.c b/util/ceg/ce_back/as_back/text1.c index d95be856e..daf9f5759 100644 --- a/util/ceg/ce_back/as_back/text1.c +++ b/util/ceg/ce_back/as_back/text1.c @@ -1,7 +1,7 @@ #include "header.h" text1( w) -arith w; +ONE_BYTE w; { gen1( w); } diff --git a/util/ceg/ce_back/as_back/text2.c b/util/ceg/ce_back/as_back/text2.c index 6ec0d1c84..cc3f97945 100644 --- a/util/ceg/ce_back/as_back/text2.c +++ b/util/ceg/ce_back/as_back/text2.c @@ -1,7 +1,7 @@ #include "header.h" text2( w) -arith w; +TWO_BYTES w; { gen2( w); } diff --git a/util/ceg/ce_back/as_back/text4.c b/util/ceg/ce_back/as_back/text4.c index 9d033bdff..68bc2efc7 100644 --- a/util/ceg/ce_back/as_back/text4.c +++ b/util/ceg/ce_back/as_back/text4.c @@ -1,7 +1,7 @@ #include "header.h" text4( w) -arith w; +FOUR_BYTES w; { gen4( w); }