From aa31497d9f0a3e96801d3752dd2d8f4ea20a2f4c Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Mon, 16 May 2011 12:18:04 +0300 Subject: Implement parser for git-style config files. * am/grecs.m4: New option: parser-git * doc/GRECS_SETUP.3: Document new options. * src/git-parser.c: New file. * src/Make.am [GRECS_COND_GIT_PARSER]: Define GRECS_PARSER_GIT. (GRECS_SRC): Add GRECS_PARSER_GIT. * src/grecs.h (grecs_git_parser): New proto. * src/txtacc.c (grecs_txtacc_free): Ignore NULL argument. --- am/grecs.m4 | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'am') diff --git a/am/grecs.m4 b/am/grecs.m4 index 9685bca..5611e04 100644 --- a/am/grecs.m4 +++ b/am/grecs.m4 @@ -156,6 +156,10 @@ AC_DEFUN([GRECS_SETUP],[ _GRECS_OPTION_SWITCH([parser-bind],[true], [all-parsers],[true], [false])) + AM_CONDITIONAL([GRECS_COND_GIT_PARSER], + _GRECS_OPTION_SWITCH([parser-git],[true], + [all-parsers],[true], + [false])) AC_SUBST([GRECS_SRCDIR],$1) AC_SUBST([GRECS_BUILD_AUX]) AC_SUBST([GRECS_INCLUDES]) -- cgit v1.2.1