SCCS-vsn: usr.bin/pascal/src/fdec.c 1.7
SCCS-vsn: usr.bin/pascal/src/pcproc.c 1.3
SCCS-vsn: usr.bin/pascal/src/proc.c 1.3
SCCS-vsn: usr.bin/pascal/src/rval.c 1.5
SCCS-vsn: usr.bin/pascal/src/proc.c 1.3
SCCS-vsn: usr.bin/pascal/src/pcproc.c 1.3
/* Copyright (c) 1979 Regents of the University of California */
/* Copyright (c) 1979 Regents of the University of California */
-static char sccsid[] = "@(#)fdec.c 1.6 %G%";
+static char sccsid[] = "@(#)fdec.c 1.7 %G%";
#include "whoami.h"
#include "0.h"
#include "whoami.h"
#include "0.h"
case TREC:
case TSET:
case TSTR:
case TREC:
case TSET:
case TSTR:
if (opt('s')) {
standard();
if (opt('s')) {
standard();
- error("Functions should not return %ss", clnames[o]);
+ error("Functions should not return %ss", clnames[o]);
}
# ifdef PC
enclosing[ cbn ] = r[2];
}
# ifdef PC
enclosing[ cbn ] = r[2];
/* Copyright (c) 1979 Regents of the University of California */
/* Copyright (c) 1979 Regents of the University of California */
-static char sccsid[] = "@(#)pcproc.c 1.2 %G%";
+static char sccsid[] = "@(#)pcproc.c 1.3 %G%";
#include "whoami.h"
#ifdef PC
#include "whoami.h"
#ifdef PC
fmt = 'c';
break;
case TSCAL:
fmt = 'c';
break;
case TSCAL:
if (opt('s')) {
standard();
if (opt('s')) {
standard();
- error("Writing scalars to text files is non-standard");
+ error("Writing scalars to text files is non-standard");
case TBOOL:
fmt = 's';
break;
case TBOOL:
fmt = 's';
break;
putleaf( P2ICON , 0 , 0 , P2PTR | P2CHAR
, format );
putop( P2LISTOP , P2INT );
putleaf( P2ICON , 0 , 0 , P2PTR | P2CHAR
, format );
putop( P2LISTOP , P2INT );
if (opt('s')) {
standard();
if (opt('s')) {
standard();
- error("Reading of enumerated types is non-standard");
+ error("Reading scalars from text files is non-standard");
}
putop( P2CALL , readtype );
if ( isa( ap , "bcsi" ) ) {
}
putop( P2CALL , readtype );
if ( isa( ap , "bcsi" ) ) {
/* Copyright (c) 1979 Regents of the University of California */
/* Copyright (c) 1979 Regents of the University of California */
-static char sccsid[] = "@(#)proc.c 1.2 %G%";
+static char sccsid[] = "@(#)proc.c 1.3 %G%";
#include "whoami.h"
#ifdef OBJ
#include "whoami.h"
#ifdef OBJ
fmt = 'c';
break;
case TSCAL:
fmt = 'c';
break;
case TSCAL:
if (opt('s')) {
standard();
if (opt('s')) {
standard();
- error("Writing scalars to text files is non-standard");
+ error("Writing scalars to text files is non-standard");
case TBOOL:
stkrval(alv, NIL , RREQ );
put(2, O_NAM, listnames(ap));
case TBOOL:
stkrval(alv, NIL , RREQ );
put(2, O_NAM, listnames(ap));
put(1, op);
else {
put(2, op, listnames(ap));
put(1, op);
else {
put(2, op, listnames(ap));
if (opt('s')) {
standard();
if (opt('s')) {
standard();
- error("Reading of enumerated types is non-standard");
+ error("Reading scalars from text files is non-standard");
}
/*
* Data read is on the stack.
}
/*
* Data read is on the stack.
/* Copyright (c) 1979 Regents of the University of California */
/* Copyright (c) 1979 Regents of the University of California */
-static char sccsid[] = "@(#)rval.c 1.4 %G%";
+static char sccsid[] = "@(#)rval.c 1.5 %G%";
#include "whoami.h"
#include "0.h"
#include "whoami.h"
#include "0.h"
+ /* line number of the last record comparison warning */
+short reccompline = 0;
+
#ifdef PC
char *relts[] = {
"_RELEQ" , "_RELNE" ,
#ifdef PC
char *relts[] = {
"_RELEQ" , "_RELNE" ,
- } else {
- contype = p;
- }
/*
* put out the width of the comparison.
*/
/*
* put out the width of the comparison.
*/
- if ( opt( 's' ) ) {
- standard();
+ if ( line != reccompline ) {
+ reccompline = line;
+ warning();
+ if ( opt( 's' ) ) {
+ standard();
+ }
error("record comparison is non-standard");
}
break;
error("record comparison is non-standard");
}
break;