summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarrell Anderson <humanreadable@yahoo.com>2012-10-29 20:26:15 -0500
committerDarrell Anderson <humanreadable@yahoo.com>2012-10-29 20:26:15 -0500
commit10f1691760c0f1556b6cc848d3fdeeda6bfbb78e (patch)
tree48863efce7a49a8c2d02bf408a474856cfd27986
parent4aac8354b09902fdfbc1b099ca9a3ad9eca2a1f3 (diff)
downloadtdeutils-10f1691760c0f1556b6cc848d3fdeeda6bfbb78e.tar.gz
tdeutils-10f1691760c0f1556b6cc848d3fdeeda6bfbb78e.zip
Fix some "is not defined" warnings.
-rw-r--r--kregexpeditor/gen_qregexplexer.cpp8
-rw-r--r--kregexpeditor/gen_qregexpparser.cc4
2 files changed, 6 insertions, 6 deletions
diff --git a/kregexpeditor/gen_qregexplexer.cpp b/kregexpeditor/gen_qregexplexer.cpp
index 12dade3..b5ca999 100644
--- a/kregexpeditor/gen_qregexplexer.cpp
+++ b/kregexpeditor/gen_qregexplexer.cpp
@@ -493,7 +493,7 @@ static int input YY_PROTO(( void ));
#endif
#endif
-#if YY_STACK_USED
+#ifdef YY_STACK_USED
static int yy_start_stack_ptr = 0;
static int yy_start_stack_depth = 0;
static int *yy_start_stack = 0;
@@ -1470,10 +1470,10 @@ FILE *file;
b->yy_input_file = file;
b->yy_fill_buffer = 1;
-#if YY_ALWAYS_INTERACTIVE
+#ifdef YY_ALWAYS_INTERACTIVE
b->yy_is_interactive = 1;
#else
-#if YY_NEVER_INTERACTIVE
+#ifdef YY_NEVER_INTERACTIVE
b->yy_is_interactive = 0;
#else
b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
@@ -1764,7 +1764,7 @@ void *ptr;
free( ptr );
}
-#if YY_MAIN
+#ifdef YY_MAIN
int main()
{
yylex();
diff --git a/kregexpeditor/gen_qregexpparser.cc b/kregexpeditor/gen_qregexpparser.cc
index f2ac58a..f72775b 100644
--- a/kregexpeditor/gen_qregexpparser.cc
+++ b/kregexpeditor/gen_qregexpparser.cc
@@ -182,7 +182,7 @@ typedef struct yyltype
/* The parser invokes alloca or malloc; define the necessary symbols. */
-# if YYSTACK_USE_ALLOCA
+# ifdef YYSTACK_USE_ALLOCA
# define YYSTACK_ALLOC alloca
# else
# ifndef YYSTACK_USE_ALLOCA
@@ -569,7 +569,7 @@ int yydebug;
SIZE_MAX < YYSTACK_BYTES (YYMAXDEPTH)
evaluated with infinite-precision integer arithmetic. */
-#if YYMAXDEPTH == 0
+#ifdef YYMAXDEPTH == 0
# undef YYMAXDEPTH
#endif