From 022cb596be496daef0c71332a70f4f64cb7bee15 Mon Sep 17 00:00:00 2001 From: keie Date: Fri, 12 Apr 1985 15:06:05 +0000 Subject: [PATCH] *** empty log message *** --- util/amisc/Makefile | 17 ++++++----------- util/amisc/anm.c | 11 +++++++++++ util/amisc/asize.c | 11 +++++++++++ util/amisc/astrip.c | 19 +++++++++++++++++++ 4 files changed, 47 insertions(+), 11 deletions(-) diff --git a/util/amisc/Makefile b/util/amisc/Makefile index c0fac42a7..3cf60e34b 100644 --- a/util/amisc/Makefile +++ b/util/amisc/Makefile @@ -1,24 +1,19 @@ # @(#)Makefile 1.1 EM = ../.. h = $(EM)/h -CFLAGS = -O -I$h +CFLAGS = -n -O -I$h ALL = anm asize astrip OFILES = anm.o asize.o astrip.o CFILES = anm.c asize.c astrip.c all: $(ALL) -anm: anm.c - $(CC) $(CFLAGS) anm.c -o anm +cp cmp: all + for i in $(ALL); do $@ $$i $$ROOT/usr/bin/$$i; done -asize: asize.c - $(CC) $(CFLAGS) asize.c -o asize - -astrip: astrip.c - $(CC) $(CFLAGS) astrip.c -o astrip - -clean: - rm -f $(ALL) $(OFILES) +clean: ; rm -f $(ALL) $(OFILES) +get: ; getall +unget: ; ungetall print: $(CFILES) pr -n Makefile $(CFILES) | lpr diff --git a/util/amisc/anm.c b/util/amisc/anm.c index 337d6be8e..da5dfc4f3 100644 --- a/util/amisc/anm.c +++ b/util/amisc/anm.c @@ -1,4 +1,7 @@ +#define DUK /* Modifications by Duk Bekema. */ + /* @(#)anm.c 1.4 */ +/* $Header$ */ /* ** print symbol tables for ** ACK object files @@ -279,16 +282,24 @@ register FILE *f; case '2': i = getc(f); i |= (getc(f) << 8); +#ifndef DUK + *((short *)p)++ = i; +#else DUK *((short *)p) = i; p += sizeof(short); +#endif DUK continue; case '4': l = (long)getc(f); l |= ((long)getc(f) << 8); l |= ((long)getc(f) << 16); l |= ((long)getc(f) << 24); +#ifndef DUK + *((long *)p)++ = l; +#else DUK *((long *)p) = l; p += sizeof(long); +#endif DUK continue; default: case '\0': diff --git a/util/amisc/asize.c b/util/amisc/asize.c index 72cc5a05a..5d2699f3d 100644 --- a/util/amisc/asize.c +++ b/util/amisc/asize.c @@ -1,4 +1,7 @@ +#define DUK /* Modifications by Duk Bekema. */ + /* @(#)asize.c 1.2 */ +/* $Header$ */ #define ushort unsigned short #include @@ -75,16 +78,24 @@ register FILE *f; case '2': i = getc(f); i |= (getc(f) << 8); +#ifndef DUK + *((short *)p)++ = i; +#else DUK *((short *)p) = i; p += sizeof(short); +#endif DUK continue; case '4': l = (long)getc(f); l |= (long)(getc(f) << 8); l |= ((long)getc(f) << 16); l |= ((long)getc(f) << 24); +#ifndef DUK + *((long *)p)++ = l; +#else DUK *((long *)p) = l; p += sizeof(long); +#endif DUK continue; default: case '\0': diff --git a/util/amisc/astrip.c b/util/amisc/astrip.c index 798f1872a..f2ebb915b 100644 --- a/util/amisc/astrip.c +++ b/util/amisc/astrip.c @@ -1,4 +1,7 @@ +#define DUK /* Modifications by Duk Bekema. */ + /* @(#)astrip.c 1.1 */ +/* $Header$ */ #define ushort unsigned short #include "out.h" @@ -138,16 +141,24 @@ register FILE *f; case '2': i = getc(f); i |= (getc(f) << 8); +#ifndef DUK + *((short *)p)++ = i; +#else DUK *((short *)p) = i; p += sizeof(short); +#endif DUK continue; case '4': l = (long)getc(f); l |= (long)(getc(f) << 8); l |= ((long)getc(f) << 16); l |= ((long)getc(f) << 24); +#ifndef DUK + *((long *)p)++ = l; +#else DUK *((long *)p) = l; p += sizeof(long); +#endif DUK continue; default: case '\0': @@ -173,14 +184,22 @@ char *fnam; i = *p++; putc(i,f); break; case 2: +#ifndef DUK + i = *((short *)p)++; +#else DUK i = *((short *)p); p += sizeof(short); +#endif DUK putc(i,f); i>>=8; putc(i,f); break; case 4: +#ifndef DUK + l = *((long *)p)++; +#else DUK l = *((long *)p); p += sizeof(long); +#endif DUK putc(l,f); l >>=8; putc(l,f); l >>=8; putc(l,f); -- 2.34.1