From 7d21fec7d95839ea07c4389232b1f2e4c5fc8251 Mon Sep 17 00:00:00 2001 From: Andreas Schlick Date: Sat, 2 Apr 2011 12:01:51 +1030 Subject: [PATCH] configurator: Remove the now unneeded test for nested functions. --- config.h | 1 - tools/configurator/configurator.c | 7 ------- 2 files changed, 8 deletions(-) diff --git a/config.h b/config.h index da831e08..3b5823ce 100644 --- a/config.h +++ b/config.h @@ -36,7 +36,6 @@ #define HAVE_MEMMEM 1 #define HAVE_MMAP 1 #define HAVE_QSORT_R_PRIVATE_LAST 1 -#define HAVE_NESTED_FUNCTIONS 1 #define HAVE_STACK_GROWS_UPWARDS 0 #define HAVE_STATEMENT_EXPR 1 #define HAVE_TYPEOF 1 diff --git a/tools/configurator/configurator.c b/tools/configurator/configurator.c index b316c786..3d2b16f5 100644 --- a/tools/configurator/configurator.c +++ b/tools/configurator/configurator.c @@ -134,13 +134,6 @@ static struct test tests[] = { " qsort_r(array, 3, sizeof(int), cmp, &called);\n" " return called && array[0] == 2 && array[1] == 5 && array[2] == 9 ? 0 : 1;\n" "}\n" }, - { "HAVE_NESTED_FUNCTIONS", DEFINES_FUNC, NULL, - "void (*func(int val))(int);\n" - "void (*func(int val))(int) {\n" - " auto void add(int val2);\n" - " void add(int val2) { val += val2; }\n" - " return add;\n" - "}\n" }, { "HAVE_STACK_GROWS_UPWARDS", DEFINES_EVERYTHING|EXECUTE, NULL, "static long nest(const void *base, unsigned int i)\n" "{\n" -- 2.39.2