pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/byacc Fix outputing of union's to y.tab.h when -...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/672189adcd9d
branches:  trunk
changeset: 522423:672189adcd9d
user:      markd <markd%pkgsrc.org@localhost>
date:      Sat Dec 09 02:16:03 2006 +0000

description:
Fix outputing of union's to y.tab.h when -d option given

diffstat:

 devel/byacc/Makefile         |   3 ++-
 devel/byacc/patches/patch-aa |  15 +++++++++++++++
 2 files changed, 17 insertions(+), 1 deletions(-)

diffs (32 lines):

diff -r 9ce39e1cd5ae -r 672189adcd9d devel/byacc/Makefile
--- a/devel/byacc/Makefile      Sat Dec 09 02:06:56 2006 +0000
+++ b/devel/byacc/Makefile      Sat Dec 09 02:16:03 2006 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.5 2006/09/09 02:41:57 obache Exp $
+# $NetBSD: Makefile,v 1.6 2006/12/09 02:16:03 markd Exp $
 #
 
 DISTNAME=      byacc-20040328
+PKGREVISION=   1
 CATEGORIES=    devel
 MASTER_SITES=  ftp://invisible-island.net/byacc/
 EXTRACT_SUFX=  .tgz
diff -r 9ce39e1cd5ae -r 672189adcd9d devel/byacc/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/byacc/patches/patch-aa      Sat Dec 09 02:16:03 2006 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-aa,v 1.1 2006/12/09 02:16:03 markd Exp $
+
+--- output.c.orig      2006-12-08 17:09:10.455919000 +1300
++++ output.c
+@@ -811,8 +811,8 @@ void output_defines(void)
+     if (dflag && unionized)
+     {
+       rewind(union_file);
+-      union_file = tmpfile();
+-      if (union_file == NULL) open_error("union_file");
++      /* union_file = tmpfile();
++      if (union_file == NULL) open_error("union_file"); */
+       while ((c = getc(union_file)) != EOF)
+           putc(c, defines_file);
+       fprintf(defines_file, " YYSTYPE;\nextern YYSTYPE %slval;\n",



Home | Main Index | Thread Index | Old Index