diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-06-27 10:52:03 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-06-27 10:52:03 +0300 |
commit | 5a37057b0ca1b7314f7f338134efc5100dc9223f (patch) | |
tree | 5cc64a0724ab2b82ec80b26567a5444eb4adcd88 /src/parser.c | |
parent | 896d1c311129610bffbcc0c596926d8a1d6f1cc5 (diff) | |
download | grecs-5a37057b0ca1b7314f7f338134efc5100dc9223f.tar.gz grecs-5a37057b0ca1b7314f7f338134efc5100dc9223f.tar.bz2 |
Adjust string locations only if requested by the caller.
* src/grecs.h (grecs_adjust_string_locations): New extern.
* src/parser.c (grecs_adjust_string_locations): New variable.
* src/grecs-lex.l: Adjust string locations only if
grecs_adjust_string_locations is set.
Diffstat (limited to 'src/parser.c')
-rw-r--r-- | src/parser.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/parser.c b/src/parser.c index 4e315e5..d3ee19a 100644 --- a/src/parser.c +++ b/src/parser.c @@ -26,6 +26,7 @@ int grecs_error_count; int grecs_default_port = 0; int grecs_trace_flags = 0; +int grecs_adjust_string_locations; #ifndef GRECS_DEFAULT_PARSER # define GRECS_DEFAULT_PARSER grecs_grecs_parser |