summaryrefslogtreecommitdiff
path: root/usr.bin/m4/eval.c
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2001-09-27 22:38:29 +0000
committerMarc Espie <espie@cvs.openbsd.org>2001-09-27 22:38:29 +0000
commit51e05d60d887763b84ff1c7d106b8af56fa984dc (patch)
tree78993e944990d13d5b280dc5c42414f6c223af0a /usr.bin/m4/eval.c
parent197ca322b4320352dd5bf681f7e2e7f4ef8e3489 (diff)
pass all properties of builtins when defn...
Diffstat (limited to 'usr.bin/m4/eval.c')
-rw-r--r--usr.bin/m4/eval.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/m4/eval.c b/usr.bin/m4/eval.c
index 36f70ee4d6a..f9ab998b9be 100644
--- a/usr.bin/m4/eval.c
+++ b/usr.bin/m4/eval.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: eval.c,v 1.37 2001/09/27 11:40:33 espie Exp $ */
+/* $OpenBSD: eval.c,v 1.38 2001/09/27 22:38:28 espie Exp $ */
/* $NetBSD: eval.c,v 1.7 1996/11/10 21:21:29 pk Exp $ */
/*
@@ -41,7 +41,7 @@
#if 0
static char sccsid[] = "@(#)eval.c 8.2 (Berkeley) 4/27/95";
#else
-static char rcsid[] = "$OpenBSD: eval.c,v 1.37 2001/09/27 11:40:33 espie Exp $";
+static char rcsid[] = "$OpenBSD: eval.c,v 1.38 2001/09/27 22:38:28 espie Exp $";
#endif
#endif /* not lint */
@@ -574,7 +574,9 @@ dodefine(name, defn)
if (strncmp(defn, BUILTIN_MARKER, sizeof(BUILTIN_MARKER)-1) == 0) {
n = builtin_type(defn+sizeof(BUILTIN_MARKER)-1);
if (n != -1) {
- p->type = n;
+ p->type = n & TYPEMASK;
+ if ((n & NOARGS) == 0)
+ p->type |= NEEDARGS;
p->defn = null;
return;
}