svn commit: r308012 - head/print/dviselect/files
Pietro Cerutti
gahr at FreeBSD.org
Fri Nov 30 14:02:20 UTC 2012
Author: gahr
Date: Fri Nov 30 14:02:19 2012
New Revision: 308012
URL: http://svnweb.freebsd.org/changeset/ports/308012
Log:
- Fix build with clang
Feature safe: yes
Added:
head/print/dviselect/files/patch-lib::rotate.c (contents, props changed)
Modified:
head/print/dviselect/files/patch-aa (contents, props changed)
head/print/dviselect/files/patch-lib::pkfont.c (contents, props changed)
head/print/dviselect/files/patch-lib::tfmfont.c (contents, props changed)
Modified: head/print/dviselect/files/patch-aa
==============================================================================
--- head/print/dviselect/files/patch-aa Fri Nov 30 13:53:05 2012 (r308011)
+++ head/print/dviselect/files/patch-aa Fri Nov 30 14:02:19 2012 (r308012)
@@ -1,5 +1,5 @@
---- dviselect.c~ Wed Nov 15 13:19:15 1989
-+++ dviselect.c Mon Jul 3 00:38:25 2000
+--- dviselect.c.orig 1989-11-15 13:19:15.000000000 +0100
++++ dviselect.c 2012-11-30 14:56:42.000000000 +0100
@@ -122,7 +122,6 @@
/* save some string space: we use this a lot */
char writeerr[] = "error writing DVI file";
@@ -8,3 +8,37 @@
/*
* lint gets rather confused with the current definitions of getc and putc,
+@@ -136,6 +135,9 @@
+ #define getc(f) (*(f)->_ptr++)
+ #endif
+
++void HandleDVIFile (void);
++void EndPage (void);
++
+ /*
+ * Return true iff the 10 \counts are one of the desired output pages.
+ */
+@@ -190,6 +192,7 @@
+ /*
+ * Start a page (process a DVI_BOP).
+ */
++void
+ BeginPage()
+ {
+ register i32 *i;
+@@ -243,6 +246,7 @@
+ /*
+ * End a page (process a DVI_EOP).
+ */
++void
+ EndPage()
+ {
+ if (!ExpectEOP)
+@@ -815,6 +819,7 @@
+ * output DVI file. We also keep track of font changes, handle font
+ * definitions, and perform some other housekeeping.
+ */
++void
+ HandleDVIFile()
+ {
+ register int c, l;
Modified: head/print/dviselect/files/patch-lib::pkfont.c
==============================================================================
--- head/print/dviselect/files/patch-lib::pkfont.c Fri Nov 30 13:53:05 2012 (r308011)
+++ head/print/dviselect/files/patch-lib::pkfont.c Fri Nov 30 14:02:19 2012 (r308012)
@@ -1,5 +1,14 @@
---- lib/pkfont.c.orig Wed Nov 15 13:19:52 1989
-+++ lib/pkfont.c Wed Dec 13 23:01:34 2006
+--- lib/pkfont.c.orig 1989-11-15 13:19:52.000000000 +0100
++++ lib/pkfont.c 2012-11-30 14:59:23.000000000 +0100
+@@ -183,7 +183,7 @@
+ /*
+ * Skip over special commands (PK_XXX?, PK_YYY).
+ */
+-static
++static void
+ skip_specials(f)
+ struct font *f;
+ {
@@ -781,8 +781,8 @@
if (pk != NULL) {
free(pk->pk_base); pk -> pk_base = 0;
Added: head/print/dviselect/files/patch-lib::rotate.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/print/dviselect/files/patch-lib::rotate.c Fri Nov 30 14:02:19 2012 (r308012)
@@ -0,0 +1,10 @@
+--- lib/rotate.c.orig 2012-11-30 14:57:39.000000000 +0100
++++ lib/rotate.c 2012-11-30 14:58:50.000000000 +0100
+@@ -31,6 +31,7 @@
+ /*
+ * Set the rotation of glyph g to r.
+ */
++void
+ SetRotation(g, r)
+ register struct glyph *g;
+ int r;
Modified: head/print/dviselect/files/patch-lib::tfmfont.c
==============================================================================
--- head/print/dviselect/files/patch-lib::tfmfont.c Fri Nov 30 13:53:05 2012 (r308011)
+++ head/print/dviselect/files/patch-lib::tfmfont.c Fri Nov 30 14:02:19 2012 (r308012)
@@ -1,5 +1,5 @@
---- lib/tfmfont.c~ Wed Nov 15 13:20:03 1989
-+++ lib/tfmfont.c Wed Dec 13 23:04:06 2006
+--- lib/tfmfont.c.orig 1989-11-15 13:20:03.000000000 +0100
++++ lib/tfmfont.c 2012-11-30 15:00:41.000000000 +0100
@@ -139,7 +139,7 @@
fail:
(void) fclose(fd);
@@ -9,3 +9,12 @@
}
return (-1);
}
+@@ -199,7 +199,7 @@
+ #define EDGE 2
+
+ if (tfm->tfm_edge == 0)
+- return;
++ return (-1);
+ if (tfm->tfm_edge != 2) panic("tfm_rasterise");
+ for (i = l; i < h; i++) {
+ g = f->f_gly[i];
More information about the svn-ports-head
mailing list