SCCS-vsn: usr.bin/pascal/px/int.c 1.6
/* Copyright (c) 1979 Regents of the University of California */
/* Copyright (c) 1979 Regents of the University of California */
-static char sccsid[] = "@(#)int.c 1.5 %G%";
+static char sccsid[] = "@(#)int.c 1.6 %G%";
/*
* px - interpreter for Berkeley Pascal
/*
* px - interpreter for Berkeley Pascal
{
register char *objprog, *file;
{
register char *objprog, *file;
register long bytesread, bytestoread, block;
register FILE *prog;
struct pxhdr pxhd;
register long bytesread, bytestoread, block;
register FILE *prog;
struct pxhdr pxhd;
if (!strcmp(_argv[0], "pdx")) {
_mode = PDX;
_argv += 2; _argc -= 2;
if (!strcmp(_argv[0], "pdx")) {
_mode = PDX;
_argv += 2; _argc -= 2;
} else if (!strcmp(_argv[0], "pix")) {
_mode = PIX;
_argv++; _argc--;
} else if (!strcmp(_argv[0], "pix")) {
_mode = PIX;
_argv++; _argc--;
} else if (!strcmp(_argv[0], "pipe")) {
_mode = PIPE;
file = "PIPE";
_argv++; _argc--;
} else if (!strcmp(_argv[0], "pipe")) {
_mode = PIPE;
file = "PIPE";
_argv++; _argc--;
} else {
_mode = PX;
if (_argc <= 1)
file = "obj";
} else {
_mode = PX;
if (_argc <= 1)
file = "obj";
}
}
if (pxhd.magicnum != MAGICNUM) {
}
}
if (pxhd.magicnum != MAGICNUM) {
- fprintf(stderr,"%s is not a Pascal interpreter file\n",file);
+ fprintf(stderr,"%s is not a Pascal interpreter file\n",name);
exit(1);
}
if (pxhd.maketime < createtime) {
exit(1);
}
if (pxhd.maketime < createtime) {
- fprintf(stderr,"%s is obsolete and must be recompiled\n",file);
+ fprintf(stderr,"%s is obsolete and must be recompiled\n",name);