diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2001-09-18 13:52:59 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2001-09-18 13:52:59 +0000 |
commit | 7ba378d747ac554e73941549d1771e3956c7ccb6 (patch) | |
tree | 4125663a837fd2c3db0e5a637c59c655a57f31fe /usr.bin/m4/gnum4.c | |
parent | b8a61704827463b30606d30c7d89c7ae910a770a (diff) |
One single point for all macros/builtin expansion.
Diffstat (limited to 'usr.bin/m4/gnum4.c')
-rw-r--r-- | usr.bin/m4/gnum4.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/usr.bin/m4/gnum4.c b/usr.bin/m4/gnum4.c index 1deb32f1b68..b4c94c6e8e5 100644 --- a/usr.bin/m4/gnum4.c +++ b/usr.bin/m4/gnum4.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gnum4.c,v 1.11 2001/09/18 13:42:37 espie Exp $ */ +/* $OpenBSD: gnum4.c,v 1.12 2001/09/18 13:52:58 espie Exp $ */ /* * Copyright (c) 1999 Marc Espie @@ -173,10 +173,7 @@ doindir(argv, argc) if (p == NULL) errx(1, "undefined macro %s", argv[2]); argv[1] = p->defn; - if (p->type == MACRTYPE) - expand(argv+1, argc-1); - else - eval(argv+1, argc-1, p->type); + eval(argv+1, argc-1, p->type); } void |