summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvipdfmx/dvipdfmx-20110311-PATCHES/patch-08-extern
blob: b5087a90e7f9b4858074194b3b24a4f0b38cb183 (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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
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)
 {