mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 19:27:17 +00:00
d3dxof: Use BOOL type where appropriate.
This commit is contained in:
parent
3f91834ffb
commit
497f088715
|
@ -542,7 +542,7 @@ static BOOL is_float(parse_buffer* buf)
|
||||||
DWORD pos = 0;
|
DWORD pos = 0;
|
||||||
char c;
|
char c;
|
||||||
float decimal;
|
float decimal;
|
||||||
BOOL dot = 0;
|
BOOL dot = FALSE;
|
||||||
|
|
||||||
while (pos < buf->rem_bytes && !is_separator(c = *(buf->buffer+pos)))
|
while (pos < buf->rem_bytes && !is_separator(c = *(buf->buffer+pos)))
|
||||||
{
|
{
|
||||||
|
@ -899,10 +899,10 @@ static inline BOOL is_primitive_type(WORD token)
|
||||||
case TOKEN_LPSTR:
|
case TOKEN_LPSTR:
|
||||||
case TOKEN_UNICODE:
|
case TOKEN_UNICODE:
|
||||||
case TOKEN_CSTRING:
|
case TOKEN_CSTRING:
|
||||||
ret = 1;
|
ret = TRUE;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
ret = 0;
|
ret = FALSE;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
|
@ -948,14 +948,14 @@ static BOOL parse_template_members_list(parse_buffer * buf)
|
||||||
|
|
||||||
while (1)
|
while (1)
|
||||||
{
|
{
|
||||||
BOOL array = 0;
|
BOOL array = FALSE;
|
||||||
int nb_dims = 0;
|
int nb_dims = 0;
|
||||||
cur_member = &buf->pdxf->xtemplates[buf->pdxf->nb_xtemplates].members[idx_member];
|
cur_member = &buf->pdxf->xtemplates[buf->pdxf->nb_xtemplates].members[idx_member];
|
||||||
|
|
||||||
if (check_TOKEN(buf) == TOKEN_ARRAY)
|
if (check_TOKEN(buf) == TOKEN_ARRAY)
|
||||||
{
|
{
|
||||||
get_TOKEN(buf);
|
get_TOKEN(buf);
|
||||||
array = 1;
|
array = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (check_TOKEN(buf) == TOKEN_NAME)
|
if (check_TOKEN(buf) == TOKEN_NAME)
|
||||||
|
|
Loading…
Reference in a new issue