aboutsummaryrefslogtreecommitdiffstats
path: root/src/gmalloc.c
diff options
context:
space:
mode:
authorFabián Ezequiel Gallina2012-06-14 23:05:43 -0300
committerFabián Ezequiel Gallina2012-06-14 23:05:43 -0300
commit315f675857250c2204d024748e9eafa57c68410f (patch)
tree101bfee7ff075c2eb02fd4bd80af02ed1da979b5 /src/gmalloc.c
parentc6a506fefd22cb1efde1935154e79b471b943c45 (diff)
parent4302f5ba6e853d3f42ca21c536afd5a69b9e1774 (diff)
downloademacs-315f675857250c2204d024748e9eafa57c68410f.tar.gz
emacs-315f675857250c2204d024748e9eafa57c68410f.zip
Merge from trunk
Diffstat (limited to 'src/gmalloc.c')
-rw-r--r--src/gmalloc.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/gmalloc.c b/src/gmalloc.c
index 38406fd029a..0df050e127a 100644
--- a/src/gmalloc.c
+++ b/src/gmalloc.c
@@ -1004,7 +1004,7 @@ _free_internal_nolock (void *ptr)
1004 return; 1004 return;
1005 1005
1006#ifdef CYGWIN 1006#ifdef CYGWIN
1007 if (ptr < _heapbase) 1007 if ((char *) ptr < _heapbase)
1008 /* We're being asked to free something in the static heap. */ 1008 /* We're being asked to free something in the static heap. */
1009 return; 1009 return;
1010#endif 1010#endif
@@ -1341,7 +1341,7 @@ _realloc_internal_nolock (void *ptr, size_t size)
1341 return _malloc_internal_nolock (size); 1341 return _malloc_internal_nolock (size);
1342 1342
1343#ifdef CYGWIN 1343#ifdef CYGWIN
1344 if (ptr < _heapbase) 1344 if ((char *) ptr < _heapbase)
1345 /* ptr points into the static heap */ 1345 /* ptr points into the static heap */
1346 return special_realloc (ptr, size); 1346 return special_realloc (ptr, size);
1347#endif 1347#endif
@@ -1531,10 +1531,6 @@ MA 02110-1301, USA. */
1531extern void *__sbrk (ptrdiff_t increment); 1531extern void *__sbrk (ptrdiff_t increment);
1532#endif /* __GNU_LIBRARY__ && ! defined (__UCLIBC__) */ 1532#endif /* __GNU_LIBRARY__ && ! defined (__UCLIBC__) */
1533 1533
1534#ifndef NULL
1535#define NULL 0
1536#endif
1537
1538/* Allocate INCREMENT more bytes of data space, 1534/* Allocate INCREMENT more bytes of data space,
1539 and return the start of data space, or NULL on errors. 1535 and return the start of data space, or NULL on errors.
1540 If INCREMENT is negative, shrink data space. */ 1536 If INCREMENT is negative, shrink data space. */