107 void msg(
const char *fmt, ...)
117 vfprintf(
stdout, fmt, args);
149 "$version",versionSubst
155 msgText +=
" (warning treated as error, aborting now)";
170 const int bufSize = 40960;
178 vsnprintf(text+l, bufSize-l, fmt, args);
179 text[bufSize-1]=
'\0';
226 void err(
const char *fmt, ...)
244 const char *enter_txt =
"entering";
245 const char *enter_txt_uc =
"Entering";
249 enter_txt =
"finished";
250 enter_txt_uc =
"Finished";
256 fprintf(
stderr,
"--%s lexical analyzer: %s (for: %s)\n",enter_txt,
qPrint(lexName),
qPrint(fileName));
258 fprintf(
stderr,
"--%s lexical analyzer: %s\n",enter_txt,
qPrint(lexName));
static const char * error_str
char * qstrncpy(char *dst, const char *src, uint len)
void msg(const char *fmt,...)
void printlex(int dbg, bool enter, const char *lexName, const char *fileName)
static const char * warning_str
void warn_doc_error(const char *file, int line, const char *fmt,...)
static FileNameDict * inputNameDict
void warn_undoc(const char *file, int line, const char *fmt,...)
FileDef * findFileDef(const FileNameDict *fnDict, const char *n, bool &ambig)
static void print(DebugMask mask, int prio, const char *fmt,...)
static void do_warn(const char *tag, const char *file, int line, const char *prefix, const char *fmt, va_list args)
A bunch of utility functions.
const char * data() const
#define Config_getString(val)
#define Config_getBool(val)
void warn(const char *file, int line, const char *fmt,...)
void err(const char *fmt,...)
void err_full(const char *file, int line, const char *fmt,...)
QCString & setNum(short n)
void warn_simple(const char *file, int line, const char *text)
void line(double t, double *p, double &x, double &y, double &z)
static QCString outputFormat
static bool isFlagSet(DebugMask mask)
void va_warn(const char *file, int line, const char *fmt, va_list args)
FILE * portable_fopen(const char *fileName, const char *mode)
const char * qPrint(const char *s)
Portable versions of functions that are platform dependent.
QCString substitute(const QCString &s, const QCString &src, const QCString &dst)
substitute all occurrences of src in s by dst
static void format_warn(const char *file, int line, const char *text)
QCString getVersion() const
void warn_uncond(const char *fmt,...)