comparison src/ralloc.c @ 1799:19c89a2e24b6

[xemacs-hg @ 2003-11-20 16:04:45 by james] Autodetect the typeof extension.
author james
date Thu, 20 Nov 2003 16:04:47 +0000
parents 6fcd90c626a7
children 3d8143fc88e1
comparison
equal deleted inserted replaced
1798:5d1a9259f2cb 1799:19c89a2e24b6
1125 return; 1125 return;
1126 1126
1127 r_alloc_initialized = 1; 1127 r_alloc_initialized = 1;
1128 real_morecore = (POINTER (*) (ptrdiff_t)) __morecore; 1128 real_morecore = (POINTER (*) (ptrdiff_t)) __morecore;
1129 __morecore = 1129 __morecore =
1130 #if defined (__GNUC__) || defined (__ICC) 1130 #ifdef TYPEOF
1131 (__typeof__ (__morecore)) 1131 (TYPEOF (__morecore))
1132 #endif 1132 #endif
1133 r_alloc_sbrk; 1133 r_alloc_sbrk;
1134 1134
1135 first_heap = last_heap = &heap_base; 1135 first_heap = last_heap = &heap_base;
1136 first_heap->next = first_heap->prev = NIL_HEAP; 1136 first_heap->next = first_heap->prev = NIL_HEAP;
1183 infinite loop, in case Emacs was linked statically. */ 1183 infinite loop, in case Emacs was linked statically. */
1184 if ( (POINTER (*) (ptrdiff_t)) __morecore != r_alloc_sbrk) 1184 if ( (POINTER (*) (ptrdiff_t)) __morecore != r_alloc_sbrk)
1185 { 1185 {
1186 real_morecore = (POINTER (*) (ptrdiff_t)) __morecore; 1186 real_morecore = (POINTER (*) (ptrdiff_t)) __morecore;
1187 __morecore = 1187 __morecore =
1188 #if defined (__GNUC__) || defined (__ICC) 1188 #ifdef TYPEOF
1189 (__typeof__ (__morecore)) 1189 (TYPEOF (__morecore))
1190 #endif 1190 #endif
1191 r_alloc_sbrk; 1191 r_alloc_sbrk;
1192 } 1192 }
1193 } 1193 }
1194 #if 0 1194 #if 0