projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make error message global var, so routine can be inline expanded
[unix-history]
/
usr
/
src
/
usr.bin
/
pascal
/
libpc
/
NIL.c
diff --git
a/usr/src/usr.bin/pascal/libpc/NIL.c
b/usr/src/usr.bin/pascal/libpc/NIL.c
index
7c2c584
..
dfbf6f9
100644
(file)
--- a/
usr/src/usr.bin/pascal/libpc/NIL.c
+++ b/
usr/src/usr.bin/pascal/libpc/NIL.c
@@
-1,16
+1,17
@@
/* Copyright (c) 1979 Regents of the University of California */
/* Copyright (c) 1979 Regents of the University of California */
-static char sccsid[] = "@(#)NIL.c 1.
2
%G%";
+static char sccsid[] = "@(#)NIL.c 1.
3
%G%";
#include "h00vars.h"
#include "h00vars.h"
+char ENIL[] = "Pointer value out of legal range\n";
+
char *
NIL(ptr)
char *
NIL(ptr)
-
char *ptr; /* pointer to struct */
{
if (ptr > _maxptr || ptr < _minptr) {
char *ptr; /* pointer to struct */
{
if (ptr > _maxptr || ptr < _minptr) {
- ERROR(
"Pointer value out of legal range\n"
, 0);
+ ERROR(
ENIL
, 0);
return;
}
return ptr;
return;
}
return ptr;