aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/xfractint/files/patch-hc.c
blob: 3b1f0e11b7c2299bae7a24795e6739c65d6cd65d (plain) (blame)
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
--- hc.c.orig   Tue Sep  7 00:38:10 1999
+++ hc.c    Sun Dec  7 12:16:31 2003
@@ -56,7 +56,7 @@
 #include <io.h>
 #include <stdarg.h>
 #else
-#include <varargs.h>
+#include <stdarg.h>
 #define strupr strlwr
 #endif
 #include <fcntl.h>
@@ -295,24 +295,11 @@
    }
 
 
-#ifndef XFRACT
 void fatal(int diff, char *format, ...)
-#else
-void fatal(va_alist)
-    va_dcl
-#endif
    {
    va_list arg;
 
-#ifndef XFRACT
    va_start(arg, format);
-#else
-   int diff;
-   char *format;
-   va_start(arg);
-   diff = va_arg(arg,int);
-   format = va_arg(arg,char *);
-#endif
 
    print_msg("Fatal", srcline-diff, format, arg);
    va_end(arg);
@@ -324,24 +311,11 @@
    }
 
 
-#ifndef XFRACT
 void error(int diff, char *format, ...)
-#else
-void error(va_alist)
-    va_dcl
-#endif
    {
    va_list arg;
 
-#ifndef XFRACT
    va_start(arg, format);
-#else
-   int diff;
-   char *format;
-   va_start(arg);
-   diff = va_arg(arg,int);
-   format = va_arg(arg,char *);
-#endif
    print_msg("Error", srcline-diff, format, arg);
    va_end(arg);
 
@@ -350,23 +324,10 @@
    }
 
 
-#ifndef XFRACT
 void warn(int diff, char *format, ...)
-#else
-void warn(va_alist)
-   va_dcl
-#endif
    {
    va_list arg;
-#ifndef XFRACT
    va_start(arg, format);
-#else
-   int diff;
-   char *format;
-   va_start(arg);
-   diff = va_arg(arg, int);
-   format = va_arg(arg, char *);
-#endif
    print_msg("Warning", srcline-diff, format, arg);
    va_end(arg);
 
@@ -375,47 +336,22 @@
    }
 
 
-#ifndef XFRACT
 void notice(char *format, ...)
-#else
-void notice(va_alist)
-    va_dcl
-#endif
    {
    va_list arg;
-#ifndef XFRACT
    va_start(arg, format);
-#else
-   char *format;
-
-   va_start(arg);
-   format = va_arg(arg,char *);
-#endif
    print_msg("Note", srcline, format, arg);
    va_end(arg);
    }
 
 
-#ifndef XFRACT
 void msg(char *format, ...)
-#else
-void msg(va_alist)
-va_dcl
-#endif
    {
    va_list arg;
-#ifdef XFRACT
-   char *format;
-#endif
 
    if (quiet_mode)
       return;
-#ifndef XFRACT
    va_start(arg, format);
-#else
-   va_start(arg);
-   format = va_arg(arg,char *);
-#endif
    print_msg(NULL, 0, format, arg);
    va_end(arg);
    }