git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2692
4a8a32a2-be11-0410-ad9d-
d568d2c75423
static struct {
ERROR_LOG_LEVEL logLevel;
FILE *out;
static struct {
ERROR_LOG_LEVEL logLevel;
FILE *out;
+ int style; /* 1=MSVC */
} _SDCCERRG;
extern char *filename ;
} _SDCCERRG;
extern char *filename ;
fprintf(_SDCCERRG.out, "\n");
}
else {
fprintf(_SDCCERRG.out, "\n");
}
else {
- // Below the logging level, drop.
+ /* Below the logging level, drop. */
-------------------------------------------------------------------------------
*/
-------------------------------------------------------------------------------
*/
-void werror (int errNum, ... )
+void werror (int errNum, ...)
va_start(marker,errNum);
vwerror(errNum, marker);
va_start(marker,errNum);
vwerror(errNum, marker);
call exit()
-------------------------------------------------------------------------------
*/
call exit()
-------------------------------------------------------------------------------
*/
-void fatal (int exitCode, int errNum, ... )
+void fatal (int exitCode, int errNum, ...)
va_start(marker,errNum);
vwerror(errNum, marker);
va_start(marker,errNum);
vwerror(errNum, marker);
void MSVC_style (int style)
{
void MSVC_style (int style)
{
+ _SDCCERRG.style = style;