diff options
Diffstat (limited to 'Build/source/utils/psutils/psutils-1.17-PATCHES')
-rw-r--r-- | Build/source/utils/psutils/psutils-1.17-PATCHES/ChangeLog | 4 | ||||
-rw-r--r-- | Build/source/utils/psutils/psutils-1.17-PATCHES/patch-11-extern | 44 |
2 files changed, 48 insertions, 0 deletions
diff --git a/Build/source/utils/psutils/psutils-1.17-PATCHES/ChangeLog b/Build/source/utils/psutils/psutils-1.17-PATCHES/ChangeLog index f4bd0e67e6b..4c1555011c5 100644 --- a/Build/source/utils/psutils/psutils-1.17-PATCHES/ChangeLog +++ b/Build/source/utils/psutils/psutils-1.17-PATCHES/ChangeLog @@ -1,3 +1,7 @@ +2012-03-29 Peter Breitenlohner <peb@mppmu.mpg.de> + + * patch-11-extern (new): Remove extern decls from *.c files. + 2011-09-22 Peter Breitenlohner <peb@mppmu.mpg.de> * patch-10-binary-mode (new): Fix error messages when setting diff --git a/Build/source/utils/psutils/psutils-1.17-PATCHES/patch-11-extern b/Build/source/utils/psutils/psutils-1.17-PATCHES/patch-11-extern new file mode 100644 index 00000000000..35cd5e92bd8 --- /dev/null +++ b/Build/source/utils/psutils/psutils-1.17-PATCHES/patch-11-extern @@ -0,0 +1,44 @@ + Remove extern decls from *.c files. + +diff -ur psutils-1.17.orig/epsffit.c psutils-1.17/epsffit.c +--- psutils-1.17.orig/epsffit.c 2009-06-24 00:22:15.000000000 +0200 ++++ psutils-1.17/epsffit.c 2012-03-29 14:25:12.000000000 +0200 +@@ -23,7 +23,7 @@ + + #include "pserror.h" + #include "patchlev.h" +-#include "config.h" ++#include "psutil.h" + + #define MIN(x,y) ((x) > (y) ? (y) : (x)) + #define MAX(x,y) ((x) > (y) ? (x) : (y)) +diff -ur psutils-1.17.orig/pserror.c psutils-1.17/pserror.c +--- psutils-1.17.orig/pserror.c 2009-09-01 13:40:27.000000000 +0200 ++++ psutils-1.17/pserror.c 2012-03-29 14:25:12.000000000 +0200 +@@ -5,8 +5,6 @@ + * Warnings and errors for PS programs + */ + +-extern char *program ; /* Defined by main program, giving program name */ +- + #include "psutil.h" + #include "pserror.h" + #include "patchlev.h" +diff -ur psutils-1.17.orig/psutil.c psutils-1.17/psutil.c +--- psutils-1.17.orig/psutil.c 2009-09-01 13:43:52.000000000 +0200 ++++ psutils-1.17/psutil.c 2012-03-29 14:25:12.000000000 +0200 +@@ -23,14 +23,6 @@ + + #define iscomment(x,y) (strncmp(x,y,strlen(y)) == 0) + +-extern char *program ; +-extern int pages; +-extern int verbose; +-extern FILE *infile; +-extern FILE *outfile; +-extern char pagelabel[BUFSIZ]; +-extern int pageno; +- + static char buffer[BUFSIZ]; + static long bytes = 0; + static long pagescmt = 0; |