svn commit: r415642 - head/print/t1utils/files

Baptiste Daroussin bapt at FreeBSD.org
Sun May 22 16:55:24 UTC 2016


Author: bapt
Date: Sun May 22 16:55:23 2016
New Revision: 415642
URL: https://svnweb.freebsd.org/changeset/ports/415642

Log:
  Prevent collision with getline(3)

Added:
  head/print/t1utils/files/
  head/print/t1utils/files/patch-t1asm.c   (contents, props changed)

Added: head/print/t1utils/files/patch-t1asm.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/print/t1utils/files/patch-t1asm.c	Sun May 22 16:55:23 2016	(r415642)
@@ -0,0 +1,29 @@
+--- t1asm.c.orig	2004-01-24 02:28:23 UTC
++++ t1asm.c
+@@ -280,7 +280,7 @@ static int check_line_charstring()
+    the newline is put into line[]. When terminated by '{', the '{' is not put
+    into line[], and the flag start_charstring is set to 1. */
+ 
+-static void getline()
++static void get_line()
+ {
+   int c;
+   char *p = line;
+@@ -725,7 +725,7 @@ particular purpose.\n");
+      without /Subrs sections and provided a patch. */
+   
+   while (!feof(ifp) && !ferror(ifp)) {
+-    getline();
++    get_line();
+     
+     if (!ever_active) {
+       if (strncmp(line, "currentfile eexec", 17) == 0 && isspace(line[17])) {
+@@ -796,7 +796,7 @@ particular purpose.\n");
+   
+   /* There may be additional code. */
+   while (!feof(ifp) && !ferror(ifp)) {
+-    getline();
++    get_line();
+     eexec_string(line);
+   }
+   


More information about the svn-ports-all mailing list