386BSD 0.0 development
authorWilliam F. Jolitz <wjolitz@soda.berkeley.edu>
Fri, 16 Feb 1990 23:15:05 +0000 (15:15 -0800)
committerWilliam F. Jolitz <wjolitz@soda.berkeley.edu>
Fri, 16 Feb 1990 23:15:05 +0000 (15:15 -0800)
Work on file usr/src/usr.bin/g++/cc1plus/stack.h

Co-Authored-By: Lynne Greer Jolitz <ljolitz@cardio.ucsf.edu>
Synthesized-from: 386BSD-0.0/src

usr/src/usr.bin/g++/cc1plus/stack.h [new file with mode: 0644]

diff --git a/usr/src/usr.bin/g++/cc1plus/stack.h b/usr/src/usr.bin/g++/cc1plus/stack.h
new file mode 100644 (file)
index 0000000..8f3401d
--- /dev/null
@@ -0,0 +1,21 @@
+/* Stack of data placed on obstacks.  */
+   
+struct stack_level
+{
+  /* Pointer back to previous such level.  */
+  struct stack_level *prev;
+
+  /* Point to obstack we should return to.  */
+  struct obstack *obstack;
+
+  /* First place we start putting data.  */
+  tree *first;
+
+  /* Number of entries we can have from `first'.
+     Right now we are dumb: if we overflow, abort.  */
+  int limit;
+};
+
+struct stack_level *push_stack_level ();
+struct stack_level *pop_stack_level ();
+