Commit 954c592a authored by Dan Hipschman's avatar Dan Hipschman Committed by Alexandre Julliard

widl: Replace a #if by if for better compiler checking.

parent 6e7389ad
...@@ -34,10 +34,9 @@ ...@@ -34,10 +34,9 @@
#include "utils.h" #include "utils.h"
#include "parser.h" #include "parser.h"
/* #define WANT_NEAR_INDICATION */ static const int want_near_indication = 0;
#ifdef WANT_NEAR_INDICATION static void make_print(char *str)
void make_print(char *str)
{ {
while(*str) while(*str)
{ {
...@@ -46,13 +45,13 @@ void make_print(char *str) ...@@ -46,13 +45,13 @@ void make_print(char *str)
str++; str++;
} }
} }
#endif
static void generic_msg(const char *s, const char *t, const char *n, va_list ap) static void generic_msg(const char *s, const char *t, const char *n, va_list ap)
{ {
fprintf(stderr, "%s:%d: %s: ", input_name ? input_name : "stdin", line_number, t); fprintf(stderr, "%s:%d: %s: ", input_name ? input_name : "stdin", line_number, t);
vfprintf(stderr, s, ap); vfprintf(stderr, s, ap);
#ifdef WANT_NEAR_INDICATION
if (want_near_indication)
{ {
char *cpy; char *cpy;
if(n) if(n)
...@@ -63,7 +62,7 @@ static void generic_msg(const char *s, const char *t, const char *n, va_list ap) ...@@ -63,7 +62,7 @@ static void generic_msg(const char *s, const char *t, const char *n, va_list ap)
free(cpy); free(cpy);
} }
} }
#endif
fprintf(stderr, "\n"); fprintf(stderr, "\n");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment