aboutsummaryrefslogtreecommitdiff
path: root/src/grecs-gram.y
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2011-04-30 18:57:54 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2011-04-30 18:57:54 +0300
commit3f39626191970d57a8ad406b72474d565627b043 (patch)
treed44afa4a201a1ca8f5efc10870f69bda9276a752 /src/grecs-gram.y
parenta3599c1135e2eefe9bb0d910694150feddfa5439 (diff)
downloadgrecs-3f39626191970d57a8ad406b72474d565627b043.tar.gz
grecs-3f39626191970d57a8ad406b72474d565627b043.tar.bz2
Bugfixes and improvements.
* am/grecs.m4 (GRECS_INCLUDES): New substitute variable. * src/Makefile.am (INCLUDES): Add GRECS_INCLUDES. * src/grecs-gram.y: Remove leftover uses of xmalloc. * src/grecs.h (grecs_zalloc, grecs_calloc): New protos. * src/mem.c (grecs_zalloc, grecs_calloc): New functions. * src/wordsplit.c [ENABLE_NLS]: include gettext.h
Diffstat (limited to 'src/grecs-gram.y')
-rw-r--r--src/grecs-gram.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/grecs-gram.y b/src/grecs-gram.y
index ab757f8..114e151 100644
--- a/src/grecs-gram.y
+++ b/src/grecs-gram.y
@@ -126,7 +126,7 @@ vallist : vlist
$$.type = GRECS_TYPE_ARRAY;
$$.v.arg.c = n;
- $$.v.arg.v = xcalloc (n, sizeof ($$.v.arg.v[0]));
+ $$.v.arg.v = grecs_malloc (n * sizeof ($$.v.arg.v[0]));
for (i = 0, ep = $1->head; ep; i++, ep = ep->next)
$$.v.arg.v[i] = *(grecs_value_t *)ep->data;
}

Return to:

Send suggestions and report system problems to the System administrator.