comparison src/alloc.c @ 600:a8d78999e46d

*** empty log message ***
author Noah Friedman <friedman@splode.com>
date Wed, 25 Mar 1992 09:20:50 +0000
parents 1a6483439acc
children 2bb7f23b7ea5
comparison
equal deleted inserted replaced
599:c1e8cc0b3fb5 600:a8d78999e46d
165 165
166 /* We must call malloc explicitly when BLOCK is 0, since some 166 /* We must call malloc explicitly when BLOCK is 0, since some
167 reallocs don't do this. */ 167 reallocs don't do this. */
168 if (! block) 168 if (! block)
169 val = (long *) malloc (size); 169 val = (long *) malloc (size);
170 ese 170 else
171 val = (long *) realloc (block, size); 171 val = (long *) realloc (block, size);
172 172
173 if (!val && size) memory_full (); 173 if (!val && size) memory_full ();
174 return val; 174 return val;
175 } 175 }