From 5a37057b0ca1b7314f7f338134efc5100dc9223f Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Mon, 27 Jun 2011 10:52:03 +0300 Subject: 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. --- src/parser.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/parser.c') 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 -- cgit v1.2.1