Corrects this line in winapi_check: dlls/richedit/reader.c: #include STRING_H: is unparsable And gets rid of the vararg and generic stuff. Vincent
Index: dlls/richedit/reader.c =================================================================== RCS file: /home/wine/wine/dlls/richedit/reader.c,v retrieving revision 1.10 diff -u -r1.10 reader.c --- dlls/richedit/reader.c 23 Sep 2002 20:45:57 -0000 1.10 +++ dlls/richedit/reader.c 18 Nov 2002 03:02:51 -0000 @@ -44,24 +44,12 @@ * any purpose whatsoever. */ -# ifndef STRING_H -# define STRING_H <string.h> -# endif - # include <stdio.h> # include <ctype.h> -# include STRING_H -# ifdef STDARG +# include <string.h> # include <stdarg.h> -# else -# ifdef VARARGS -# include <varargs.h> -# endif /* VARARGS */ -# endif /* STDARG */ -# define rtfInternal # include "rtf.h" -# undef rtfInternal /* * include hard coded charsets @@ -2786,12 +2774,6 @@ } -# ifdef STDARG - -/* - * This version is for systems with stdarg - */ - void RTFMsg (char *fmt, ...) { char buf[rtfBufSiz]; @@ -2803,45 +2785,6 @@ (*msgProc) (buf); } -# else /* !STDARG */ - -# ifdef VARARGS - - -/* - * This version is for systems that have varargs. - */ - -void RTFMsg (va_dcl va_alist) -{ -va_list args; -char *fmt; -char buf[rtfBufSiz]; - - va_start (args); - fmt = va_arg (args, char *); - vsprintf (buf, fmt, args); - va_end (args); - (*msgProc) (buf); -} - -# else /* !VARARGS */ - -/* - * This version is for systems that don't have varargs. - */ - -void RTFMsg (char *fmt, char *a1, char *a2, char *a3, char *a4, char *a5, char *a6, char *a7, char *a8, char *a9) -{ -char buf[rtfBufSiz]; - - sprintf (buf, fmt, a1, a2, a3, a4, a5, a6, a7, a8, a9); - (*msgProc) (buf); -} - -# endif /* !VARARGS */ -# endif /* !STDARG */ - /* ---------------------------------------------------------------------- */ @@ -2869,12 +2812,6 @@ } -# ifdef STDARG - -/* - * This version is for systems with stdarg - */ - void RTFPanic(char *fmt, ...) { char buf[rtfBufSiz]; @@ -2892,56 +2829,3 @@ } (*panicProc) (buf); } - -# else /* !STDARG */ - -# ifdef VARARGS - - -/* - * This version is for systems that have varargs. - */ - -void RTFPanic(va_dcl va_alist) -{ -va_list args; -char *fmt; -char buf[rtfBufSiz]; - - va_start (args); - fmt = va_arg (args, char *); - vsprintf (buf, fmt, args); - va_end (args); - (void) strcat (buf, "\n"); - if (prevChar != EOF && rtfTextBuf != (char *) NULL) - { - sprintf (buf + strlen (buf), - "Last token read was \"%s\" near line %ld, position %d.\n", - rtfTextBuf, rtfLineNum, rtfLinePos); - } - (*panicProc) (buf); -} - -# else /* !VARARGS */ - -/* - * This version is for systems that don't have varargs. - */ - -void RTFPanic (char *fmt, char *a1, char *a2, char *a3, char *a4, char *a5, char *a6, char *a7, char *a8, char *a9) -{ -char buf[rtfBufSiz]; - - sprintf (buf, fmt, a1, a2, a3, a4, a5, a6, a7, a8, a9); - (void) strcat (buf, "\n"); - if (prevChar != EOF && rtfTextBuf != (char *) NULL) - { - sprintf (buf + strlen (buf), - "Last token read was \"%s\" near line %ld, position %d.\n", - rtfTextBuf, rtfLineNum, rtfLinePos); - } - (*panicProc) (buf); -} - -# endif /* !VARARGS */ -# endif /* !STDARG */ Index: dlls/richedit/rtf.h =================================================================== RCS file: /home/wine/wine/dlls/richedit/rtf.h,v retrieving revision 1.5 diff -u -r1.5 rtf.h --- dlls/richedit/rtf.h 23 Sep 2002 20:45:57 -0000 1.5 +++ dlls/richedit/rtf.h 18 Nov 2002 03:02:52 -0000 @@ -1438,18 +1438,8 @@ * stdarg.h. */ -# ifndef rtfInternal -void RTFMsg (); -void RTFPanic (); -# else -# ifdef STDARG void RTFMsg (char *fmt, ...); void RTFPanic (char *fmt, ...); -# else -void RTFMsg (); -void RTFPanic (); -# endif /* STDARG */ -# endif /* rtfInternal */ int RTFReadOutputMap (); int RTFReadCharSetMap ();