summaryrefslogtreecommitdiff
path: root/perly.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2012-10-01 20:05:45 -0700
committerFather Chrysostomos <sprout@cpan.org>2012-10-01 20:05:45 -0700
commit599f1ac692fbcd2f05eab0e72ec4e403f9763412 (patch)
tree3e7bdd3f8456c39d562b18388fc7681741fedae4 /perly.c
parent5888debfcd08c957bbb6bd8c3ff0fe24b6347c34 (diff)
downloadperl-599f1ac692fbcd2f05eab0e72ec4e403f9763412.tar.gz
perly.c: Disarm the YYDEBUG defines in perly.h
See <craigberry-E9C729.16313730092012@cpc2-bmly6-0-0-cust974.2-3.cable.virginmedia.com>. Move the YYDEBUG defines in perly.c back where they were before, but undefine YYDEBUG first. That leaves bison 2.6’s YYDEBUG defines in perly.h harmless.
Diffstat (limited to 'perly.c')
-rw-r--r--perly.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/perly.c b/perly.c
index 0f1b7a88f9..d17f19b78a 100644
--- a/perly.c
+++ b/perly.c
@@ -27,13 +27,6 @@
#include "EXTERN.h"
#define PERL_IN_PERLY_C
-
-#ifdef DEBUGGING
-# define YYDEBUG 1
-#else
-# define YYDEBUG 0
-#endif
-
#include "perl.h"
typedef unsigned char yytype_uint8;
@@ -45,6 +38,15 @@ typedef signed char yysigned_char;
/* YYINITDEPTH -- initial size of the parser's stacks. */
#define YYINITDEPTH 200
+#ifdef YYDEBUG
+# undef YYDEBUG
+#endif
+#ifdef DEBUGGING
+# define YYDEBUG 1
+#else
+# define YYDEBUG 0
+#endif
+
#ifndef YY_NULL
# define YY_NULL 0
#endif