diff options
author | joerg <joerg@pkgsrc.org> | 2020-02-18 16:47:20 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2020-02-18 16:47:20 +0000 |
commit | d5158d3262daf64d1571353f0911adc993efbab7 (patch) | |
tree | fbdd18234d247b5639b8fd3e70d6022e2808cfee /comms/tn3270/patches | |
parent | f0a880ff1bbc91723117cfb9a8c13c6e8923e78c (diff) | |
download | pkgsrc-d5158d3262daf64d1571353f0911adc993efbab7.tar.gz |
Fix YYDEBUG usage.
Diffstat (limited to 'comms/tn3270/patches')
-rw-r--r-- | comms/tn3270/patches/patch-tools_mkmake_mkmake.y | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/comms/tn3270/patches/patch-tools_mkmake_mkmake.y b/comms/tn3270/patches/patch-tools_mkmake_mkmake.y index e86822eee4c..4d1d4f2bfc5 100644 --- a/comms/tn3270/patches/patch-tools_mkmake_mkmake.y +++ b/comms/tn3270/patches/patch-tools_mkmake_mkmake.y @@ -1,7 +1,9 @@ -$NetBSD: patch-tools_mkmake_mkmake.y,v 1.2 2015/11/07 23:47:52 dholland Exp $ +$NetBSD: patch-tools_mkmake_mkmake.y,v 1.3 2020/02/18 16:47:20 joerg Exp $ - use standard headers - avoid symbol name collision on OpenBSD where clock() from time.h leaks in +- YYDEBUG is always defined in newer byacc versions, so check for non-0 + value instead --- tools/mkmake/mkmake.y.orig 2010-01-17 18:00:07.000000000 +0000 +++ tools/mkmake/mkmake.y @@ -24,3 +26,27 @@ $NetBSD: patch-tools_mkmake_mkmake.y,v 1.2 2015/11/07 23:47:52 dholland Exp $ /* mkmake.y */ void yyerror(char *); void assign(same_t *, same_t *); +@@ -957,7 +962,7 @@ yylex() + return token_type(buffer); \ + } + #define save(c) { last_char = c; last_saved = 1; } +-#if defined(YYDEBUG) ++#if YYDEBUG - 0 + #define Return(y,c) if (yydebug) { \ + printf("[%d]", c); \ + fflush(stdout); \ +@@ -1096,12 +1101,14 @@ do_dump() + string_t *string; + same_t *same, *same2; + ++#if YYDEBUG - 0 + if (yydebug > 1) { + printf("strings...\n"); + for (string = strings; string; string = string->next) { + printf("\t%s\n", string->string); + } + } ++#endif + + printf("# variables...\n"); + for (visit(variables, same); !visited(same); visit_next(same)) { |