aboutsummaryrefslogtreecommitdiff
path: root/build-aux
AgeCommit message (Collapse)AuthorFiles
2022-01-12Update copyright yearsSergey Poznyakoff3
2021-01-06Update copyright yearsSergey Poznyakoff3
2019-06-24getopt.m4: add macro to insert a CPP directive in all diversionsSergey Poznyakoff1
* build-aux/getopt.m4 (CPP): New macro
2018-12-07Revise getopt.m4Sergey Poznyakoff1
2018-03-15Minor fixSergey Poznyakoff1
2016-08-05Minor fixSergey Poznyakoff1
* build-aux/getopt.m4: Only define lastoptlab if necessary
2016-08-05New operator to stop option processingSergey Poznyakoff1
* build-aux/getopt.m4 (LASTOPT): New macro. Stops further option processing.
2016-07-04Remove leftover includesSergey Poznyakoff1
* build-aux/getopt.m4: Include grecs/opt.h
2016-07-04Update copyright yearsSergey Poznyakoff3
2015-12-17Update copyright yearsSergey Poznyakoff3
2015-12-17Add wordsplit test (from mailutils)Sergey Poznyakoff1
* configure.ac (AC_CONFIG_SRCDIR): Fix argument * src/Make-inst.am (include_HEADERS): Add grecsopt.h * tests/.gitignore: Add wsp.c * tests/Makefile.am: Add new tests. * tests/testsuite.at: Likewise. * tests/wordsplit.at: New testcase. * tests/wsp.c: New test program.
2015-01-22Fix bugs in getopt.m4Sergey Poznyakoff1
* build-aux/getopt.m4 (OPTION): Pushdef __GETOPT_SELECTOR here (__GATHER_OPTIONS): define __GETOPT_SELECTOR, instead of pushdeffing it.
2015-01-21Use separate namespace for internal symbols in getopt.m4Sergey Poznyakoff1
2014-03-05Bugfix in getopt.m4Sergey Poznyakoff1
* build-aux/getopt.m4 (__GATHER_OPTIONS): Properly quote SHORT_OPTS. In the course of construction it may happen to end in sequence "dnl", so care should be taken to quote it.
2013-12-20Fix yyrenameSergey Poznyakoff1
* build-aux/yyrename: Remove temporary file.
2013-12-18New option program_version (OPTION_BEGIN macro).Sergey Poznyakoff1
When used, the variable program_version is defined as a string containing canonical project name and version. Optionally, the variable name can be overridden by supplying the desired name as the option value (e.g. program_version=myver). * build-aux/getopt.m4 (_getopt_if_option_null): New macro. (STDFUNC): Handle program_version.
2013-05-30BugfixesSergey Poznyakoff1
* build-aux/yyrename: Split sed command into three -e options: traditional sed doesn't like semicolons as separators. * src/opthelp.c (grecs_print_help): Remove superfluous const qualifier.
2013-04-25Add support for subcommand names.Sergey Poznyakoff1
This should simplify using grecs in programs that implement a subcommand notion (a la git or svn, e.g. myprod doit -n *). * build-aux/getopt.m4 (STDFUNC): Initialize the subcmd member of struct grecs_proginfo. (OPTIONS_COMMAND_BEGIN): New macro. * src/grecsopt.h (grecs_proginfo) <subcmd>: New member. * src/opthelp.c (grecs_print_help): if defined, print the subcommand and its aliases.
2012-09-27Bugfix.Sergey Poznyakoff1
* build-aux/getopt.m4: Don't clear opterr.
2012-09-26Improve getopt interface.Sergey Poznyakoff1
* build-aux/getopt.m4: Move function declarations to the library. Introduce new options: nopermute, nousage, noversion. * src/grecsopt.h: New file. * src/opthelp.c: New file. * src/Make-shared.am: Add new files. * src/Make-static.am: Likewise. * src/Make.am: Likewise.
2012-01-29Don't pass empty string to gettext.Sergey Poznyakoff1
* build-aux/getopt.m4 (args_doc,doc): If empty, don't use N_. (print_help): If args_doc is empty, don't use gettext.
2012-01-03Happy GNU YearSergey Poznyakoff3
2011-05-23Minor fixesSergey Poznyakoff1
* build-aux/yyrename: Improve argument checking. Reword the description.
2011-05-19Implement "path-style" (Xres-style) config parser.Sergey Poznyakoff1
* 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.
2011-05-16Minor fixSergey Poznyakoff1
* build-aux/yyrename: Ignore #line statements.
2011-05-15Provide a framework for multiple parsers. Implement meta1 parser.Sergey Poznyakoff1
* Makefile.am (EXTRA_DIST): Add build-aux/yyrename * am/grecs.m4: New options: parser-meta1 and all-parsers * src/.gitignore: Update. * src/Make.am [GRECS_COND_META1_PARSER]: Set GRECS_PARSER_META1 and GRECS_EXTRA_META1 (GRECS_SRC): Add new files. (EXTRA_DIST): Add GRECS_EXTRA_META1. (LEXCOMPILE,YACCCOMPILE): Redefine * src/grecs-gram.y: Don't include yygrecs.h (grecs_vasprintf,grecs_asprintf): Move to a separate file. (grecs_parse): Rename to grecs_grecs_parser. Actual grecs_parse is defined in parser.c (grecs_gram_trace): Move to parser.c * src/grecs-lex.l: Don't include yygrecs.h Use line_acc functions. * src/grecs.h (grecs_trace_flags): New extern. (GRECS_TRACE_GRAM, GRECS_TRACE_LEX): New flags. (grecs_lex_begin): Change signature. (grecs_grecs_parser,grecs_meta1_parser): New protos. (grecs_line_acc_create) (grecs_line_acc_free,grecs_line_acc_grow_char) (grecs_line_acc_grow_char_unescape) (grecs_line_acc_grow) (grecs_line_acc_grow_unescape_last): New protos. (GRECS_TXTACC_BUFSIZE): New const (grecs_txtacc_create,grecs_txtacc_free) (grecs_txtacc_grow,grecs_txtacc_finish) (grecs_txtacc_free_string): New protos. (grecs_value_match): New proto. * src/wordsplit.c (quote_transtab): Translate \" * src/yygrecs.h: Remove. * src/yytrans: New file. * build-aux/yyrename: New file. * src/asprintf.c: New file. * src/lineacc.c: New file. * src/meta1-gram.y: New file. * src/meta1-lex.l: New file. * src/parser.c: New file. * src/txtacc.c: New file. * doc/grecs_parse.3: Update. * doc/GRECS_SETUP.3: Update.
2011-05-13Improvements in git2chg.awk and grecs setup sequence.Sergey Poznyakoff1
* build-aux/git2chg.awk: New configuration variables: since=YYYY-MM-DD, to cut off entries earlier than the given date, and append=FILE, to append FILE to the generated ChangeLog. * am/grecs.m4 (GRECS_HOST_PROJECT_INCLUDES): New substitution variable. * src/Make.am (INCLUDES): Expand GRECS_HOST_PROJECT_INCLUDES. * tests/Makefile.am: Likewise.
2011-05-08Various fixes.Sergey Poznyakoff1
* .gitignore: Add gitid.h * Makefile.am: Build gitid.h. * am/grecs.m4: Remove GRECS_VEROK_AT. * build-aux/getopt.m4 (print_version_hook): New variable. (print_version): Call print_version_hook, if defined. * src/Make.am (INCLUDES): Update. * src/grecs.h (grecs_version_info) <id>: New member. * src/version.c (grecs_version): Initialize id. * tests/Makefile.am: Remove GRECS_VEROK_AT. * tests/testsuite.at: Likewise.
2011-05-07Support standalone compilation.Sergey Poznyakoff2
* AUTHORS, COPYING, NEWS, README: New files. * .gitignore: Update. * am/.gitignore: New file. * build-aux/.gitignore: New file. * build-aux/ylwrap: Remove. * Makefile.am: Define ACLOCAL_AMFLAGS [GRECS_CHANGELOG]: Build ChangeLog. * am/grecs.m4: Define GRECS_CHANGELOG and GRECS_SRCDIR. Fixup first argument, if it is [.]. * configure.ac: New file. * src/Make-inst.am (include_HEADERS): Add wordsplit.h. Install libgrecs.m4. * Make-shared.am (noinst_HEADERS): Add wordsplit.h. * src/Make-static.am: Likewise. * src/Make.am (GRECS_SRC): Remove wordsplit.h (noinst_HEADERS): Add yygrecs.h (YLWRAP): Remove. * src/libgrecs.m4: New file. * src/yygrecs.h: New file. * src/grecs-gram.y: Include yygrecs.h. * src/grecs-lex.l: Likewise. * src/preproc.c (yy_grecs_flex_debug): Rename to grecs_yy_flex_debug.
2011-05-07Minor fix.Sergey Poznyakoff1
* build-aux/getopt.m4: Fixup cmdline_tree, if needed.
2011-05-03Various impovements.Sergey Poznyakoff2
* am/grecs.m4 (GRECS_SETUP): New flags: getopt and git2chg. * src/format.c (grecs_format_locus): Ignore NULL loci. (grecs_format_node_ident): Rename to grecs_format_node_path. Change semantics of the second argument. (grecs_format_value): Change signature (take flags). Correctly quote string values. * src/grecs.h: Protect the contents with #ifndef _GRECS_H. (GRECS_AGGR): New flag (for future use). (grecs_node) <prev>: New member. (grecs_format_value): Change signature. (grecs_format_node_ident): Rename to grecs_format_node_path. (GRECS_NODE_FLAG_PATH,GRECS_NODE_FLAG_VALUE) (GRECS_NODE_FLAG_QUOTE,GRECS_NODE_FLAG_QUOTE_HEX) (GRECS_NODE_FLAG_DEFAULT): New flags. (grecs_node_from_path): New proto. * src/lookup.c (grecs_node_from_path): New function. * src/tree.c (grecs_node_bind): Keep track of node->prev.
2009-04-21Keep user namespace clear.Sergey Poznyakoff1
* build-aux/ylwrap: A modified ylwrap implentation. It allows to rename all yy* symbols in the resulting files. It was proposed for inclusion in Automake on 2007-06-22, but didn't make it into the distribution so far. * src/Makefile.am (YLWRAP): Rename all yy to yygrecs_.

Return to:

Send suggestions and report system problems to the System administrator.