diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2009-10-12 20:44:56 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2009-10-12 20:45:15 +0300 |
commit | 0addbd7aa72859139542010ee21bfc370f32e133 (patch) | |
tree | f08d20e5996f2b5e12376f3d50b00c805a3b73d3 /src/format.c | |
parent | 03e0fbafa688bfae3a82fa868b4b1d5eceb4c2d4 (diff) | |
download | grecs-0addbd7aa72859139542010ee21bfc370f32e133.tar.gz grecs-0addbd7aa72859139542010ee21bfc370f32e133.tar.bz2 |
Namespace cleanup. Add grecs_process_ident function.
* src/grecs.h (GCONF_): Change prefix to GRECS_. All usages
updated.
(grecs_string_convert): Change prototype.
(grecs_process_ident): New prototype.
* src/grecs-gram.y (CURRENT_BASE): New define.
(target_ptr): Take base as 2nd parameter. All callers updated.
(string_to_signed, string_to_unsigned)
(string_to_bool, string_to_host)
(string_to_sockaddr, grecs_string_convert): Take additional
argument: source location.
(grecs_process_ident): New function.
(process_ident): Rewrite as a wrapper over grecs_process_ident.
* src/wordsplit.c (wordsplit_init): Fix handling of WRDSF_DOOFFS.
Diffstat (limited to 'src/format.c')
-rw-r--r-- | src/format.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/format.c b/src/format.c index 165c688..e551abe 100644 --- a/src/format.c +++ b/src/format.c @@ -158,9 +158,9 @@ grecs_format_simple_statement (FILE *stream, struct grecs_keyword *kwp, else { fprintf (stream, "%s <%s: ", kwp->ident, gettext (argstr)); - if (GCONF_IS_LIST (kwp->type)) + if (GRECS_IS_LIST (kwp->type)) fprintf (stream, "list of %s", - gettext (grecs_data_type_string (GCONF_TYPE (kwp->type)))); + gettext (grecs_data_type_string (GRECS_TYPE (kwp->type)))); else fprintf (stream, "%s", gettext (grecs_data_type_string (kwp->type))); fprintf (stream, ">;\n"); |