summaryrefslogtreecommitdiff
path: root/Build/source/utils/chktex/chktex-1.6.6-PATCHES/patch-06-extern
blob: f99a34f9f6cecc79f2e906865e869611de2aef1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
	Remove the obsolete ASM_HASHWORD stuff (for Amiga)
	avoiding extern decls from *.c files.

diff -ur chktex-1.6.6.orig/Utility.c chktex-1.6.6/Utility.c
--- chktex-1.6.6.orig/Utility.c	2010-12-18 22:18:49.000000000 +0100
+++ chktex-1.6.6/Utility.c	2012-04-16 14:20:46.000000000 +0200
@@ -31,12 +31,7 @@
 #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 ************************/
 
@@ -389,14 +384,12 @@
 /*************************** HASH INDEX **************************/
 
 /*
- * Hashes a string. The string ought be rather short. We use an asm
- * version the Amiga; note that this returns an unsigned short instead.
+ * Hashes a string. The string ought be rather short.
  *
  * The algorithm was designed by Peter Weinberger. This version was
  * adapted from Dr Dobb's Journal April 1996 page 26.
  */
 
-#ifndef ASM_HASHWORD
 static unsigned long HashWord(const char *str)
 {
     register unsigned long h = 0, hbit, c;
@@ -411,7 +404,6 @@
 
     return (h);
 }
-#endif
 
 /*
  * Inserts a string into a hash index. Note: You'll have to