#include <stdlib.h>
#include "SDCCerr.h"
-#include "../../src/SDCCglobl.h"
-
#define USE_STDOUT_FOR_ERRORS 0
static struct {
ERROR_LOG_LEVEL logLevel;
FILE *out;
+ int style; // 1=MSVC
} _SDCCERRG;
extern char *filename ;
fatalError++ ;
if ( filename && lineno ) {
- if(options.vc_err_style)
+ if(_SDCCERRG.style)
fprintf(_SDCCERRG.out, "%s(%d) : ",filename,lineno);
else
fprintf(_SDCCERRG.out, "%s:%d: ",filename,lineno);
exit(exitCode);
}
+
+/*
+-------------------------------------------------------------------------------
+style - Change the output error style to MSVC
+-------------------------------------------------------------------------------
+*/
+
+void MSVC_style (int style)
+{
+ _SDCCERRG.style=style;
+}
void fatal (int exitCode, int errNum, ... ) ;
+/*
+-------------------------------------------------------------------------------
+style - Change the output error style to MSVC
+-------------------------------------------------------------------------------
+*/
+
+void MSVC_style (int style) ;
+
#endif