summaryrefslogtreecommitdiff
path: root/tests/testsuite.h
diff options
context:
space:
mode:
authorAkim Demaille <akim.demaille@gmail.com>2019-11-02 22:01:14 +0100
committerAkim Demaille <akim.demaille@gmail.com>2019-11-03 10:32:22 +0100
commitdcd5bb26e3a8ddb0892e17ec6240b8c09d605e05 (patch)
treee89f77b3bcff94a32273f1dcb8303a18912bc352 /tests/testsuite.h
parentcce6c998b6c696ce5d289db1a34cecab2782a2c9 (diff)
downloadbison-dcd5bb26e3a8ddb0892e17ec6240b8c09d605e05.tar.gz
tests: simplify prologue
* tests/testsuite.h: We no longer load gnulib in the tests.
Diffstat (limited to 'tests/testsuite.h')
-rw-r--r--tests/testsuite.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/testsuite.h b/tests/testsuite.h
index 3a2a3626..46e99dfe 100644
--- a/tests/testsuite.h
+++ b/tests/testsuite.h
@@ -1,11 +1,10 @@
-/* We don't need perfect functions for these tests. */
-#undef malloc
-#undef memcmp
-#undef realloc
+/* Common definitions to include in the generated parsers. See
+ AT_DATA_SOURCE_PROLOGUE. */
/* In C++ pre C++11 it is standard practice to use 0 for the null
pointer. But GCC -std=c++98 with -Wzero-as-null-pointer-constant
- warns about this. Warning introduced in GCC 4.7. */
+ warns about this, although this is just no alternative! Warning
+ introduced in GCC 4.7. */
#if defined __cplusplus && __cplusplus < 201103L
# if defined __GNUC__ && ! defined __clang__ && 407 <= __GNUC__ * 100 + __GNUC_MINOR__
# pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant"