int wcolor;
int icolor;
- int state;
+ int state = 0;
/* attributes */
int intense = -1;
{
char data[4096];
memset(data, 0, sizeof(data));
+#ifdef _MSC_VER
+ vsnprintf_s(data, sizeof(data), sizeof(data), fmt, va);
+#else
vsnprintf(data, sizeof(data), fmt, va);
+#endif
ln = (GMQCC_IS_DEFINE(handle)) ? win_fputs(handle, data) : fs_file_puts(handle, data);
}
#endif
/*
* Defaultizer because stdio.h shouldn't be used anywhere except here
* and inside file.c To prevent mis-match of wrapper-interfaces.
- */
+ */
FILE *con_default_out() {
return (console.handle_out = stdout);
}
* for reporting of file:line based on lexer context, These are used
* heavily in the parser/ir/ast.
*/
-void con_vprintmsg_c(int level, const char *name, size_t line, const char *msgtype, const char *msg, va_list ap, const char *condname) {
+static void con_vprintmsg_c(int level, const char *name, size_t line, const char *msgtype, const char *msg, va_list ap, const char *condname) {
/* color selection table */
static int sel[] = {
CON_WHITE,