comparison src/ralloc.c @ 1792:6fcd90c626a7

[xemacs-hg @ 2003-11-14 22:59:23 by james] ICC also understands typeof.
author james
date Fri, 14 Nov 2003 22:59:28 +0000
parents 1b0339b048ce
children 19c89a2e24b6
comparison
equal deleted inserted replaced
1791:a00997930c42 1792:6fcd90c626a7
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 #ifdef __GNUC__ 1130 #if defined (__GNUC__) || defined (__ICC)
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;
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 #ifdef __GNUC__ 1188 #if defined (__GNUC__) || defined (__ICC)
1189 (__typeof__ (__morecore)) 1189 (__typeof__ (__morecore))
1190 #endif 1190 #endif
1191 r_alloc_sbrk; 1191 r_alloc_sbrk;
1192 } 1192 }
1193 } 1193 }