| 1 |
diff -ruN magicpoint-1.10a.orig/contrib/xwintoppm/dsimple.c magicpoint-1.10a/contrib/xwintoppm/dsimple.c
|
| 2 |
--- magicpoint-1.10a.orig/contrib/xwintoppm/dsimple.c 2004-06-21 22:05:39.870925000 +0900
|
| 3 |
+++ magicpoint-1.10a/contrib/xwintoppm/dsimple.c 2004-06-21 22:05:32.567891488 +0900
|
| 4 |
@@ -35,6 +35,7 @@
|
| 5 |
#include <X11/Xutil.h>
|
| 6 |
#include <X11/cursorfont.h>
|
| 7 |
#include <stdio.h>
|
| 8 |
+#include <stdarg.h>
|
| 9 |
/*
|
| 10 |
* Other_stuff.h: Definitions of routines in other_stuff.
|
| 11 |
*
|
| 12 |
@@ -55,6 +56,7 @@
|
| 13 |
void blip();
|
| 14 |
Window Window_With_Name();
|
| 15 |
void Fatal_Error();
|
| 16 |
+void outl(char *msg, ...);
|
| 17 |
|
| 18 |
/*
|
| 19 |
* Just_display: A group of routines designed to make the writting of simple
|
| 20 |
@@ -496,12 +498,16 @@
|
| 21 |
*/
|
| 22 |
/* VARARGS1 */
|
| 23 |
void
|
| 24 |
-outl(msg, arg0,arg1,arg2,arg3,arg4,arg5,arg6)
|
| 25 |
- char *msg;
|
| 26 |
- char *arg0, *arg1, *arg2, *arg3, *arg4, *arg5, *arg6;
|
| 27 |
+outl(char *msg, ...)
|
| 28 |
{
|
| 29 |
+ va_list args;
|
| 30 |
+
|
| 31 |
fflush(stdout);
|
| 32 |
- fprintf(stderr, msg, arg0, arg1, arg2, arg3, arg4, arg5, arg6);
|
| 33 |
+
|
| 34 |
+ va_start(args, msg);
|
| 35 |
+ vfprintf(stderr, msg, args);
|
| 36 |
+ va_end(args);
|
| 37 |
+
|
| 38 |
fprintf(stderr, "\n");
|
| 39 |
fflush(stderr);
|
| 40 |
}
|
| 41 |
diff -ruN magicpoint-1.10a.orig/contrib/xwintoppm/xwintoppm.c magicpoint-1.10a/contrib/xwintoppm/xwintoppm.c
|
| 42 |
--- magicpoint-1.10a.orig/contrib/xwintoppm/xwintoppm.c 2004-06-21 22:05:39.871924000 +0900
|
| 43 |
+++ magicpoint-1.10a/contrib/xwintoppm/xwintoppm.c 2004-06-21 22:05:32.568891356 +0900
|
| 44 |
@@ -138,6 +138,7 @@
|
| 45 |
|
| 46 |
extern int (*_XErrorFunction)();
|
| 47 |
extern int _XDefaultError();
|
| 48 |
+void Window_Dump(Window window, FILE *out);
|
| 49 |
|
| 50 |
static long parse_long (s)
|
| 51 |
char *s;
|