Mercurial > hg > xemacs-beta
changeset 5729:f7abcda06b1b
Since stack_like_{malloc,free}() are only used when WIN32_ANY,
define them only that case. See xemacs-patches message
<CAHCOHQmW_HyWn=T8OJYVgp1CGPptFVHW0xPVgoaVJXpu4C0NkA@mail.gmail.com>.
author | Jerry James <james@xemacs.org> |
---|---|
date | Fri, 08 Mar 2013 13:43:06 -0700 |
parents | 0e2f2837c2bd |
children | 4521c9dc64f6 |
files | src/ChangeLog src/array.c src/array.h |
diffstat | 3 files changed, 10 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog Wed Mar 06 21:05:12 2013 -0700 +++ b/src/ChangeLog Fri Mar 08 13:43:06 2013 -0700 @@ -1,3 +1,9 @@ +2013-03-07 Jerry James <james@xemacs.org> + + * array.c (stack_like_malloc): Define only if WIN32_ANY. + (stack_like_free): Ditto. + * array.h: Ditto. + 2013-03-04 Jerry James <james@xemacs.org> * config.h.in: Add placeholders and definitions needed for large
--- a/src/array.c Wed Mar 06 21:05:12 2013 -0700 +++ b/src/array.c Fri Mar 08 13:43:06 2013 -0700 @@ -469,6 +469,7 @@ #endif /* MEMORY_USAGE_STATS */ +#ifdef WIN32_ANY /*****************************************************************************/ /* stack-like allocation */ /*****************************************************************************/ @@ -540,6 +541,7 @@ ABORT (); } } +#endif /* WIN32_ANY */ /*****************************************************************************/
--- a/src/array.h Wed Mar 06 21:05:12 2013 -0700 +++ b/src/array.h Fri Mar 08 13:43:06 2013 -0700 @@ -608,9 +608,10 @@ /** Stack-like malloc/free **/ /************************************************************************/ +#ifdef WIN32_ANY void *stack_like_malloc (Bytecount size); void stack_like_free (void *val); - +#endif /************************************************************************/