2006-08-18 Roger Sayle <roger@eyesopen.com>
[official-gcc.git] / boehm-gc / include / gc_amiga_redirects.h
blob9e975c8c832246808e7ad39e622c38e2eaa95dee
1 #ifndef GC_AMIGA_REDIRECTS_H
3 # define GC_AMIGA_REDIRECTS_H
5 # if ( defined(_AMIGA) && !defined(GC_AMIGA_MAKINGLIB) )
6 extern void *GC_amiga_realloc(void *old_object,size_t new_size_in_bytes);
7 # define GC_realloc(a,b) GC_amiga_realloc(a,b)
8 extern void GC_amiga_set_toany(void (*func)(void));
9 extern int GC_amiga_free_space_divisor_inc;
10 extern void *(*GC_amiga_allocwrapper_do) \
11 (size_t size,void *(*AllocFunction)(size_t size2));
12 # define GC_malloc(a) \
13 (*GC_amiga_allocwrapper_do)(a,GC_malloc)
14 # define GC_malloc_atomic(a) \
15 (*GC_amiga_allocwrapper_do)(a,GC_malloc_atomic)
16 # define GC_malloc_uncollectable(a) \
17 (*GC_amiga_allocwrapper_do)(a,GC_malloc_uncollectable)
18 # define GC_malloc_stubborn(a) \
19 (*GC_amiga_allocwrapper_do)(a,GC_malloc_stubborn)
20 # define GC_malloc_atomic_uncollectable(a) \
21 (*GC_amiga_allocwrapper_do)(a,GC_malloc_atomic_uncollectable)
22 # define GC_malloc_ignore_off_page(a) \
23 (*GC_amiga_allocwrapper_do)(a,GC_malloc_ignore_off_page)
24 # define GC_malloc_atomic_ignore_off_page(a) \
25 (*GC_amiga_allocwrapper_do)(a,GC_malloc_atomic_ignore_off_page)
26 # endif /* _AMIGA && !GC_AMIGA_MAKINGLIB */
28 #endif /* GC_AMIGA_REDIRECTS_H */