diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-05-19 22:00:50 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-05-19 22:17:45 +0300 |
commit | bcab0df28d7e87f99da29a32327787c25261273e (patch) | |
tree | 1dd18f5394afdd0584947cc502c5d2050ba721ba /build-aux | |
parent | 304935a296997c9781688f08693ef70180dd24e4 (diff) | |
download | grecs-bcab0df28d7e87f99da29a32327787c25261273e.tar.gz grecs-bcab0df28d7e87f99da29a32327787c25261273e.tar.bz2 |
Implement "path-style" (Xres-style) config parser.
* src/path-parser.c: New file.
* src/format.c (grecs_format_node): Attempt to print value only
if the node is grecs_node_stmt.
* src/grecs.h (grecs_path_parser): New proto.
(grecs_node_from_path_locus): New proto.
* src/lookup.c (grecs_node_from_path_locus): New function.
* src/Make.am (GRECS_SRC): Add path-parser.c.
* build-aux/getopt.m4: Implement print_help_hook.
Diffstat (limited to 'build-aux')
-rw-r--r-- | build-aux/getopt.m4 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/build-aux/getopt.m4 b/build-aux/getopt.m4 index 83a1e35..93f6479 100644 --- a/build-aux/getopt.m4 +++ b/build-aux/getopt.m4 | |||
@@ -401,6 +401,8 @@ sort_opthelp (void) | |||
401 | } | 401 | } |
402 | } | 402 | } |
403 | 403 | ||
404 | void (*print_help_hook) (FILE *stream); | ||
405 | |||
404 | void | 406 | void |
405 | print_help (void) | 407 | print_help (void) |
406 | { | 408 | { |
@@ -477,6 +479,9 @@ dnl ************************************************************************** | |||
477 | putchar ('\n'); | 479 | putchar ('\n'); |
478 | } | 480 | } |
479 | 481 | ||
482 | if (print_help_hook) | ||
483 | print_help_hook (stdout); | ||
484 | |||
480 | /* TRANSLATORS: The placeholder indicates the bug-reporting address | 485 | /* TRANSLATORS: The placeholder indicates the bug-reporting address |
481 | for this package. Please add _another line_ saying | 486 | for this package. Please add _another line_ saying |
482 | "Report translation bugs to <...>\n" with the address for translation | 487 | "Report translation bugs to <...>\n" with the address for translation |