summaryrefslogtreecommitdiffabout
path: root/am
authorSergey Poznyakoff <gray@gnu.org.ua>2011-05-03 18:06:47 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2011-05-03 18:23:25 (GMT)
commited838ca0467f7cc9745b042099b568cdf0f2b835 (patch) (side-by-side diff)
tree1ffa754e73507d31ece0151e68db25a4ecb81592 /am
parent3d679b3df641f59fb81ca1651799f4e2965ed67e (diff)
downloadgrecs-ed838ca0467f7cc9745b042099b568cdf0f2b835.tar.gz
grecs-ed838ca0467f7cc9745b042099b568cdf0f2b835.tar.bz2
Various impovements.
* 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.
Diffstat (limited to 'am') (more/less context) (ignore whitespace changes)
-rw-r--r--am/grecs.m45
1 files changed, 5 insertions, 0 deletions
diff --git a/am/grecs.m4 b/am/grecs.m4
index 5fc1819..8de0d08 100644
--- a/am/grecs.m4
+++ b/am/grecs.m4
@@ -58,6 +58,8 @@ AC_DEFUN([_GRECS_SET_OPTIONS],
# configuration file. The option allows user to
# control whether the pp-setup file is installed.
# tests Build tests.
+# getopt Add getopt.m4 to the distribution
+# git2chg Add git2chg.awk to the distribution
#
# The pp-setup-file argument supplies the pathname of the preprocessor
# setup file in the source tree. It is ignored if std-pp-setup option is
@@ -137,6 +139,9 @@ AC_DEFUN([GRECS_SETUP],[
AM_MISSING_PROG([AUTOM4TE], [autom4te])
GRECS_TESTDIR=tests
])
+ _GRECS_IF_OPTION_SET([getopt],[GRECS_BUILD_AUX="build-aux/getopt.m4"])
+ _GRECS_IF_OPTION_SET([git2chg],[GRECS_BUILD_AUX="$GRECS_BUILD_AUX build-aux/git2chg.awk"])
+ AC_SUBST([GRECS_BUILD_AUX])
AC_SUBST([GRECS_INCLUDES])
AC_SUBST([GRECS_TESTDIR])
])

Return to:

Send suggestions and report system problems to the System administrator.