Applied a bunch of small changes contributed by Tim Mooney that fix stack

2004-07-30  Sven Neumann  <sven@gimp.org>

	Applied a bunch of small changes contributed by Tim Mooney that fix
	stack corruption on Tru64 and Aix (bug #129867).

	* app/Makefile.am
	* plug-ins/script-fu/Makefile.am: changed the dependency order so
	that $(REGEXREPL) is linked earlier.

	* regexrepl/regex.[ch]: fixed check for __STDC__, merged upstream
	fix for re_max_failures value.
This commit is contained in:
Sven Neumann 2004-07-30 20:56:29 +00:00 committed by Sven Neumann
parent 26a4b20dfe
commit fc2485e6f7
5 changed files with 21 additions and 9 deletions

View File

@ -1,3 +1,15 @@
2004-07-30 Sven Neumann <sven@gimp.org>
Applied a bunch of small changes contributed by Tim Mooney that fix
stack corruption on Tru64 and Aix (bug #129867).
* app/Makefile.am
* plug-ins/script-fu/Makefile.am: changed the dependency order so
that $(REGEXREPL) is linked earlier.
* regexrepl/regex.[ch]: fixed check for __STDC__, merged upstream
fix for re_max_failures value.
2004-07-30 Sven Neumann <sven@gimp.org>
* configure.in: always do the check for perl and use the

View File

@ -125,6 +125,7 @@ gimp_2_1_LDADD = \
$(libgimpthumb) \
$(libgimpmath) \
$(libgimpbase) \
$(REGEXREPL) \
$(GTK_LIBS) \
$(LIBART_LIBS) \
$(PANGOFT2_LIBS) \
@ -133,8 +134,7 @@ gimp_2_1_LDADD = \
$(GIMP_THREAD_LIBS) \
$(GIMP_MP_LIBS) \
$(RT_LIBS) \
$(INTLLIBS) \
$(REGEXREPL)
$(INTLLIBS)
if ENABLE_GIMP_CONSOLE
@ -168,6 +168,7 @@ gimp_console_2_1_LDADD = \
$(libgimpthumb) \
$(libgimpmath) \
$(libgimpbase) \
$(REGEXREPL) \
$(GDK_PIXBUF_LIBS) \
$(LIBART_LIBS) \
$(PANGOFT2_LIBS) \
@ -176,8 +177,7 @@ gimp_console_2_1_LDADD = \
$(GIMP_THREAD_LIBS) \
$(GIMP_MP_LIBS) \
$(RT_LIBS) \
$(INTLLIBS) \
$(REGEXREPL)
$(INTLLIBS)
endif

View File

@ -54,8 +54,8 @@ LDADD = \
$(libgimpcolor) \
$(libgimpbase) \
siod/libsiod.a \
$(REGEXREPL) \
$(GTK_LIBS) \
$(SOCKET_LIBS) \
$(RT_LIBS) \
$(INTLLIBS) \
$(REGEXREPL)
$(INTLLIBS)

View File

@ -215,7 +215,7 @@ init_syntax_once ()
machines, compilers, `char' and `unsigned char' argument types.
(Per Bothner suggested the basic approach.) */
#undef SIGN_EXTEND_CHAR
#if __STDC__
#if defined(__STDC__)
#define SIGN_EXTEND_CHAR(c) ((signed char) (c))
#else /* not __STDC__ */
/* As in Harbison and Steele. */
@ -1064,7 +1064,7 @@ typedef struct
#if defined (MATCH_MAY_ALLOCATE)
/* 4400 was enough to cause a crash on Alpha OSF/1,
whose default stack limit is 2mb. */
int re_max_failures = 20000;
int re_max_failures = 4000;
#else
int re_max_failures = 2000;
#endif

View File

@ -426,7 +426,7 @@ typedef struct
unfortunately clutters up the declarations a bit, but I think it's
worth it. */
#if __STDC__
#if defined(__STDC__)
#define _RE_ARGS(args) args