aboutsummaryrefslogtreecommitdiff
path: root/src/grecs-gram.y
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2011-04-18 22:16:48 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2011-04-18 22:16:48 +0300
commitec709eaca89cfb0f13c340439f9e3ea33e85bc22 (patch)
treeac4e9d608ab94a8cb4b5fc5182499fef83a1ee67 /src/grecs-gram.y
parentfdecabd82197944d317824ee7006ffb82aeb20cc (diff)
downloadgrecs-ec709eaca89cfb0f13c340439f9e3ea33e85bc22.tar.gz
grecs-ec709eaca89cfb0f13c340439f9e3ea33e85bc22.tar.bz2
Remove superfluous gnulib modules. Improve wordsplit.
* gnulib.modules: Remove c-type, error, regex and stdbool. * src/grecs-gram.y: Use 0/1 instead of false/true. * src/preproc.c: Likewise. * src/grecs.h: Don't include stdbool.h * src/wordsplit.c: Apply fixes from Mailutils. * src/wordsplit.h: Likewise.
Diffstat (limited to 'src/grecs-gram.y')
-rw-r--r--src/grecs-gram.y18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/grecs-gram.y b/src/grecs-gram.y
index 664737c..0fe8443 100644
--- a/src/grecs-gram.y
+++ b/src/grecs-gram.y
@@ -62,7 +62,7 @@ static void stmt_end (struct grecs_keyword *kwp);
static struct grecs_keyword *find_keyword (const char *ident);
static void process_ident (struct grecs_keyword *kwp, grecs_value_t *value);
-static gl_list_t simple_list_create (bool dispose);
+static gl_list_t simple_list_create (int dispose);
%}
%union {
@@ -144,7 +144,7 @@ vallist : vlist
vlist : value
{
- $$ = simple_list_create (false);
+ $$ = simple_list_create (0);
gl_list_add_last ($$, grecs_value_dup (&$1));
}
| vlist value
@@ -191,7 +191,7 @@ slist : slist0
slist0 : QSTRING
{
- $$ = simple_list_create (false);
+ $$ = simple_list_create (0);
gl_list_add_last ($$, $1);
}
| slist0 QSTRING
@@ -217,7 +217,7 @@ list : '(' ')'
values : value
{
- $$ = simple_list_create (false);
+ $$ = simple_list_create (0);
gl_list_add_last ($$, grecs_value_dup (&$1));
}
| values ',' value
@@ -247,13 +247,13 @@ listel_dispose(const void *el)
}
static gl_list_t
-simple_list_create (bool dispose)
+simple_list_create (int dispose)
{
return gl_list_create_empty(&gl_linked_list_implementation,
NULL,
NULL,
dispose ? listel_dispose : NULL,
- false);
+ 0);
}
@@ -356,7 +356,7 @@ stmt_begin (struct grecs_keyword *kwp, grecs_value_t tag)
void *target;
if (!sections)
- sections = simple_list_create (false);
+ sections = simple_list_create (0);
gl_list_add_first (sections, cursect);
if (kwp)
{
@@ -815,7 +815,7 @@ grecs_process_ident (struct grecs_keyword *kwp, grecs_value_t *value,
grecs_prop_tab[type].eqfn,
NULL,
NULL,
- false);
+ 0);
while (gl_list_iterator_next (&itr, &p, NULL))
{
@@ -868,7 +868,7 @@ grecs_process_ident (struct grecs_keyword *kwp, grecs_value_t *value,
grecs_prop_tab[type].eqfn,
NULL,
listel_dispose,
- false);
+ 0);
if (type == grecs_type_string)
gl_list_add_last (list, value->v.string);
else

Return to:

Send suggestions and report system problems to the System administrator.