diff options
author | Not Zed <NotZed@Ximian.com> | 2004-08-27 02:26:57 +0000 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2004-08-27 02:26:57 +0000 |
commit | 36012aaf606852cff9ca2c30be5ded6e5e51b1c3 (patch) | |
tree | 5217be19ea3cf98a5a22c0dbd8989375df67de3f | |
parent | ebecf2d14ddfae1708732d391e58286bb3ee744f (diff) | |
download | evolution-data-server-36012aaf606852cff9ca2c30be5ded6e5e51b1c3.tar.gz |
** See bug #63051.
2004-08-26 Not Zed <NotZed@Ximian.com>
** 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.
-rw-r--r-- | ChangeLog | 12 | ||||
-rw-r--r-- | libedataserver/e-memory.c | 2 | ||||
-rw-r--r-- | libedataserver/e-sexp.c | 2 | ||||
-rw-r--r-- | libedataserver/e-util.c | 6 |
4 files changed, 17 insertions, 5 deletions
@@ -1,3 +1,15 @@ +2004-08-26 Not Zed <NotZed@Ximian.com> + + ** 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 <fcrozat@mandrakesoft.com> * 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;i<m->blocks->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;i<t->value.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 <string.h> #include <sys/stat.h> #include <unistd.h> -#include <alloca.h> #include <glib/gfileutils.h> #include <glib/gmem.h> #include <glib/gmessages.h> #include <glib/gstrfuncs.h> #include <glib/gunicode.h> #include <glib/gutils.h> +#include <glib/galloca.h> #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)) { |