diff options
author | dgp <dgp@users.sourceforge.net> | 2005-09-13 21:25:21 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2005-09-13 21:25:21 (GMT) |
commit | 65649425eb8aad1c322611984ab776d3e8b26713 (patch) | |
tree | 2b22f417f2d61762634e20ea65336a161d6bef68 /win/winMain.c | |
parent | 8b77efee80bae35665d684d1f4cfdd135b934bcd (diff) | |
download | tk-65649425eb8aad1c322611984ab776d3e8b26713.zip tk-65649425eb8aad1c322611984ab776d3e8b26713.tar.gz tk-65649425eb8aad1c322611984ab776d3e8b26713.tar.bz2 |
* win/winMain.c (WishPanic): Replaced TCL_VARARGS* macros with
direct use of stdarg.h conventions.
Diffstat (limited to 'win/winMain.c')
-rw-r--r-- | win/winMain.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/win/winMain.c b/win/winMain.c index 7a05b5e..4f89b2c 100644 --- a/win/winMain.c +++ b/win/winMain.c @@ -9,7 +9,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: winMain.c,v 1.21 2004/02/02 08:12:58 davygrvy Exp $ + * RCS: @(#) $Id: winMain.c,v 1.22 2005/09/13 21:25:21 dgp Exp $ */ #include <tk.h> @@ -30,7 +30,7 @@ * Forward declarations for procedures defined later in this file: */ -static void WishPanic _ANSI_ARGS_(TCL_VARARGS(CONST char *,format)); +static void WishPanic _ANSI_ARGS_((CONST char *format, ...)); #ifdef TK_TEST extern int Tktest_Init(Tcl_Interp *interp); #endif /* TK_TEST */ @@ -226,13 +226,12 @@ error: */ void -WishPanic TCL_VARARGS_DEF(CONST char *,arg1) +WishPanic(CONST char *format, ...) { va_list argList; char buf[1024]; - CONST char *format; - format = TCL_VARARGS_START(CONST char *,arg1,argList); + va_start(argList, format); vsprintf(buf, format, argList); MessageBeep(MB_ICONEXCLAMATION); |