summaryrefslogtreecommitdiff
path: root/print/pslib/patches
diff options
context:
space:
mode:
authortnn <tnn>2009-10-31 14:24:14 +0000
committertnn <tnn>2009-10-31 14:24:14 +0000
commit7bc3d0f1507ed726ba2c643d61d0c5c4333ee651 (patch)
tree7a60ab417a4da27d053fa0db9e2ec6ef80b22ddc /print/pslib/patches
parentb21eb7619652825c2f82709b2d1961b4beb1e778 (diff)
downloadpkgsrc-7bc3d0f1507ed726ba2c643d61d0c5c4333ee651.tar.gz
getline -> get_line
Diffstat (limited to 'print/pslib/patches')
-rw-r--r--print/pslib/patches/patch-aa49
1 files changed, 49 insertions, 0 deletions
diff --git a/print/pslib/patches/patch-aa b/print/pslib/patches/patch-aa
new file mode 100644
index 00000000000..cde317a9c3c
--- /dev/null
+++ b/print/pslib/patches/patch-aa
@@ -0,0 +1,49 @@
+$NetBSD: patch-aa,v 1.1 2009/10/31 14:26:31 tnn Exp $
+
+--- src/ps_afm.c.orig 2004-07-22 08:01:26.000000000 +0200
++++ src/ps_afm.c
+@@ -136,7 +136,7 @@ static int transform(int x, int y) {
+ return (int)(acc>=0? floor(acc+0.5) : ceil(acc-0.5) ) ;
+ }
+
+-static int getline(FILE *afmin) {
++static int get_line(FILE *afmin) {
+ char *p ;
+ int c ;
+
+@@ -566,7 +566,7 @@ int readprotusion(PSDoc *psdoc, PSFont *
+ return(-1);
+ }
+
+- while (getline(fp)) {
++ while (get_line(fp)) {
+ switch(interest(paramstring())) {
+ case N:
+ handleprotusion(psdoc, metrics) ;
+@@ -614,7 +614,7 @@ ADOBEFONTMETRIC *readadobe(PSDoc *psdoc,
+ /*
+ * Read file line by line.
+ */
+- while (getline(metric->afmin)) {
++ while (get_line(metric->afmin)) {
+ switch(interest(paramstring())) {
+ case FontName:
+ metric->fontname = paramnewstring(psdoc) ;
+@@ -972,7 +972,7 @@ static char *gettoken(PSDoc *psdoc, ADOB
+
+ while (1) {
+ while (param == NULL || *param == '\0') {
+- if (getline(metrics->afmin) == 0)
++ if (get_line(metrics->afmin) == 0)
+ ps_error(psdoc, PS_RuntimeError, _("Premature end of encoding file."));
+ for (p=buffer; *p != '\0'; p++)
+ if (*p == '%') {
+@@ -1093,7 +1093,7 @@ int readencoding(PSDoc *psdoc, ADOBEFONT
+ psdoc->free(psdoc, e);
+ return -1;
+ }
+- while (getline(metrics->afmin)) {
++ while (get_line(metrics->afmin)) {
+ for (p=buffer; *p != '\0'; p++)
+ if (*p == '%') {
+ if (ignoreligkern == 0)