summaryrefslogtreecommitdiff
path: root/tests/jstest1.gperf
diff options
context:
space:
mode:
Diffstat (limited to 'tests/jstest1.gperf')
-rw-r--r--tests/jstest1.gperf11
1 files changed, 3 insertions, 8 deletions
diff --git a/tests/jstest1.gperf b/tests/jstest1.gperf
index f6696b1..7358f3d 100644
--- a/tests/jstest1.gperf
+++ b/tests/jstest1.gperf
@@ -54,12 +54,7 @@ with
%%
#include <stdlib.h>
#include <string.h>
-#if defined(__STDC__) || defined(__cplusplus)
-#define CONST const
-#else
-#define CONST
-#endif
-static CONST char* testdata[] = {
+static const char* testdata[] = {
"bogus",
"abstract",
"boolean",
@@ -121,9 +116,9 @@ int main ()
for (i = 0; i < sizeof(testdata)/sizeof(testdata[0]); i++)
{
#ifdef CPLUSPLUS_TEST
- CONST char * resword = Perfect_Hash::in_word_set(testdata[i],strlen(testdata[i]));
+ const char * resword = Perfect_Hash::in_word_set(testdata[i],strlen(testdata[i]));
#else
- CONST char * resword = in_word_set(testdata[i],strlen(testdata[i]));
+ const char * resword = in_word_set(testdata[i],strlen(testdata[i]));
#endif
if (i > 0)
{