Cleaned some stuff namely removing checks for vprintf as it's part of
ISO C++ and we require full ISO C++ enviroment support anyway and removed a wrong ; at the end of a function definition (g++ complained about it only when compiled with "-pedantic -ansi" which is default with the cmake build system).
This commit is contained in:
parent
35eabf17be
commit
9e93df6dda
2 changed files with 1 additions and 25 deletions
pvpgn/src
|
@ -76,7 +76,7 @@ t_column * create_column(char * name, char * value, char * mode, char * extra_cm
|
|||
}
|
||||
|
||||
return column;
|
||||
};
|
||||
}
|
||||
|
||||
void dispose_column(t_column * column)
|
||||
{
|
||||
|
|
|
@ -282,17 +282,9 @@ extern void eventlog(t_eventlog_level level, char const * module, char const * f
|
|||
|
||||
va_start(args,fmt);
|
||||
|
||||
#ifdef HAVE_VPRINTF
|
||||
std::vfprintf(eventstrm,fmt,args);
|
||||
#ifdef WIN32_GUI
|
||||
gui_lvprintf(level,fmt,args);
|
||||
#endif
|
||||
#else
|
||||
# if HAVE__DOPRNT
|
||||
_doprnt(fmt,args,eventstrm);
|
||||
# else
|
||||
std::fprintf(eventstrm,"sorry, vfprintf() and _doprnt() are not available on this system");
|
||||
# endif
|
||||
#endif
|
||||
va_end(args);
|
||||
std::fprintf(eventstrm,"\n");
|
||||
|
@ -303,15 +295,7 @@ extern void eventlog(t_eventlog_level level, char const * module, char const * f
|
|||
if (eventlog_debugmode) {
|
||||
std::printf("%s [%s] %s: ",time_string,eventlog_get_levelname_str(level),module);
|
||||
va_start(args,fmt);
|
||||
#ifdef HAVE_VPRINTF
|
||||
std::vprintf(fmt,args);
|
||||
#else
|
||||
# if HAVE__DOPRNT
|
||||
_doprnt(fmt,args,stdout);
|
||||
# else
|
||||
std::printf("sorry, vfprintf() and _doprnt() are not available on this system");
|
||||
# endif
|
||||
#endif
|
||||
va_end(args);
|
||||
std::printf("\n");
|
||||
std::fflush(stdout);
|
||||
|
@ -358,15 +342,7 @@ extern void eventlog_step(char const * filename, t_eventlog_level level, char co
|
|||
|
||||
std::fprintf(fp,"%s [%s] %s: ",time_string,eventlog_get_levelname_str(level),module);
|
||||
va_start(args,fmt);
|
||||
#ifdef HAVE_VPRINTF
|
||||
std::vfprintf(fp,fmt,args);
|
||||
#else
|
||||
# if HAVE__DOPRNT
|
||||
_doprnt(fmt,args,fp);
|
||||
# else
|
||||
std::fprintf(fp,"sorry, vfprintf() and _doprnt() are not available on this system");
|
||||
# endif
|
||||
#endif
|
||||
va_end(args);
|
||||
std::fprintf(fp,"\n");
|
||||
std::fclose(fp);
|
||||
|
|
Loading…
Add table
Reference in a new issue