diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-05-16 12:18:04 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-05-16 12:21:25 +0300 |
commit | aa31497d9f0a3e96801d3752dd2d8f4ea20a2f4c (patch) | |
tree | 3bdf880ec5c4bd2c97d7d7ff665e13a7ca4b0a76 /am | |
parent | 8eb1be8941228d01438436b53dd46b422ba980a3 (diff) | |
download | grecs-aa31497d9f0a3e96801d3752dd2d8f4ea20a2f4c.tar.gz grecs-aa31497d9f0a3e96801d3752dd2d8f4ea20a2f4c.tar.bz2 |
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.
Diffstat (limited to 'am')
-rw-r--r-- | am/grecs.m4 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/am/grecs.m4 b/am/grecs.m4 index 9685bca..5611e04 100644 --- a/am/grecs.m4 +++ b/am/grecs.m4 @@ -153,12 +153,16 @@ AC_DEFUN([GRECS_SETUP],[ [all-parsers],[true], [false])) AM_CONDITIONAL([GRECS_COND_BIND_PARSER], _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]) AC_SUBST([GRECS_TESTDIR]) AC_SUBST([GRECS_LDADD]) AC_SUBST([GRECS_DOCDIR]) |