diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2012-03-29 10:10:41 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2012-03-29 10:10:41 +0000 |
commit | 8015dfe298b7c7af87f89f1b6598436b47d8f005 (patch) | |
tree | 9568698b957d6644b7dee2ca0acbb1a7ad57ac6a /Build/source/texk/dvipdfmx/dvipdfmx-20110311-PATCHES | |
parent | df5d9d2d6d09548200bb7d211c37dddc9ea9144c (diff) |
(x)dvipdfmx: Remove all extern decls from *.c files
git-svn-id: svn://tug.org/texlive/trunk@25774 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvipdfmx/dvipdfmx-20110311-PATCHES')
-rw-r--r-- | Build/source/texk/dvipdfmx/dvipdfmx-20110311-PATCHES/ChangeLog | 10 | ||||
-rw-r--r-- | Build/source/texk/dvipdfmx/dvipdfmx-20110311-PATCHES/patch-08-extern | 67 |
2 files changed, 77 insertions, 0 deletions
diff --git a/Build/source/texk/dvipdfmx/dvipdfmx-20110311-PATCHES/ChangeLog b/Build/source/texk/dvipdfmx/dvipdfmx-20110311-PATCHES/ChangeLog index a0579a900f3..6a6bb5806a1 100644 --- a/Build/source/texk/dvipdfmx/dvipdfmx-20110311-PATCHES/ChangeLog +++ b/Build/source/texk/dvipdfmx/dvipdfmx-20110311-PATCHES/ChangeLog @@ -1,3 +1,13 @@ +2012-03-29 Peter Breitenlohner <peb@mppmu.mpg.de> + + * patch-08-extern (new): Remove extern decls from *.c files. + * dpxfile.c: Drop obsolete comment that mkstemp may not be + declared in stdlib.h. + * spc_color.c: Drop 'extern' from function definition. + * error.h: ANSI C prototype for error_cleanup(). + * error.c: Drop extern decl, now in error.h. + * dvipdfmx.c: Add '#include "error.h"' and drop extern decl. + 2012-03-05 Peter Breitenlohner <peb@mppmu.mpg.de> * patch-07-surrogates (new): Handle UTP-16 surrogates for UCS-4 diff --git a/Build/source/texk/dvipdfmx/dvipdfmx-20110311-PATCHES/patch-08-extern b/Build/source/texk/dvipdfmx/dvipdfmx-20110311-PATCHES/patch-08-extern new file mode 100644 index 00000000000..b5087a90e7f --- /dev/null +++ b/Build/source/texk/dvipdfmx/dvipdfmx-20110311-PATCHES/patch-08-extern @@ -0,0 +1,67 @@ + Remove extern decls from *.c files. + +diff -ur dvipdfmx-20110311.orig/src/dpxfile.c dvipdfmx-20110311/src/dpxfile.c +--- dvipdfmx-20110311.orig/src/dpxfile.c 2011-06-06 09:50:11.000000000 +0200 ++++ dvipdfmx-20110311/src/dpxfile.c 2012-03-29 11:39:16.000000000 +0200 +@@ -744,13 +744,8 @@ + + #ifdef HAVE_MKSTEMP + # include <stdlib.h> +-/* extern int mkstemp(const char *); */ + #endif + +-/* Please fix: GCC warning +- * warning: implicit declaration of function `mkstemp' +- * mkstemp may not be declared in stdlib.h. +- */ + char * + dpx_create_temp_file (void) + { +diff -ur dvipdfmx-20110311.orig/src/dvipdfmx.c dvipdfmx-20110311/src/dvipdfmx.c +--- dvipdfmx-20110311.orig/src/dvipdfmx.c 2011-03-08 03:08:35.000000000 +0100 ++++ dvipdfmx-20110311/src/dvipdfmx.c 2012-03-29 11:46:06.000000000 +0200 +@@ -59,7 +59,7 @@ + #include "dvipdfmx.h" + #include "xbb.h" + +-extern void error_cleanup (void); ++#include "error.h" + + int compat_mode = 0; /* 0 = dvipdfmx, 1 = dvipdfm */ + +diff -ur dvipdfmx-20110311.orig/src/error.c dvipdfmx-20110311/src/error.c +--- dvipdfmx-20110311.orig/src/error.c 2011-03-05 05:44:49.000000000 +0100 ++++ dvipdfmx-20110311/src/error.c 2012-03-29 11:46:14.000000000 +0200 +@@ -73,8 +73,6 @@ + } + } + +-extern void error_cleanup (void); +- + void + ERROR (const char *fmt, ...) + { +diff -ur dvipdfmx-20110311.orig/src/error.h dvipdfmx-20110311/src/error.h +--- dvipdfmx-20110311.orig/src/error.h 2011-03-05 05:44:49.000000000 +0100 ++++ dvipdfmx-20110311/src/error.h 2012-03-29 11:45:20.000000000 +0200 +@@ -27,7 +27,7 @@ + + #include "system.h" + +-extern void error_cleanup(); ++extern void error_cleanup (void); + + #define FATAL_ERROR -1 + #define NO_ERROR 0 +diff -ur dvipdfmx-20110311.orig/src/spc_color.c dvipdfmx-20110311/src/spc_color.c +--- dvipdfmx-20110311.orig/src/spc_color.c 2011-03-06 04:14:15.000000000 +0100 ++++ dvipdfmx-20110311/src/spc_color.c 2012-03-29 11:37:55.000000000 +0200 +@@ -140,7 +140,7 @@ + return r; + } + +-extern int ++int + spc_color_setup_handler (struct spc_handler *sph, + struct spc_env *spe, struct spc_arg *ap) + { |