summaryrefslogtreecommitdiff
path: root/print/pslib
diff options
context:
space:
mode:
authortnn <tnn@pkgsrc.org>2009-10-31 14:24:14 +0000
committertnn <tnn@pkgsrc.org>2009-10-31 14:24:14 +0000
commit01c318db2b5ccdd1b9f6b4eb442457a509e5f4a1 (patch)
tree7a60ab417a4da27d053fa0db9e2ec6ef80b22ddc /print/pslib
parent8bf7365e1ebbd4467764d4424f8e677fe87ec6f0 (diff)
downloadpkgsrc-01c318db2b5ccdd1b9f6b4eb442457a509e5f4a1.tar.gz
getline -> get_line
Diffstat (limited to 'print/pslib')
-rw-r--r--print/pslib/distinfo3
-rw-r--r--print/pslib/patches/patch-aa49
2 files changed, 51 insertions, 1 deletions
diff --git a/print/pslib/distinfo b/print/pslib/distinfo
index cfcff364322..7599ffc30fd 100644
--- a/print/pslib/distinfo
+++ b/print/pslib/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.1.1.1 2005/08/19 16:05:03 drochner Exp $
+$NetBSD: distinfo,v 1.2 2009/10/31 14:26:30 tnn Exp $
SHA1 (pslib-0.2.6.tar.gz) = 0bcd220fa30a3faec9dd1860434c62596043aa8a
RMD160 (pslib-0.2.6.tar.gz) = 14afdfdca94d752499d0d38b946d3b5f469b34ae
Size (pslib-0.2.6.tar.gz) = 486812 bytes
+SHA1 (patch-aa) = 3c536e0f4f3931a4f49c96365ce0a080df1ee6af
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)