From 567f839c50207033e488e5f813851352c2043842 Mon Sep 17 00:00:00 2001 From: Erwin Janssen Date: Thu, 5 Jan 2017 12:16:24 +0100 Subject: [PATCH] Remove unused checks from features/vmalloc These checks set defines if they succeed, but these defines are never used. The checks can therefore be removed. --- lib/vmalloc/features/vmalloc | 28 ---------------------------- windows/include/FEATURE/vmalloc | 4 ---- 2 files changed, 32 deletions(-) diff --git a/lib/vmalloc/features/vmalloc b/lib/vmalloc/features/vmalloc index 10d62a8e8..9cecdfcdc 100644 --- a/lib/vmalloc/features/vmalloc +++ b/lib/vmalloc/features/vmalloc @@ -7,14 +7,12 @@ lib getpagesize hdr stat -hdr stdlib sys stat typ ssize_t hdr malloc lib mallopt lib mallinfo lib mstats -hdr dlfcn std malloc note{ stuck with standard malloc }end noexecute{ _BEGIN_EXTERNS_ @@ -28,29 +26,3 @@ std malloc note{ stuck with standard malloc }end noexecute{ _END_EXTERNS_ main() { strdup("yo"); _exit(1); } }end - -stk down note{ stack grows downward }end execute{ - static growdown() - { static char* addr = 0; - char array[4]; - if(!addr) - { addr = &array[0]; - return growdown(); - } - else if(addr < &array[0]) - return 0; - else return 1; - } - main() { return growdown() ? 0 : 1; } -}end - -exit cleanup note{ stuck with standard _cleanup }end execute{ - #include - _BEGIN_EXTERNS_ - extern void exit(int); - extern void _exit(int); - extern void _cleanup(); - void _cleanup() { _exit(0); } - _END_EXTERNS_ - main() { printf("cleanup\n"); exit(1); } -}end diff --git a/windows/include/FEATURE/vmalloc b/windows/include/FEATURE/vmalloc index 21638933f..1c4e00c1f 100644 --- a/windows/include/FEATURE/vmalloc +++ b/windows/include/FEATURE/vmalloc @@ -16,7 +16,3 @@ #undef _hdr_malloc #define _hdr_malloc 1 /* #include ok */ - -#undef _stk_down -#define _stk_down 1 /* stack grows downward */ -#endif -- 2.40.0