Mercurial > hg > xemacs-beta
comparison src/emacs.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 | 9c872f33ecbe |
comparison
equal
deleted
inserted
replaced
1798:5d1a9259f2cb | 1799:19c89a2e24b6 |
---|---|
3336 voodoo_free_hook (void *mem) | 3336 voodoo_free_hook (void *mem) |
3337 { | 3337 { |
3338 /* Disable all calls to free() when XEmacs is exiting and it doesn't */ | 3338 /* Disable all calls to free() when XEmacs is exiting and it doesn't */ |
3339 /* matter. */ | 3339 /* matter. */ |
3340 __free_hook = | 3340 __free_hook = |
3341 #if defined (__GNUC__) || defined (__ICC) | 3341 #ifdef TYPEOF |
3342 /* prototype of __free_hook varies with glibc version */ | 3342 /* prototype of __free_hook varies with glibc version */ |
3343 (__typeof__ (__free_hook)) | 3343 (TYPEOF (__free_hook)) |
3344 #endif | 3344 #endif |
3345 voodoo_free_hook; | 3345 voodoo_free_hook; |
3346 } | 3346 } |
3347 #endif /* GNU_MALLOC */ | 3347 #endif /* GNU_MALLOC */ |
3348 | 3348 |
3402 | 3402 |
3403 shut_down_emacs (0, STRINGP (arg) ? arg : Qnil, 0); | 3403 shut_down_emacs (0, STRINGP (arg) ? arg : Qnil, 0); |
3404 | 3404 |
3405 #if defined (GNU_MALLOC) | 3405 #if defined (GNU_MALLOC) |
3406 __free_hook = | 3406 __free_hook = |
3407 #if defined (__GNUC__) || defined (__ICC) | 3407 #ifdef TYPEOF |
3408 /* prototype of __free_hook varies with glibc version */ | 3408 /* prototype of __free_hook varies with glibc version */ |
3409 (__typeof__ (__free_hook)) | 3409 (TYPEOF (__free_hook)) |
3410 #endif | 3410 #endif |
3411 voodoo_free_hook; | 3411 voodoo_free_hook; |
3412 #endif | 3412 #endif |
3413 | 3413 |
3414 exit (INTP (arg) ? XINT (arg) : 0); | 3414 exit (INTP (arg) ? XINT (arg) : 0); |