Skip to content

Commit 599f1ac

Browse files
author
Father Chrysostomos
committed
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.
1 parent 5888deb commit 599f1ac

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

perly.c

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,6 @@
2727

2828
#include "EXTERN.h"
2929
#define PERL_IN_PERLY_C
30-
31-
#ifdef DEBUGGING
32-
# define YYDEBUG 1
33-
#else
34-
# define YYDEBUG 0
35-
#endif
36-
3730
#include "perl.h"
3831

3932
typedef unsigned char yytype_uint8;
@@ -45,6 +38,15 @@ typedef signed char yysigned_char;
4538
/* YYINITDEPTH -- initial size of the parser's stacks. */
4639
#define YYINITDEPTH 200
4740

41+
#ifdef YYDEBUG
42+
# undef YYDEBUG
43+
#endif
44+
#ifdef DEBUGGING
45+
# define YYDEBUG 1
46+
#else
47+
# define YYDEBUG 0
48+
#endif
49+
4850
#ifndef YY_NULL
4951
# define YY_NULL 0
5052
#endif

0 commit comments

Comments
 (0)