summaryrefslogtreecommitdiff
path: root/src/symlist.h
diff options
context:
space:
mode:
authorAlex Rozenman <rozenman@gmail.com>2009-07-04 17:52:38 +0300
committerAlex Rozenman <rozenman@gmail.com>2009-07-04 21:26:20 +0300
commit872b52bc24b5590ac8bdec7db882cdbefc0ec3ff (patch)
treed832a13fdc68fe14d0d35a6d5b8b18d1827dd71a /src/symlist.h
parent83ea2423f54b6e1d4b69c2972ad7fcdeb7dbb0b2 (diff)
downloadbison-872b52bc24b5590ac8bdec7db882cdbefc0ec3ff.tar.gz
Style changes and factoring.
* src/named-ref.h: Add comments. * src/parse-gram.y: Readability and style changes. * src/reader.c: Factoring: assign_named_ref function. * src/scan-code.l: Factoring and style changes. Rename parse_named_ref to parse_ref. Use "c-ctype.h" from gnulib. Use "unsigned" type for variant index. Improve readablity. * src/scan-gram.l: Change error messages and add comments. * src/symlist.h: symbol_list_null: New function decl. * src/symlist.c: symbol_list_null: Implement here. * tests/named-refs.at: Adjust for new error messages.
Diffstat (limited to 'src/symlist.h')
-rw-r--r--src/symlist.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/symlist.h b/src/symlist.h
index df3a0421..e02c9e4f 100644
--- a/src/symlist.h
+++ b/src/symlist.h
@@ -114,6 +114,9 @@ symbol_list *symbol_list_n_get (symbol_list *l, int n);
symbol N in rule RULE. */
uniqstr symbol_list_n_type_name_get (symbol_list *l, location loc, int n);
+/* Check whether the node is a border element of a rule. */
+bool symbol_list_null (symbol_list *node);
+
/** Set the \c \%destructor for \c node as \c code at \c loc. */
void symbol_list_destructor_set (symbol_list *node, char const *code,
location loc);