Made to work on system V and SUN

This commit is contained in:
ceriel 1987-03-31 08:05:50 +00:00
parent f18ec81394
commit 23aff10b83
2 changed files with 14 additions and 34 deletions

View file

@ -1,17 +1,7 @@
/* $Header$ */
/* /*
* (c) copyright 1983 by the Vrije Universiteit, 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".
* 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
* *
*/ */
@ -20,7 +10,7 @@
/* Print a readable version of the data in the post mortem dump */ /* Print a readable version of the data in the post mortem dump */
/* dmpc [-s] [-dn,m] [file] */ /* dmpc [-s] [-dn,m] [file] */
#include "/usr/em/h/local.h" #include <local.h>
#include <stdio.h> #include <stdio.h>
#include <ctype.h> #include <ctype.h>
@ -109,7 +99,7 @@ main(argc,argv) char **argv;
printf(" "); printf(" ");
} }
if ( line ) { if ( line ) {
printf("line %D",line) ; printf("line %ld",line) ;
} }
if ( fileaddr || line ) printf(", "); if ( fileaddr || line ) printf(", ");
fseek(fcore,512L,0); fseek(fcore,512L,0);
@ -128,9 +118,9 @@ main(argc,argv) char **argv;
if ( tsize ) printn("Text size",tsize) ; if ( tsize ) printn("Text size",tsize) ;
if ( dsize ) printn("Data size",dsize) ; if ( dsize ) printn("Data size",dsize) ;
} }
if ( dflag==0 ) return 0; if ( dflag==0 ) exit(0);
fatal("d-flag not implemeted (yet)"); fatal("d-flag not implemeted (yet)");
return 1 ; exit(1) ;
} }
scanargs(argc,argv) char **argv ; { scanargs(argc,argv) char **argv ; {

View file

@ -1,26 +1,16 @@
/* $Header$ */
/* /*
* (c) copyright 1983 by the Vrije Universiteit, 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".
* 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
* *
*/ */
/* Author: E.G. Keizer */ /* Author: E.G. Keizer */
#include <stdio.h> #include <stdio.h>
#include "/usr/em/util/ass/ip_spec.h" #include <util/ass/ip_spec.h>
#include "/usr/em/h/em_spec.h" #include <h/em_spec.h>
#include "/usr/em/h/em_flag.h" #include <h/em_flag.h>
/* This program reads the human readable interpreter specification /* This program reads the human readable interpreter specification
and produces a efficient machine representation that can be and produces a efficient machine representation that can be
@ -57,7 +47,7 @@ main(argc,argv) char **argv ; {
atend=0 ; atend=0 ;
readin(); readin();
atend=1 ; atend=1 ;
return nerror ; exit(nerror) ;
} }
readin() { readin() {