diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-05-03 21:06:47 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-05-03 21:23:25 +0300 |
commit | ed838ca0467f7cc9745b042099b568cdf0f2b835 (patch) | |
tree | 1ffa754e73507d31ece0151e68db25a4ecb81592 /src/wordsplit.h | |
parent | 3d679b3df641f59fb81ca1651799f4e2965ed67e (diff) | |
download | grecs-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 'src/wordsplit.h')
-rw-r--r-- | src/wordsplit.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wordsplit.h b/src/wordsplit.h index 5da725a..0ddb02b 100644 --- a/src/wordsplit.h +++ b/src/wordsplit.h @@ -131,7 +131,7 @@ void wordsplit_free_words (struct wordsplit *ws); int wordsplit_c_unquote_char (int c); int wordsplit_c_quote_char (int c); size_t wordsplit_c_quoted_length (const char *str, int quote_hex, - int *quote); + int *quote); void wordsplit_sh_unquote_copy (char *dst, const char *src, size_t n); void wordsplit_c_unquote_copy (char *dst, const char *src, size_t n); void wordsplit_c_quote_copy (char *dst, const char *src, int quote_hex); |