void
-Curses_AlwaysShowMessage(const char *format, ...)
+Curses_AlwaysShowMessage(const char *format, va_list ap)
{
static char buffer[60];
- va_list ap;
- va_start(ap, format);
vsnprintf(buffer, sizeof(buffer), format, ap);
Curses_ShowMessage(buffer);
- va_end(ap);
}
void
-Curses_Printf(const char *format, ...)
+Curses_Printf(const char *format, va_list ap)
{
static char buffer[60];
- va_list ap;
- va_start(ap, format);
vsnprintf(buffer, sizeof(buffer), format, ap);
printw("%s", buffer);
- va_end(ap);
}
void Curses_ShowGameType(void);
void Curses_ShowLine(unsigned short *bstline);
void Curses_ShowMessage(char *s);
-void Curses_AlwaysShowMessage(const char *format, ...);
-void Curses_Printf(const char *format, ...);
+void Curses_AlwaysShowMessage(const char *format, va_list ap);
+void Curses_Printf(const char *format, va_list ap);
void Curses_doRequestInputString(const char* fmt, char* buffer);
int Curses_GetString(char* sx);
void Curses_SetupBoard(void);
#include "rawdsp.h"
#include "cursesdsp.h"
-#include <stdarg.h>
#include <stdio.h>
#define CASE_DSP_RAW(func,args) \
#ifndef _DSPWRAPPERS_H_
#define _DSPWRAPPERS_H_
+#include <stdarg.h>
+
extern void ChangeAlphaWindow(void);
extern void ChangeBetaWindow(void);
extern void ChangeHashDepth(void);
void
-Raw_AlwaysShowMessage(const char *format, ...)
+Raw_AlwaysShowMessage(const char *format, va_list ap)
{
- va_list ap;
- va_start(ap, format);
vprintf(format, ap);
- va_end(ap);
printf("\n");
}
void
-Raw_Printf(const char *format, ...)
+Raw_Printf(const char *format, va_list ap)
{
- va_list ap;
- va_start(ap, format);
vprintf(format, ap);
- va_end(ap);
}
void Raw_ShowGameType(void);
void Raw_ShowLine(unsigned short *bstline);
void Raw_ShowMessage(char *s);
-void Raw_AlwaysShowMessage(const char *format, ...);
-void Raw_Printf(const char *format, ...);
+void Raw_AlwaysShowMessage(const char *format, va_list ap);
+void Raw_Printf(const char *format, va_list ap);
void Raw_doRequestInputString(const char* fmt, char* buffer);
int Raw_GetString(char* sx);
void Raw_SetupBoard(void);