Implement formal functions and procedures
[unix-history] / usr / src / usr.bin / pascal / src / pcfunc.c
index c6423a9..3f58732 100644 (file)
@@ -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[] = "@(#)pcfunc.c 1.1 %G%";
+static char sccsid[] = "@(#)pcfunc.c 1.2 %G%";
 
 #include "whoami.h"
 #ifdef PC
 
 #include "whoami.h"
 #ifdef PC
@@ -45,7 +45,7 @@ pcfunccod( 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);