summaryrefslogtreecommitdiff
path: root/graphics/xfractint/files/patch-miscovl.c
blob: 5d70b04f7b7eaeff1ee5908c070d0ec8fcef00ad (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
--- miscovl.c.orig	Tue Sep  7 00:38:10 1999
+++ miscovl.c	Sun Dec  7 10:54:31 2003
@@ -5,13 +5,13 @@
 #include <string.h>
 #include <ctype.h>
 #include <time.h>
+#include <stdarg.h>
 #ifndef XFRACT
+#ifndef BIG_ANSI_C
 #include <malloc.h>
+#endif
 #include <process.h>
-#include <stdarg.h>
 #include <io.h>
-#else
-#include <varargs.h>
 #endif
   /* see Fractint.c for a description of the "include"  hierarchy */
 #include "port.h"
@@ -24,11 +24,7 @@
 static void write_batch_parms(char *colorinf,int colorsonly, int maxcolor,int i, int j);
 static void expand_comments(char far *target, char far *source);
 
-#ifndef XFRACT
 static void put_parm(char *parm,...);
-#else
-static void put_parm();
-#endif
 
 static void put_parm_line(void);
 static int getprec(double,double,double);
@@ -1175,24 +1171,12 @@
       }
 }
 
-#ifndef XFRACT
 static void put_parm(char *parm,...)
-#else
-static void put_parm(va_alist)
-va_dcl
-#endif
 {
    char *bufptr;
    va_list args;
 
-#ifndef XFRACT
    va_start(args,parm);
-#else
-   char * parm;
-
-   va_start(args);
-   parm = va_arg(args,char *);
-#endif
    if (*parm == ' '             /* starting a new parm */
      && wbdata->len == 0)       /* skip leading space */
       ++parm;