diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2003-06-30 21:47:22 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2003-06-30 21:47:22 +0000 |
commit | 06c9ed6564f8bbc0056658a983d379052179aa86 (patch) | |
tree | e2c1a9ac42503c1580f5acf99ef39fea3d6c8df4 /usr.bin/m4/mdef.h | |
parent | 6947789365296ced45fe71914dfebf93e2dd8934 (diff) |
Make the trace status of a macro an actual argument that gets pushed
in the frame for the macro expansion.
(This will allow one single lookup to grab the macro definition and
the trace status)
okay millert@
Diffstat (limited to 'usr.bin/m4/mdef.h')
-rw-r--r-- | usr.bin/m4/mdef.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/usr.bin/m4/mdef.h b/usr.bin/m4/mdef.h index 5e3ca2d33ee..8ba892dc3e4 100644 --- a/usr.bin/m4/mdef.h +++ b/usr.bin/m4/mdef.h @@ -1,4 +1,4 @@ -/* $OpenBSD: mdef.h,v 1.25 2003/06/30 21:42:50 espie Exp $ */ +/* $OpenBSD: mdef.h,v 1.26 2003/06/30 21:47:21 espie Exp $ */ /* $NetBSD: mdef.h,v 1.7 1996/01/13 23:25:27 pk Exp $ */ /* @@ -217,7 +217,8 @@ struct input_file { * */ #define PARLEV (mstack[fp].sfra) -#define CALTYP (mstack[fp-1].sfra) +#define CALTYP (mstack[fp-2].sfra) +#define TRACESTATUS (mstack[fp-1].sfra) #define PREVEP (mstack[fp+3].sstr) -#define PREVSP (fp-3) -#define PREVFP (mstack[fp-2].sfra) +#define PREVSP (fp-4) +#define PREVFP (mstack[fp-3].sfra) |