diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2013-02-26 16:14:37 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2013-02-26 16:35:53 +0200 |
commit | 487e2cfa988d6c3a5232011ab83897ef23bdb88a (patch) | |
tree | 2db411004be434327162149356d9e04e84c786d8 /src/.gitignore | |
parent | 5596f7cdcdc1983021185c5e0900d5fcba7f3282 (diff) | |
download | grecs-487e2cfa988d6c3a5232011ab83897ef23bdb88a.tar.gz grecs-487e2cfa988d6c3a5232011ab83897ef23bdb88a.tar.bz2 |
Introduce an alternative callback function calling convention.
Depending on the tree-api option to the GRECS_SETUP macro,
the signature of callback functions changes. If the option
is supplied, a pointer to grecs_node_t is passwd to callback
functions as an argument instead of pointers to the value and
locus.
* am/grecs.m4 (GRECS_SETUP): New option tree-api.
* src/.gitignore: Add grecs.h
* src/Make.am: Build grecs.h
* src/grecs.h: Rename to src/grecs.hin
(GRECS_TREE_API): New define
(grecs_callback_fn): Provide two alternative
signatures depending on the value of GRECS_TREE_API.
All uses updated.
* src/tree.c (fake_callback): Update signature.
(grecs_process_ident)
(stmt_begin,stmt_end): Update calls to callback.
* tests/gcfset.c: Likewise.
Diffstat (limited to 'src/.gitignore')
-rw-r--r-- | src/.gitignore | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/.gitignore b/src/.gitignore index 6e859b1..322178c 100644 --- a/src/.gitignore +++ b/src/.gitignore @@ -14,6 +14,7 @@ bind-gram.c bind-gram.h bind-gram.output bind-lex.c +grecs.h Make-inst.in Make-shared.in Make-static.in |