From: ceriel Date: Tue, 31 Mar 1987 08:05:50 +0000 (+0000) Subject: Made to work on system V and SUN X-Git-Tag: release-5-5~4273 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=23aff10b83a0f88715343e4067cae1eefa82c8cd;p=ack.git Made to work on system V and SUN --- diff --git a/doc/em/int/emdmp.c b/doc/em/int/emdmp.c index 605886681..b6e4b5e63 100644 --- a/doc/em/int/emdmp.c +++ b/doc/em/int/emdmp.c @@ -1,17 +1,7 @@ +/* $Header$ */ /* - * (c) copyright 1983 by the Vrije Universiteit, Amsterdam, The Netherlands. - * - * This product is part of the Amsterdam Compiler Kit. - * - * Permission to use, sell, duplicate or disclose this software must be - * obtained in writing. Requests for such permissions may be sent to - * - * Dr. Andrew S. Tanenbaum - * Wiskundig Seminarium - * Vrije Universiteit - * Postbox 7161 - * 1007 MC Amsterdam - * The Netherlands + * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands. + * See the copyright notice in the ACK home directory, in the file "Copyright". * */ @@ -20,7 +10,7 @@ /* Print a readable version of the data in the post mortem dump */ /* dmpc [-s] [-dn,m] [file] */ -#include "/usr/em/h/local.h" +#include #include #include @@ -109,7 +99,7 @@ main(argc,argv) char **argv; printf(" "); } if ( line ) { - printf("line %D",line) ; + printf("line %ld",line) ; } if ( fileaddr || line ) printf(", "); fseek(fcore,512L,0); @@ -128,9 +118,9 @@ main(argc,argv) char **argv; if ( tsize ) printn("Text size",tsize) ; if ( dsize ) printn("Data size",dsize) ; } - if ( dflag==0 ) return 0; + if ( dflag==0 ) exit(0); fatal("d-flag not implemeted (yet)"); - return 1 ; + exit(1) ; } scanargs(argc,argv) char **argv ; { diff --git a/doc/em/int/mktables.c b/doc/em/int/mktables.c index 70f4365fc..62b2a6136 100644 --- a/doc/em/int/mktables.c +++ b/doc/em/int/mktables.c @@ -1,26 +1,16 @@ +/* $Header$ */ /* - * (c) copyright 1983 by the Vrije Universiteit, Amsterdam, The Netherlands. - * - * This product is part of the Amsterdam Compiler Kit. - * - * Permission to use, sell, duplicate or disclose this software must be - * obtained in writing. Requests for such permissions may be sent to - * - * Dr. Andrew S. Tanenbaum - * Wiskundig Seminarium - * Vrije Universiteit - * Postbox 7161 - * 1007 MC Amsterdam - * The Netherlands + * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands. + * See the copyright notice in the ACK home directory, in the file "Copyright". * */ /* Author: E.G. Keizer */ #include -#include "/usr/em/util/ass/ip_spec.h" -#include "/usr/em/h/em_spec.h" -#include "/usr/em/h/em_flag.h" +#include +#include +#include /* This program reads the human readable interpreter specification and produces a efficient machine representation that can be @@ -57,7 +47,7 @@ main(argc,argv) char **argv ; { atend=0 ; readin(); atend=1 ; - return nerror ; + exit(nerror) ; } readin() {