summaryrefslogtreecommitdiff
path: root/print/dvipsk/patches/patch-ab
blob: 4b26418c855e94f381079b3d680b2aa5c1ece07e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
$NetBSD: patch-ab,v 1.1 2009/07/15 18:56:44 roy Exp $

Rename getline to texlive_getline to avoid conflict with system getline.

--- afm2tfm.c.orig	2009-07-15 19:52:45.000000000 +0100
+++ afm2tfm.c	2009-07-15 19:54:08.000000000 +0100
@@ -260,7 +260,7 @@
 }
 
 int
-getline P1H(void) {
+texlive_getline P1H(void) {
    register char *p ;
    register int c ;
 
@@ -615,7 +615,7 @@
    ai = newchar() ;
    ai->adobenum = -1 ;
    ai->adobename = "||" ; /* boundary character name */
-   while (getline()) {
+   while (texlive_getline()) {
       switch(interest(paramstring())) {
 case FontName:
          fontname = paramnewstring() ;
@@ -1891,7 +1891,7 @@
 
    while (1) {
       while (param == 0 || *param == 0) {
-         if (getline() == 0)
+         if (texlive_getline() == 0)
             error("! premature end in encoding file") ;
          for (p=buffer; *p; p++)
             if (*p == '%') {
@@ -1982,7 +1982,7 @@
       p = gettoken() ;
       if (strcmp(p, "]"))
          error("! token 258 in encoding must be make-array (])") ;
-      while (getline()) {
+      while (texlive_getline()) {
          for (p=buffer; *p; p++)
             if (*p == '%') {
                if (ignoreligkern == 0)