aboutsummaryrefslogtreecommitdiffstats
path: root/src/gmalloc.c
diff options
context:
space:
mode:
authorJuanma Barranquero2011-09-09 03:06:52 +0200
committerJuanma Barranquero2011-09-09 03:06:52 +0200
commit5e617bc2b62189768814fafd1a875e89a094d3ef (patch)
treed96d22e012035d044557abf4de0b8e30b03d61b7 /src/gmalloc.c
parent9b1c252e294bed3aef0d2f2fc5d1fa9f72df9ee8 (diff)
downloademacs-5e617bc2b62189768814fafd1a875e89a094d3ef.tar.gz
emacs-5e617bc2b62189768814fafd1a875e89a094d3ef.zip
Whitespace changes.
Diffstat (limited to 'src/gmalloc.c')
-rw-r--r--src/gmalloc.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gmalloc.c b/src/gmalloc.c
index d49259b8ed7..7b5e6df009b 100644
--- a/src/gmalloc.c
+++ b/src/gmalloc.c
@@ -102,7 +102,7 @@ extern void malloc_enable_thread PP ((void));
102 receive a fragment of a block. Fragment sizes are powers of two, 102 receive a fragment of a block. Fragment sizes are powers of two,
103 and all fragments of a block are the same size. When all the 103 and all fragments of a block are the same size. When all the
104 fragments in a block have been freed, the block itself is freed. */ 104 fragments in a block have been freed, the block itself is freed. */
105#define INT_BIT (CHAR_BIT * sizeof(int)) 105#define INT_BIT (CHAR_BIT * sizeof (int))
106#define BLOCKLOG (INT_BIT > 16 ? 12 : 9) 106#define BLOCKLOG (INT_BIT > 16 ? 12 : 9)
107#define BLOCKSIZE (1 << BLOCKLOG) 107#define BLOCKSIZE (1 << BLOCKLOG)
108#define BLOCKIFY(SIZE) (((SIZE) + BLOCKSIZE - 1) / BLOCKSIZE) 108#define BLOCKIFY(SIZE) (((SIZE) + BLOCKSIZE - 1) / BLOCKSIZE)
@@ -445,7 +445,7 @@ protect_malloc_state (protect_p)
445 } 445 }
446} 446}
447 447
448#define PROTECT_MALLOC_STATE(PROT) protect_malloc_state(PROT) 448#define PROTECT_MALLOC_STATE(PROT) protect_malloc_state (PROT)
449 449
450#else 450#else
451#define PROTECT_MALLOC_STATE(PROT) /* empty */ 451#define PROTECT_MALLOC_STATE(PROT) /* empty */
@@ -1541,7 +1541,7 @@ _realloc_internal (ptr, size)
1541{ 1541{
1542 __ptr_t result; 1542 __ptr_t result;
1543 1543
1544 LOCK(); 1544 LOCK ();
1545 result = _realloc_internal_nolock (ptr, size); 1545 result = _realloc_internal_nolock (ptr, size);
1546 UNLOCK (); 1546 UNLOCK ();
1547 1547
@@ -1625,7 +1625,7 @@ MA 02110-1301, USA. */
1625 1625
1626/* uClibc defines __GNU_LIBRARY__, but it is not completely 1626/* uClibc defines __GNU_LIBRARY__, but it is not completely
1627 compatible. */ 1627 compatible. */
1628#if !defined(__GNU_LIBRARY__) || defined(__UCLIBC__) 1628#if !defined (__GNU_LIBRARY__) || defined (__UCLIBC__)
1629#define __sbrk sbrk 1629#define __sbrk sbrk
1630#else /* __GNU_LIBRARY__ && ! defined (__UCLIBC__) */ 1630#else /* __GNU_LIBRARY__ && ! defined (__UCLIBC__) */
1631/* It is best not to declare this and cast its result on foreign operating 1631/* It is best not to declare this and cast its result on foreign operating
@@ -1647,7 +1647,7 @@ __default_morecore (increment)
1647 __malloc_ptrdiff_t increment; 1647 __malloc_ptrdiff_t increment;
1648{ 1648{
1649 __ptr_t result; 1649 __ptr_t result;
1650#if defined(CYGWIN) 1650#if defined (CYGWIN)
1651 if (!bss_sbrk_did_unexec) 1651 if (!bss_sbrk_did_unexec)
1652 { 1652 {
1653 return bss_sbrk (increment); 1653 return bss_sbrk (increment);
@@ -1830,7 +1830,7 @@ extern size_t __getpagesize PP ((void));
1830#endif 1830#endif
1831#else 1831#else
1832#include "getpagesize.h" 1832#include "getpagesize.h"
1833#define __getpagesize() getpagesize() 1833#define __getpagesize() getpagesize ()
1834#endif 1834#endif
1835 1835
1836#ifndef _MALLOC_INTERNAL 1836#ifndef _MALLOC_INTERNAL