]> granicus.if.org Git - graphviz/commitdiff
Remove unused checks from features/vmalloc
authorErwin Janssen <erwinjanssen@outlook.com>
Thu, 5 Jan 2017 11:16:24 +0000 (12:16 +0100)
committerErwin Janssen <erwinjanssen@outlook.com>
Thu, 5 Jan 2017 11:16:24 +0000 (12:16 +0100)
These checks set defines if they succeed, but these defines are never used.
The checks can therefore be removed.

lib/vmalloc/features/vmalloc
windows/include/FEATURE/vmalloc

index 10d62a8e87944d904eb9ea2f83b3f1c91aa52bdf..9cecdfcdccf5d49d3284fe55ff5238f327f8594f 100644 (file)
@@ -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 <stdio.h>
-        _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
index 21638933f55bc6f41d7b1f601264d9e7934d4abd..1c4e00c1f5b9f425fdc7feac50e2c5e1acec99c8 100644 (file)
@@ -16,7 +16,3 @@
 
 #undef _hdr_malloc
 #define _hdr_malloc    1       /* #include <malloc.h> ok */
-
-#undef _stk_down
-#define _stk_down      1       /* stack grows downward */
-#endif