Mercurial > hg > xemacs-beta
comparison src/gmalloc.c @ 86:364816949b59 r20-0b93
Import from CVS: tag r20-0b93
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:09:02 +0200 |
parents | 1ce6082ce73f |
children | 821dec489c24 |
comparison
equal
deleted
inserted
replaced
85:c661705957e0 | 86:364816949b59 |
---|---|
554 #else | 554 #else |
555 if (size == 0) | 555 if (size == 0) |
556 return NULL; | 556 return NULL; |
557 #endif | 557 #endif |
558 | 558 |
559 if (__malloc_hook != NULL) | |
560 return (*__malloc_hook) (size); | |
561 | |
562 if (!__malloc_initialized) | 559 if (!__malloc_initialized) |
563 if (!initialize ()) | 560 if (!initialize ()) |
564 return NULL; | 561 return NULL; |
562 | |
563 if (__malloc_hook != NULL) | |
564 return (*__malloc_hook) (size); | |
565 | 565 |
566 #ifdef SUNOS_LOCALTIME_BUG | 566 #ifdef SUNOS_LOCALTIME_BUG |
567 /* Workaround for localtime() allocating 8 bytes and writing 9 bug... */ | 567 /* Workaround for localtime() allocating 8 bytes and writing 9 bug... */ |
568 if (size < 16) | 568 if (size < 16) |
569 size = 16; | 569 size = 16; |