pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/print/rtf2latex ISO C says, stdin is not a valid rvalu...
details: https://anonhg.NetBSD.org/pkgsrc/rev/0337f70f1e34
branches: trunk
changeset: 505802:0337f70f1e34
user: joerg <joerg%pkgsrc.org@localhost>
date: Sun Jan 08 00:03:57 2006 +0000
description:
ISO C says, stdin is not a valid rvalue on global scope. Move the init
into RTFInit, if rtffp is still NULL.
diffstat:
print/rtf2latex/distinfo | 3 ++-
print/rtf2latex/patches/patch-aa | 23 +++++++++++++++++++++++
2 files changed, 25 insertions(+), 1 deletions(-)
diffs (38 lines):
diff -r 15e5c6d85582 -r 0337f70f1e34 print/rtf2latex/distinfo
--- a/print/rtf2latex/distinfo Sat Jan 07 23:59:46 2006 +0000
+++ b/print/rtf2latex/distinfo Sun Jan 08 00:03:57 2006 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.3 2005/02/24 12:51:44 agc Exp $
+$NetBSD: distinfo,v 1.4 2006/01/08 00:03:57 joerg Exp $
SHA1 (rtf2LaTeX.1.5.tar.gz) = dcf8c2ce49928bd38ce03aad1f5fda09381fd45e
RMD160 (rtf2LaTeX.1.5.tar.gz) = d319753192d890937606e77a75097f430e676684
Size (rtf2LaTeX.1.5.tar.gz) = 52075 bytes
+SHA1 (patch-aa) = 5e12460d669383082fcd625157231fd08607a9b6
diff -r 15e5c6d85582 -r 0337f70f1e34 print/rtf2latex/patches/patch-aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/print/rtf2latex/patches/patch-aa Sun Jan 08 00:03:57 2006 +0000
@@ -0,0 +1,23 @@
+$NetBSD: patch-aa,v 1.1 2006/01/08 00:03:57 joerg Exp $
+
+--- reader.c.orig 2006-01-07 23:52:57.000000000 +0000
++++ reader.c
+@@ -118,7 +118,7 @@ static RTFColor *colorList = (RTFColor *
+ static RTFStyle *styleList = (RTFStyle *) NULL;
+
+
+-static FILE *rtffp = stdin;
++static FILE *rtffp;
+
+
+ /*
+@@ -135,6 +135,9 @@ RTFFont *fp;
+ RTFStyle *sp;
+ RTFStyleElt *eltList, *ep;
+
++ if (rtffp == NULL)
++ rtffp = stdin;
++
+ /* initialize lookup table */
+ LookupInit ();
+
Home |
Main Index |
Thread Index |
Old Index