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
Implement formal functions and procedures
[unix-history]
/
usr
/
src
/
usr.bin
/
pascal
/
src
/
func.c
diff --git
a/usr/src/usr.bin/pascal/src/func.c
b/usr/src/usr.bin/pascal/src/func.c
index
13db1a0
..
4366e56
100644
(file)
--- a/
usr/src/usr.bin/pascal/src/func.c
+++ b/
usr/src/usr.bin/pascal/src/func.c
@@
-1,6
+1,6
@@
/* Copyright (c) 1979 Regents of the University of California */
/* Copyright (c) 1979 Regents of the University of California */
-static char sccsid[] = "@(#)func.c 1.
1
%G%";
+static char sccsid[] = "@(#)func.c 1.
2
%G%";
#include "whoami.h"
#ifdef OBJ
#include "whoami.h"
#ifdef OBJ
@@
-39,7
+39,7
@@
funccod(r)
rvlist(r[3]);
return (NIL);
}
rvlist(r[3]);
return (NIL);
}
- if (p->class != FUNC) {
+ if (p->class != FUNC
&& p->class != FFUNC
) {
error("%s is not a function", p->symbol);
rvlist(r[3]);
return (NIL);
error("%s is not a function", p->symbol);
rvlist(r[3]);
return (NIL);