diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2012-01-03 13:31:53 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2012-01-03 13:31:53 +0200 |
commit | b74252278ec81bea7b4a295d1cd49134ef03ee7c (patch) | |
tree | fd672a02036d721c30df79c67e3e78944c3867df /src/grecs.h | |
parent | 1d9ad0a97161772e423160d13209676778d6fca1 (diff) | |
download | grecs-b74252278ec81bea7b4a295d1cd49134ef03ee7c.tar.gz grecs-b74252278ec81bea7b4a295d1cd49134ef03ee7c.tar.bz2 |
Implement "inactive" statements.
* README.submodule: Minor change.
* src/format.c (grecs_print_simple_statement): Mark inactive
statements as such.
(grecs_print_statement_array): Fix type comparison. Return immediately
if given a NULL argument.
* src/grecs.h (GRECS_INAC): New flag.
* src/tree.c (find_keyword): Avoid coredump if cursect->kwd is NULL.
(reduceproc): Skip inactive statements.
Diffstat (limited to 'src/grecs.h')
-rw-r--r-- | src/grecs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/grecs.h b/src/grecs.h index a9eecf7..ca98329 100644 --- a/src/grecs.h +++ b/src/grecs.h @@ -95,6 +95,7 @@ enum grecs_data_type { #define GRECS_AGGR 0x1000 #define GRECS_MULT 0x2000 +#define GRECS_INAC 0x4000 #define GRECS_LIST 0x8000 #define GRECS_TYPE_MASK 0x00ff #define GRECS_TYPE(c) ((c) & GRECS_TYPE_MASK) |