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 | |
parent | f0a880ff1bbc91723117cfb9a8c13c6e8923e78c (diff) | |
download | pkgsrc-d5158d3262daf64d1571353f0911adc993efbab7.tar.gz |
Fix YYDEBUG usage.
Diffstat (limited to 'comms')
-rw-r--r-- | comms/tn3270/distinfo | 4 | ||||
-rw-r--r-- | comms/tn3270/patches/patch-tools_mkmake_mkmake.y | 28 |
2 files changed, 29 insertions, 3 deletions
diff --git a/comms/tn3270/distinfo b/comms/tn3270/distinfo index 0abae375217..82e3ad1c5df 100644 --- a/comms/tn3270/distinfo +++ b/comms/tn3270/distinfo @@ -1,8 +1,8 @@ -$NetBSD: distinfo,v 1.6 2015/11/07 23:47:52 dholland Exp $ +$NetBSD: distinfo,v 1.7 2020/02/18 16:47:20 joerg Exp $ SHA1 (tn3270-0.20100116.tar.gz) = b550f2c240aa3b185b935c11ed36e75c8c574503 RMD160 (tn3270-0.20100116.tar.gz) = 59ca2fcaa8f44258eb9cb0069cf17e560754f2c9 SHA512 (tn3270-0.20100116.tar.gz) = 92b89b302b0827b6995c0b04f4642585f93021c5a5e7d30f414ba3fd9314ed019ba35e9a155f0cf7d9c1be7bad37dda44622f9245409a024113358a90005e9b1 Size (tn3270-0.20100116.tar.gz) = 156352 bytes SHA1 (patch-aa) = dfec3563624578dc775f4ec7d0ce813eb9431dce -SHA1 (patch-tools_mkmake_mkmake.y) = 8e9dab56b989f1dc3cfc7a17daf6cf95d2dda886 +SHA1 (patch-tools_mkmake_mkmake.y) = f2d2cb67fae365f91707f1b11a47f24a04411f85 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)) { |