Re: [Patch, libfortran] Combine get_mem and internal_malloc_size

2012-03-26 Thread Janne Blomqvist
On Mon, Mar 26, 2012 at 18:37, Steve Kargl wrote: > On Mon, Mar 26, 2012 at 06:17:08PM +0300, Janne Blomqvist wrote: >> >> currently in libgfortran we have two malloc() wrappers, get_mem and >> internal_malloc_size, which abort the program if malloc fails. >> internal_malloc_size does >> >> if (si

Re: [Patch, libfortran] Combine get_mem and internal_malloc_size

2012-03-26 Thread Steve Kargl
On Mon, Mar 26, 2012 at 06:17:08PM +0300, Janne Blomqvist wrote: > > currently in libgfortran we have two malloc() wrappers, get_mem and > internal_malloc_size, which abort the program if malloc fails. > internal_malloc_size does > > if (size == 0) > size = 1; > > and then calls get_mem, whi