date and time created 83/02/11 15:44:38 by rrh
authorRobert R. Henry <rrh@ucbvax.Berkeley.EDU>
Sat, 12 Feb 1983 07:44:38 +0000 (23:44 -0800)
committerRobert R. Henry <rrh@ucbvax.Berkeley.EDU>
Sat, 12 Feb 1983 07:44:38 +0000 (23:44 -0800)
SCCS-vsn: usr.bin/struct/struct/3.def.h 4.1

usr/src/usr.bin/struct/struct/3.def.h [new file with mode: 0644]

diff --git a/usr/src/usr.bin/struct/struct/3.def.h b/usr/src/usr.bin/struct/struct/3.def.h
new file mode 100644 (file)
index 0000000..4698dba
--- /dev/null
@@ -0,0 +1,9 @@
+/*
+ *     @(#)3.def.h     4.1     (Berkeley)      83/02/11
+ */
+#define RECURSE(p,v,r) { for (r = 0; r < CHILDNUM(v); ++r) if (DEFINED(LCHILD(v,r))) p(LCHILD(v,r)); if (DEFINED(RSIB(v))) p(RSIB(v)); }
+
+#define IFTHEN(v)              ( NTYPE(v) == IFVX && !DEFINED(LCHILD(v,ELSE)))
+
+#define BRK(v) FATH(v)         /* lexical successor of v, for ITERVX only */
+#define LABEL(v)       REACH(v)