Skip to content

Commit

Permalink
#define alias - stdmsg
Browse files Browse the repository at this point in the history
  • Loading branch information
yebblies committed May 2, 2013
1 parent 2c5df8d commit c21c6ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 3 additions & 0 deletions src/mars.c
Expand Up @@ -52,6 +52,8 @@ void printCtfePerformanceStats();

static bool parse_arch(size_t argc, char** argv, bool is64bit);

FILE *stdmsg;

Global global;

Global::Global()
Expand Down Expand Up @@ -414,6 +416,7 @@ int tryMain(size_t argc, char *argv[])
printf("DMD %s DEBUG\n", global.version);
#endif

stdmsg = stdout;
unittests();

// Check for malformed input
Expand Down
6 changes: 1 addition & 5 deletions src/mars.h
Expand Up @@ -447,11 +447,7 @@ void halt();
void util_progress();

/*** Where to send error messages ***/
#ifdef IN_GCC
#define stdmsg stderr
#else
#define stdmsg stderr
#endif
extern FILE *stdmsg;

struct Dsymbol;
class Library;
Expand Down

0 comments on commit c21c6ee

Please sign in to comment.