summaryrefslogtreecommitdiff
path: root/Build/source/utils/chktex
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2012-03-29 12:38:06 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2012-03-29 12:38:06 +0000
commit7bf872af277e5b41f5409c2531345b7701d06a4d (patch)
treeb2517289cbe37a79b51993e62b13640446737ccf /Build/source/utils/chktex
parent8015dfe298b7c7af87f89f1b6598436b47d8f005 (diff)
chktex, psutils, xpdfopen: Remove extern decls from *.c files
git-svn-id: svn://tug.org/texlive/trunk@25775 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/chktex')
-rw-r--r--Build/source/utils/chktex/chktex-1.6.4-PATCHES/ChangeLog4
-rw-r--r--Build/source/utils/chktex/chktex-1.6.4-PATCHES/patch-06-extern36
-rw-r--r--Build/source/utils/chktex/chktex-1.6.4/Utility.c7
-rw-r--r--Build/source/utils/chktex/chktex-1.6.4/Utility.h7
4 files changed, 47 insertions, 7 deletions
diff --git a/Build/source/utils/chktex/chktex-1.6.4-PATCHES/ChangeLog b/Build/source/utils/chktex/chktex-1.6.4-PATCHES/ChangeLog
index 2b7e41bb492..9e858f69af0 100644
--- a/Build/source/utils/chktex/chktex-1.6.4-PATCHES/ChangeLog
+++ b/Build/source/utils/chktex/chktex-1.6.4-PATCHES/ChangeLog
@@ -1,3 +1,7 @@
+2012-03-29 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ * patch-06-extern (new): Move decls from Utility.c to Utility.h.
+
2010-06-13 Peter Breitenlohner <peb@mppmu.mpg.de>
* patch-05-ctype-bug (new): Bug fix:
diff --git a/Build/source/utils/chktex/chktex-1.6.4-PATCHES/patch-06-extern b/Build/source/utils/chktex/chktex-1.6.4-PATCHES/patch-06-extern
new file mode 100644
index 00000000000..5772649bed1
--- /dev/null
+++ b/Build/source/utils/chktex/chktex-1.6.4-PATCHES/patch-06-extern
@@ -0,0 +1,36 @@
+ Remove extern decls from *.c files.
+
+diff -ur chktex-1.6.4.orig/Utility.c chktex-1.6.4/Utility.c
+--- chktex-1.6.4.orig/Utility.c 2010-06-13 14:50:28.000000000 +0200
++++ chktex-1.6.4/Utility.c 2012-03-29 14:09:07.000000000 +0200
+@@ -31,13 +31,6 @@
+ #include "Resource.h"
+ #include "OpSys.h"
+
+-#ifdef ASM_HASHWORD
+-extern unsigned short HashWord(const char *a);
+-typedef unsigned short HASH_TYPE;
+-#else
+-typedef unsigned long HASH_TYPE;
+-#endif
+-
+ /***************************** SUPPORT FUNCTIONS ************************/
+
+
+diff -ur chktex-1.6.4.orig/Utility.h chktex-1.6.4/Utility.h
+--- chktex-1.6.4.orig/Utility.h 2010-05-02 21:59:49.000000000 +0200
++++ chktex-1.6.4/Utility.h 2012-03-29 14:09:07.000000000 +0200
+@@ -49,6 +49,13 @@
+ #define FORWL(ind, list) for(ind = 0; ind < (list).Stack.Used; ind++)
+
+
++#ifdef ASM_HASHWORD
++extern unsigned short HashWord(const char *a);
++typedef unsigned short HASH_TYPE;
++#else
++typedef unsigned long HASH_TYPE;
++#endif
++
+ enum Strip
+ {
+ STRP_LFT = 0x01,
diff --git a/Build/source/utils/chktex/chktex-1.6.4/Utility.c b/Build/source/utils/chktex/chktex-1.6.4/Utility.c
index 6fa26f3cd79..dfea57d891e 100644
--- a/Build/source/utils/chktex/chktex-1.6.4/Utility.c
+++ b/Build/source/utils/chktex/chktex-1.6.4/Utility.c
@@ -31,13 +31,6 @@
#include "Resource.h"
#include "OpSys.h"
-#ifdef ASM_HASHWORD
-extern unsigned short HashWord(const char *a);
-typedef unsigned short HASH_TYPE;
-#else
-typedef unsigned long HASH_TYPE;
-#endif
-
/***************************** SUPPORT FUNCTIONS ************************/
diff --git a/Build/source/utils/chktex/chktex-1.6.4/Utility.h b/Build/source/utils/chktex/chktex-1.6.4/Utility.h
index 8df63f26d7a..a5baa176b13 100644
--- a/Build/source/utils/chktex/chktex-1.6.4/Utility.h
+++ b/Build/source/utils/chktex/chktex-1.6.4/Utility.h
@@ -49,6 +49,13 @@
#define FORWL(ind, list) for(ind = 0; ind < (list).Stack.Used; ind++)
+#ifdef ASM_HASHWORD
+extern unsigned short HashWord(const char *a);
+typedef unsigned short HASH_TYPE;
+#else
+typedef unsigned long HASH_TYPE;
+#endif
+
enum Strip
{
STRP_LFT = 0x01,