=?UTF-8?Q?Fr=C3=A9d=C3=A9ric=20Delanoy=20?=: msi: Use BOOL type where appropriate.
Alexandre Julliard
julliard at winehq.org
Mon Oct 28 15:13:03 CDT 2013
Module: wine
Branch: master
Commit: 8793b5fe28b6f73be56c5ecdb3039b0cf21a2179
URL: http://source.winehq.org/git/wine.git/?a=commit;h=8793b5fe28b6f73be56c5ecdb3039b0cf21a2179
Author: Frédéric Delanoy <frederic.delanoy at gmail.com>
Date: Sat Oct 26 14:01:20 2013 +0200
msi: Use BOOL type where appropriate.
---
dlls/msi/action.c | 23 ++++++++++++-----------
1 files changed, 12 insertions(+), 11 deletions(-)
diff --git a/dlls/msi/action.c b/dlls/msi/action.c
index d964787..ade5a3c 100644
--- a/dlls/msi/action.c
+++ b/dlls/msi/action.c
@@ -211,19 +211,20 @@ static int parse_prop( const WCHAR *str, WCHAR *value, int *quotes )
enum parse_state state = state_quote;
const WCHAR *p;
WCHAR *out = value;
- int ignore, in_quotes = 0, count = 0, len = 0;
+ BOOL ignore, in_quotes = FALSE;
+ int count = 0, len = 0;
for (p = str; *p; p++)
{
- ignore = 0;
+ ignore = FALSE;
switch (state)
{
case state_whitespace:
switch (*p)
{
case ' ':
- in_quotes = 1;
- ignore = 1;
+ in_quotes = TRUE;
+ ignore = TRUE;
len++;
break;
case '"':
@@ -233,7 +234,7 @@ static int parse_prop( const WCHAR *str, WCHAR *value, int *quotes )
break;
default:
state = state_token;
- in_quotes = 1;
+ in_quotes = TRUE;
len++;
break;
}
@@ -250,12 +251,12 @@ static int parse_prop( const WCHAR *str, WCHAR *value, int *quotes )
case ' ':
state = state_whitespace;
if (!count) goto done;
- in_quotes = 1;
+ in_quotes = TRUE;
len++;
break;
default:
- if (!count) in_quotes = 0;
- else in_quotes = 1;
+ if (!count) in_quotes = FALSE;
+ else in_quotes = TRUE;
len++;
break;
}
@@ -271,13 +272,13 @@ static int parse_prop( const WCHAR *str, WCHAR *value, int *quotes )
case ' ':
state = state_whitespace;
if (!count || (count > 1 && !len)) goto done;
- in_quotes = 1;
+ in_quotes = TRUE;
len++;
break;
default:
state = state_token;
- if (!count) in_quotes = 0;
- else in_quotes = 1;
+ if (!count) in_quotes = FALSE;
+ else in_quotes = TRUE;
len++;
break;
}
More information about the wine-cvs
mailing list