[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cp-patches] FYI: malloc and free targetizized
From: |
Tom Tromey |
Subject: |
Re: [cp-patches] FYI: malloc and free targetizized |
Date: |
17 Jan 2006 12:37:06 -0700 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 |
>>>>> "Roman" == Roman Kennke <address@hidden> writes:
Roman> I replaced calls to malloc() and free() in jcl.c and
Roman> native_state.c with the corresponding target macros for
Roman> improved portability.
Roman> - void *mem = malloc (size);
Roman> + void *mem;
Roman> + TARGET_NATIVE_MEMORY_ALLOC(mem,void *,size);
This is super ugly. Couldn't the allocator macro return a value?
Also, what platform requires us not to call 'malloc'?
Tom