aboutsummaryrefslogtreecommitdiffstats
path: root/parser.h
diff options
context:
space:
mode:
authorJari Aalto <jari.aalto@cante.net>1996-12-23 17:02:34 +0000
committerJari Aalto <jari.aalto@cante.net>2009-09-12 16:46:49 +0000
commitccc6cda312fea9f0468ee65b8f368e9653e1380b (patch)
treeb059878adcfd876c4acb8030deda1eeb918c7e75 /parser.h
parent726f63884db0132f01745f1fb4465e6621088ccf (diff)
downloadandroid_external_bash-ccc6cda312fea9f0468ee65b8f368e9653e1380b.tar.gz
android_external_bash-ccc6cda312fea9f0468ee65b8f368e9653e1380b.tar.bz2
android_external_bash-ccc6cda312fea9f0468ee65b8f368e9653e1380b.zip
Imported from ../bash-2.0.tar.gz.
Diffstat (limited to 'parser.h')
-rw-r--r--parser.h20
1 files changed, 17 insertions, 3 deletions
diff --git a/parser.h b/parser.h
index 247d78e..c264481 100644
--- a/parser.h
+++ b/parser.h
@@ -1,8 +1,22 @@
/* parser.h -- Everything you wanted to know about the parser, but were
afraid to ask. */
+#if !defined (_PARSER_H_)
+# define _PARSER_H_
-#if !defined (_PARSER_H)
-# define _PARSER_H
# include "command.h"
# include "input.h"
-#endif /* _PARSER_H */
+
+/* Definition of the delimiter stack. Needed by parse.y and bashhist.c. */
+struct dstack {
+/* DELIMITERS is a stack of the nested delimiters that we have
+ encountered so far. */
+ char *delimiters;
+
+/* Offset into the stack of delimiters. */
+ int delimiter_depth;
+
+/* How many slots are allocated to DELIMITERS. */
+ int delimiter_space;
+};
+
+#endif /* _PARSER_H_ */