From 36012aaf606852cff9ca2c30be5ded6e5e51b1c3 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Fri, 27 Aug 2004 02:26:57 +0000 Subject: ** See bug #63051. 2004-08-26 Not Zed ** See bug #63051. * libedataserver/e-util.c (e_util_utf8_strstrcase) (e_util_utf8_strstrcasedecomp): * libedataserver/e-sexp.c (e_sexp_term_eval): * libedataserver/e-memory.c (e_memchunk_clean): use g_alloca for stupid arcanely out of date and posixly-busted slowaris which doesn't put alloca in stdlib.h like any sane system. --- ChangeLog | 12 ++++++++++++ libedataserver/e-memory.c | 2 +- libedataserver/e-sexp.c | 2 +- libedataserver/e-util.c | 6 +++--- 4 files changed, 17 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3a8bb3ad6..47cf5796f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,15 @@ +2004-08-26 Not Zed + + ** See bug #63051. + + * libedataserver/e-util.c (e_util_utf8_strstrcase) + (e_util_utf8_strstrcasedecomp): + + * libedataserver/e-sexp.c (e_sexp_term_eval): + * libedataserver/e-memory.c (e_memchunk_clean): use g_alloca for + stupid arcanely out of date and posixly-busted slowaris which + doesn't put alloca in stdlib.h like any sane system. + 2004-08-25 Frederic Crozat * libedataserver/e-file-cache.c: (add_key_to_list), diff --git a/libedataserver/e-memory.c b/libedataserver/e-memory.c index b2358a1e1..ae882d722 100644 --- a/libedataserver/e-memory.c +++ b/libedataserver/e-memory.c @@ -282,7 +282,7 @@ e_memchunk_clean(MemChunk *m) /* first, setup the tree/list so we can map free block addresses to block addresses */ tree = g_tree_new((GCompareFunc)tree_compare); for (i=0;iblocks->len;i++) { - ci = alloca(sizeof(*ci)); + ci = g_alloca(sizeof(*ci)); ci->count = 0; ci->base = m->blocks->pdata[i]; ci->size = m->blocksize * m->atomsize; diff --git a/libedataserver/e-sexp.c b/libedataserver/e-sexp.c index a7619c59f..3e6e661d0 100644 --- a/libedataserver/e-sexp.c +++ b/libedataserver/e-sexp.c @@ -701,7 +701,7 @@ e_sexp_term_eval(struct _ESExp *f, struct _ESExpTerm *t) break; case ESEXP_TERM_FUNC: /* first evaluate all arguments to result types */ - argv = alloca(sizeof(argv[0]) * t->value.func.termcount); + argv = g_alloca(sizeof(argv[0]) * t->value.func.termcount); for (i=0;ivalue.func.termcount;i++) { argv[i] = e_sexp_term_eval(f, t->value.func.terms[i]); } diff --git a/libedataserver/e-util.c b/libedataserver/e-util.c index ff6fec668..2209c6da5 100644 --- a/libedataserver/e-util.c +++ b/libedataserver/e-util.c @@ -22,13 +22,13 @@ #include #include #include -#include #include #include #include #include #include #include +#include #include "e-util.h" int @@ -106,7 +106,7 @@ e_util_utf8_strstrcase (const gchar *haystack, const gchar *needle) if (strlen (needle) == 0) return haystack; if (strlen (haystack) == 0) return NULL; - nuni = alloca (sizeof (gunichar) * strlen (needle)); + nuni = g_alloca (sizeof (gunichar) * strlen (needle)); nlen = 0; for (p = e_util_unicode_get_utf8 (needle, &unival); p && unival; p = e_util_unicode_get_utf8 (p, &unival)) { @@ -1502,7 +1502,7 @@ e_util_utf8_strstrcasedecomp (const gchar *haystack, const gchar *needle) if (strlen (needle) == 0) return haystack; if (strlen (haystack) == 0) return NULL; - nuni = alloca (sizeof (gunichar) * strlen (needle)); + nuni = g_alloca (sizeof (gunichar) * strlen (needle)); nlen = 0; for (p = e_util_unicode_get_utf8 (needle, &unival); p && unival; p = e_util_unicode_get_utf8 (p, &unival)) { -- cgit v1.2.1