pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/converters/dvi2tty Add a patch to avoid conflict with ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/08bee5a6154d
branches: trunk
changeset: 397399:08bee5a6154d
user: taca <taca%pkgsrc.org@localhost>
date: Tue Aug 11 15:01:14 2009 +0000
description:
Add a patch to avoid conflict with getline(3).
diffstat:
converters/dvi2tty/distinfo | 3 +-
converters/dvi2tty/patches/patch-ab | 78 +++++++++++++++++++++++++++++++++++++
2 files changed, 80 insertions(+), 1 deletions(-)
diffs (94 lines):
diff -r 1646860b11b6 -r 08bee5a6154d converters/dvi2tty/distinfo
--- a/converters/dvi2tty/distinfo Tue Aug 11 14:59:09 2009 +0000
+++ b/converters/dvi2tty/distinfo Tue Aug 11 15:01:14 2009 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.4 2005/02/23 16:12:33 agc Exp $
+$NetBSD: distinfo,v 1.5 2009/08/11 15:01:14 taca Exp $
SHA1 (dvi2tty.tar.gz) = 7b62aef389325d87683630869261e14a6e98258e
RMD160 (dvi2tty.tar.gz) = 331f9ca12c1d905ce3ec2963cb970dfbff80848d
Size (dvi2tty.tar.gz) = 30720 bytes
SHA1 (patch-aa) = c6452a3ea322b507b3f7a3c5dc654c0a2b4bfea6
+SHA1 (patch-ab) = 7776499817462f9a1f9dff1c50f876e3dc7de2b1
diff -r 1646860b11b6 -r 08bee5a6154d converters/dvi2tty/patches/patch-ab
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/converters/dvi2tty/patches/patch-ab Tue Aug 11 15:01:14 2009 +0000
@@ -0,0 +1,78 @@
+$NetBSD: patch-ab,v 1.1 2009/08/11 15:01:14 taca Exp $
+
+Avoid confliction with getline(3).
+
+--- dvistuff.c.orig 2009-08-11 23:56:48.000000000 +0900
++++ dvistuff.c
+@@ -123,7 +123,7 @@ void rule (bool, l
+ void ruleaux (long, long, char);
+ long horizontalmove (long);
+ int skipnops (void);
+-linetype * getline (void);
++linetype * get_line (void);
+ linetype * findline (void);
+ unsigned long num (int);
+ long snum (int);
+@@ -148,7 +148,7 @@ void rule ();
+ void ruleaux ();
+ long horizontalmove ();
+ int skipnops ();
+-linetype * getline ();
++linetype * get_line ();
+ linetype * findline ();
+ unsigned long num ();
+ long snum ();
+@@ -290,7 +290,7 @@ void initpage()
+ h = 0L; v = 0L; /* initialize coordinates */
+ x = 0L; w = 0L; y = 0L; z = 0L; /* initialize amounts */
+ sptr = 0; /* initialize stack */
+- currentline = getline(); /* initialize list of lines */
++ currentline = get_line(); /* initialize list of lines */
+ currentline->vv = 0L;
+ firstline = currentline;
+ lastline = currentline;
+@@ -647,7 +647,7 @@ int skipnops() /* s
+
+ /*----------------------------------------------------------------------------*/
+
+-linetype *getline() /* returns an initialized line-object */
++linetype *get_line() /* returns an initialized line-object */
+ {
+ register int i;
+ register linetype *temp;
+@@ -662,7 +662,7 @@ linetype *getline() /* retur
+ temp->text[i] = '\0';
+ return temp;
+
+-} /* getline */
++} /* get_line */
+
+ /*----------------------------------------------------------------------------*/
+
+@@ -673,7 +673,7 @@ linetype *findline() /* find
+
+ if (v <= firstline->vv) { /* above first line */
+ if (firstline->vv - v > VERTICALEPSILON) {
+- temp = getline();
++ temp = get_line();
+ temp->next = firstline;
+ firstline->prev = temp;
+ temp->vv = v;
+@@ -684,7 +684,7 @@ linetype *findline() /* find
+
+ if (v >= lastline->vv) { /* below last line */
+ if (v - lastline->vv > VERTICALEPSILON) {
+- temp = getline();
++ temp = get_line();
+ temp->prev = lastline;
+ lastline->next = temp;
+ temp->vv = v;
+@@ -707,7 +707,7 @@ linetype *findline() /* find
+ return temp->next;
+
+ /* no line fits suitable, generate a new one */
+- currentline = getline();
++ currentline = get_line();
+ currentline->next = temp->next;
+ currentline->prev = temp;
+ temp->next->prev = currentline;
Home |
Main Index |
Thread Index |
Old Index