SCCS-vsn: usr.bin/pascal/src/proc.c 1.7
SCCS-vsn: usr.bin/pascal/src/pcproc.c 1.4
/* Copyright (c) 1979 Regents of the University of California */
/* Copyright (c) 1979 Regents of the University of California */
-static char sccsid[] = "@(#)pcproc.c 1.3 %G%";
+static char sccsid[] = "@(#)pcproc.c 1.4 %G%";
#include "whoami.h"
#ifdef PC
#include "whoami.h"
#ifdef PC
error("Negative widths are not allowed");
continue;
}
error("Negative widths are not allowed");
continue;
}
+ if ( opt('s') &&
+ ((fmtspec & CONPREC) && prec == 0 ||
+ (fmtspec & CONWIDTH) && field == 0)) {
+ standard();
+ error("Zero widths are non-standard");
+ }
}
if (filetype != nl+T1CHAR) {
if (fmt == 'O' || fmt == 'X') {
}
if (filetype != nl+T1CHAR) {
if (fmt == 'O' || fmt == 'X') {
/* Copyright (c) 1979 Regents of the University of California */
/* Copyright (c) 1979 Regents of the University of California */
-static char sccsid[] = "@(#)proc.c 1.6 %G%";
+static char sccsid[] = "@(#)proc.c 1.7 %G%";
#include "whoami.h"
#ifdef OBJ
#include "whoami.h"
#ifdef OBJ
error("Negative widths are not allowed");
continue;
}
error("Negative widths are not allowed");
continue;
}
+ if ( opt('s') &&
+ ((fmtspec & CONPREC) && prec == 0 ||
+ (fmtspec & CONWIDTH) && field == 0)) {
+ standard();
+ error("Zero widths are non-standard");
+ }
}
if (filetype != nl+T1CHAR) {
if (fmt == 'O' || fmt == 'X') {
}
if (filetype != nl+T1CHAR) {
if (fmt == 'O' || fmt == 'X') {