CVS update: php3

From: Date: Tue, 02 Mar 1999 11:17:58 +0000
Subject: CVS update: php3
Groups: php.dev 
Request: Send a blank email to php-dev+get-4411@lists.php.net to get a copy of this message
Date: Tuesday March 2, 1999 @ 6:17 Author: sas Update of /repository/php3 In directory asf:/u/temp/cvs-serv12695 Modified Files: alloc.c Log Message: last casts Index: php3/alloc.c diff -c php3/alloc.c:1.83 php3/alloc.c:1.84 *** php3/alloc.c:1.83 Sun Feb 28 12:31:21 1999 --- php3/alloc.c Tue Mar 2 06:17:58 1999 *************** *** 96,102 **** #if DEBUG if (!(initialized & INIT_MEMORY_MANAGER)) { ! fprintf(stderr,"WARNING: Call to emalloc() before memory manager is started from %s:%u (%ul bytes)\n",filename,lineno, size); } #endif --- 96,102 ---- #if DEBUG if (!(initialized & INIT_MEMORY_MANAGER)) { ! fprintf(stderr,"WARNING: Call to emalloc() before memory manager is started from %s:%u (%lu bytes)\n",filename,lineno,(unsigned long) size); } #endif *************** *** 116,122 **** } if (!p) { ! fprintf(stderr,"FATAL: emalloc(): Unable to allocate %ul bytes\n", size); exit(1); UNBLOCK_INTERRUPTIONS; return (void *)p; --- 116,122 ---- } if (!p) { ! fprintf(stderr,"FATAL: emalloc(): Unable to allocate %lu bytes\n", (unsigned long) size); exit(1); UNBLOCK_INTERRUPTIONS; return (void *)p; *************** *** 222,228 **** REMOVE_POINTER_FROM_LIST(p); p = (mem_header *) realloc(p,sizeof(mem_header)+size+PLATFORM_PADDING+END_ALIGNMENT(size)+END_MAGIC_SIZE); if (!p) { ! fprintf(stderr,"FATAL: erealloc(): Unable to allocate %ul bytes\n", size); exit(1); orig->pNext = GLOBAL(head); if (GLOBAL(head)) { --- 222,228 ---- REMOVE_POINTER_FROM_LIST(p); p = (mem_header *) realloc(p,sizeof(mem_header)+size+PLATFORM_PADDING+END_ALIGNMENT(size)+END_MAGIC_SIZE); if (!p) { ! fprintf(stderr,"FATAL: erealloc(): Unable to allocate %lu bytes\n", (unsigned long) size); exit(1); orig->pNext = GLOBAL(head); if (GLOBAL(head)) { -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#4411) next »