X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2FSDCCmain.c;h=fdadaa08de4b4ef6ca4911643a4aa15577a12d56;hb=7c7730dc2b022c1780f6ae13efea627a1a3bacfa;hp=cb5029eaa5b220a23028a014bdf504319f6a38ea;hpb=0c93fb538f7fd17fa07051fa28681cc8ca2bc12b;p=fw%2Fsdcc diff --git a/src/SDCCmain.c b/src/SDCCmain.c index cb5029ea..fdadaa08 100644 --- a/src/SDCCmain.c +++ b/src/SDCCmain.c @@ -117,6 +117,7 @@ char buffer[PATH_MAX * 2]; #define OPTION_ICODE_IN_ASM "--i-code-in-asm" #define OPTION_PRINT_SEARCH_DIRS "--print-search-dirs" #define OPTION_MSVC_ERROR_STYLE "--vc" +#define OPTION_USE_STDOUT "--use-stdout" static const OPTION optionsTable[] = { @@ -217,6 +218,7 @@ optionsTable[] = { { 0, OPTION_ICODE_IN_ASM, &options.iCodeInAsm, "include i-code as comments in the asm file"}, { 0, OPTION_PRINT_SEARCH_DIRS, &options.printSearchDirs, "display the directories in the compiler's search path"}, { 0, OPTION_MSVC_ERROR_STYLE, &options.vc_err_style, "messages are compatible with Micro$oft visual studio"}, + { 0, OPTION_USE_STDOUT, &options.use_stdout, "send errors to stdout instead of stderr"}, /* End of options */ #if 0 /* 10jun03 !OPT_DISABLE_PIC16 */ { 0, "--no-movff", &options.no_movff, "disable generating MOVFF opcode in PIC16 port"}, @@ -1269,6 +1271,7 @@ parseCmdLine (int argc, char **argv) werror (E_FILE_OPEN_ERR, scratchFileName); } MSVC_style(options.vc_err_style); + if(options.use_stdout) SetErrorOut(stdout); return 0; }