Thu Sep 29 18:20:13 2011 UTC ()
Fix build on NetBSD-current by renaming getline() to get_line().
(wiz)
diff -r1.2 -r1.3 pkgsrc/converters/ja-dvi2tty/distinfo
diff -r0 -r1.1 pkgsrc/converters/ja-dvi2tty/patches/patch-dvistuff.c
--- pkgsrc/converters/ja-dvi2tty/distinfo 2005/02/23 16:12:34 1.2
+++ pkgsrc/converters/ja-dvi2tty/distinfo 2011/09/29 18:20:13 1.3
| @@ -1,11 +1,12 @@ | | | @@ -1,11 +1,12 @@ |
1 | $NetBSD: distinfo,v 1.2 2005/02/23 16:12:34 agc Exp $ | | 1 | $NetBSD: distinfo,v 1.3 2011/09/29 18:20:13 wiz Exp $ |
2 | | | 2 | |
3 | SHA1 (ja-dvi2tty/dvi2tty5.0.tar.gz) = c7476e80626736dc9575fcd9ed25c705bce2addc | | 3 | SHA1 (ja-dvi2tty/dvi2tty5.0.tar.gz) = c7476e80626736dc9575fcd9ed25c705bce2addc |
4 | RMD160 (ja-dvi2tty/dvi2tty5.0.tar.gz) = 0f1af2eec8f2d5134c1c5345f8dfb32aeeb0f571 | | 4 | RMD160 (ja-dvi2tty/dvi2tty5.0.tar.gz) = 0f1af2eec8f2d5134c1c5345f8dfb32aeeb0f571 |
5 | Size (ja-dvi2tty/dvi2tty5.0.tar.gz) = 29087 bytes | | 5 | Size (ja-dvi2tty/dvi2tty5.0.tar.gz) = 29087 bytes |
6 | SHA1 (ja-dvi2tty/dvi2tty-ascii-jtex-patch) = c36516446b6661b1e7052e539bf2297161908463 | | 6 | SHA1 (ja-dvi2tty/dvi2tty-ascii-jtex-patch) = c36516446b6661b1e7052e539bf2297161908463 |
7 | RMD160 (ja-dvi2tty/dvi2tty-ascii-jtex-patch) = 980df6117812e9d6be8fee0c96ef63ee44732772 | | 7 | RMD160 (ja-dvi2tty/dvi2tty-ascii-jtex-patch) = 980df6117812e9d6be8fee0c96ef63ee44732772 |
8 | Size (ja-dvi2tty/dvi2tty-ascii-jtex-patch) = 10270 bytes | | 8 | Size (ja-dvi2tty/dvi2tty-ascii-jtex-patch) = 10270 bytes |
9 | SHA1 (ja-dvi2tty/dvi2tty.c-patch) = a7c54cccc98dacc8d699f63ae99755d8e9e1b871 | | 9 | SHA1 (ja-dvi2tty/dvi2tty.c-patch) = a7c54cccc98dacc8d699f63ae99755d8e9e1b871 |
10 | RMD160 (ja-dvi2tty/dvi2tty.c-patch) = 6fa7f746347d515a80d51494d2e679d810d6c3dc | | 10 | RMD160 (ja-dvi2tty/dvi2tty.c-patch) = 6fa7f746347d515a80d51494d2e679d810d6c3dc |
11 | Size (ja-dvi2tty/dvi2tty.c-patch) = 898 bytes | | 11 | Size (ja-dvi2tty/dvi2tty.c-patch) = 898 bytes |
| | | 12 | SHA1 (patch-dvistuff.c) = 5c4a98380f569a7a96f2969ab84ff6dbace11370 |
$NetBSD: patch-dvistuff.c,v 1.1 2011/09/29 18:20:13 wiz Exp $
Fix conflict with POSIX getline().
--- dvistuff.c.orig 2011-09-29 18:17:16.000000000 +0000
+++ dvistuff.c
@@ -162,7 +162,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);
@@ -188,7 +188,7 @@ void rule ();
void ruleaux ();
long horizontalmove ();
int skipnops ();
-linetype * getline ();
+linetype * get_line ();
linetype * findline ();
unsigned long num ();
long snum ();
@@ -347,7 +347,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;
@@ -810,7 +810,7 @@ int skipnops()
* GETLINE -- Returns an initialized line-object
*/
-linetype *getline()
+linetype *get_line()
{
register int i;
register linetype *temp;
@@ -826,7 +826,7 @@ linetype *getline()
return temp;
-} /* getline */
+} /* get_line */
@@ -842,7 +842,7 @@ linetype *findline()
if (v <= firstline->vv) { /* above first line */
if (firstline->vv - v > lineheight) {
- temp = getline();
+ temp = get_line();
temp->next = firstline;
firstline->prev = temp;
temp->vv = v;
@@ -853,7 +853,7 @@ linetype *findline()
if (v >= lastline->vv) { /* below last line */
if (v - lastline->vv > lineheight) {
- temp = getline();
+ temp = get_line();
temp->prev = lastline;
lastline->next = temp;
temp->vv = v;
@@ -876,7 +876,7 @@ linetype *findline()
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;