Commit c5183bb5 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

jscript: Use BOOL instead of VARIANT_BOOL in lexer.

parent 6920b289
......@@ -262,7 +262,7 @@ typedef struct {
union {
double dval;
const WCHAR *wstr;
VARIANT_BOOL bval;
BOOL bval;
struct {
const WCHAR *str;
DWORD str_len;
......@@ -272,7 +272,7 @@ typedef struct {
} literal_t;
literal_t *parse_regexp(parser_ctx_t*) DECLSPEC_HIDDEN;
literal_t *new_boolean_literal(parser_ctx_t*,VARIANT_BOOL) DECLSPEC_HIDDEN;
literal_t *new_boolean_literal(parser_ctx_t*,BOOL) DECLSPEC_HIDDEN;
typedef struct _variable_declaration_t {
const WCHAR *identifier;
......
......@@ -380,7 +380,7 @@ static literal_t *new_double_literal(parser_ctx_t *ctx, DOUBLE d)
return ret;
}
literal_t *new_boolean_literal(parser_ctx_t *ctx, VARIANT_BOOL bval)
literal_t *new_boolean_literal(parser_ctx_t *ctx, BOOL bval)
{
literal_t *ret = parser_alloc(ctx, sizeof(literal_t));
......@@ -749,7 +749,7 @@ static int next_token(parser_ctx_t *ctx, void *lval)
struct _cc_var_t {
BOOL is_num;
union {
VARIANT_BOOL b;
BOOL b;
DOUBLE n;
} u;
struct _cc_var_t *next;
......@@ -822,7 +822,7 @@ static int init_cc(parser_ctx_t *ctx)
cc->vars = NULL;
v.is_num = FALSE;
v.u.b = VARIANT_TRUE;
v.u.b = TRUE;
if(!add_cc_var(cc, _jscriptW, &v)
|| !add_cc_var(cc, sizeof(void*) == 8 ? _win64W : _win32W, &v)
|| !add_cc_var(cc, sizeof(void*) == 8 ? _amd64W : _x86W, &v)) {
......
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