Dan Hipschman : widl: Replace a #if by if for better compiler
checking.
Alexandre Julliard
julliard at wine.codeweavers.com
Thu Sep 14 10:10:14 CDT 2006
Module: wine
Branch: master
Commit: 954c592a6c076626e2789415f86612404d30f8a1
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=954c592a6c076626e2789415f86612404d30f8a1
Author: Dan Hipschman <dsh at linux.ucla.edu>
Date: Wed Sep 13 16:31:47 2006 -0700
widl: Replace a #if by if for better compiler checking.
---
tools/widl/utils.c | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/tools/widl/utils.c b/tools/widl/utils.c
index 98a66dd..007d1cb 100644
--- a/tools/widl/utils.c
+++ b/tools/widl/utils.c
@@ -34,10 +34,9 @@ #include "widl.h"
#include "utils.h"
#include "parser.h"
-/* #define WANT_NEAR_INDICATION */
+static const int want_near_indication = 0;
-#ifdef WANT_NEAR_INDICATION
-void make_print(char *str)
+static void make_print(char *str)
{
while(*str)
{
@@ -46,13 +45,13 @@ void make_print(char *str)
str++;
}
}
-#endif
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);
vfprintf(stderr, s, ap);
-#ifdef WANT_NEAR_INDICATION
+
+ if (want_near_indication)
{
char *cpy;
if(n)
@@ -63,7 +62,7 @@ #ifdef WANT_NEAR_INDICATION
free(cpy);
}
}
-#endif
+
fprintf(stderr, "\n");
}
More information about the wine-cvs
mailing list