~ubuntu-branches/ubuntu/utopic/texlive-bin/utopic

« back to all changes in this revision

Viewing changes to utils/chktex/chktex-1.6.6-PATCHES/patch-06-extern

  • Committer: Package Import Robot
  • Author(s): Norbert Preining
  • Date: 2012-04-10 10:16:01 UTC
  • mfrom: (1.2.3)
  • Revision ID: package-import@ubuntu.com-20120410101601-7mt8nyn280xrgza6
Tags: 2011.20120410-1
* new upstream checkout:
  - remove decls of popen and pclose (Closes: #64524) (!yow, 5 digit bug!)
  - do not declare getopt in C++, fixes FTBFS with g++ >= 4.7 
    (Closes: #667392)
* add patches (maybe to be included upstream) that allows inclusion of
  one config file in another for (x)dvipdfmx. This will be
  used by the paper code.
* fix description of libptexenc-dev package (Closes: #667694)
* remove xdvik patch, included upstream
* remove conflict with ptex-bin, we are building a transitional package now
* build with internal t1lib, as t1lib is going to disappear in
  wheezy (Closes: #667912) (no, dropping xdvi is not an option!)
  (add a lintian override otherwise this gives a lintian error)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
        Remove extern decls from *.c files.
 
2
        (Not installed in upstream 1.6.6.  Propose static function instead?)
 
3
 
 
4
diff -ur chktex-1.6.4.orig/Utility.c chktex-1.6.4/Utility.c
 
5
--- chktex-1.6.4.orig/Utility.c 2010-06-13 14:50:28.000000000 +0200
 
6
+++ chktex-1.6.4/Utility.c      2012-03-29 14:09:07.000000000 +0200
 
7
@@ -31,13 +31,6 @@
 
8
 #include "Resource.h"
 
9
 #include "OpSys.h"
 
10
 
 
11
-#ifdef ASM_HASHWORD
 
12
-extern unsigned short HashWord(const char *a);
 
13
-typedef unsigned short HASH_TYPE;
 
14
-#else
 
15
-typedef unsigned long HASH_TYPE;
 
16
-#endif
 
17
-
 
18
 /***************************** SUPPORT FUNCTIONS ************************/
 
19
 
 
20
 
 
21
diff -ur chktex-1.6.4.orig/Utility.h chktex-1.6.4/Utility.h
 
22
--- chktex-1.6.4.orig/Utility.h 2010-05-02 21:59:49.000000000 +0200
 
23
+++ chktex-1.6.4/Utility.h      2012-03-29 14:09:07.000000000 +0200
 
24
@@ -49,6 +49,13 @@
 
25
 #define FORWL(ind, list)  for(ind = 0; ind < (list).Stack.Used; ind++)
 
26
 
 
27
 
 
28
+#ifdef ASM_HASHWORD
 
29
+extern unsigned short HashWord(const char *a);
 
30
+typedef unsigned short HASH_TYPE;
 
31
+#else
 
32
+typedef unsigned long HASH_TYPE;
 
33
+#endif
 
34
+
 
35
 enum Strip
 
36
 {
 
37
     STRP_LFT = 0x01,