Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
9b18772c
Commit
9b18772c
authored
Aug 22, 2019
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 22, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vbscript: Rename OP_long expression to OP_int.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d01d6294
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
13 deletions
+13
-13
compile.c
dlls/vbscript/compile.c
+3
-3
interp.c
dlls/vbscript/interp.c
+1
-1
lex.c
dlls/vbscript/lex.c
+2
-2
parse.h
dlls/vbscript/parse.h
+1
-1
parser.y
dlls/vbscript/parser.y
+5
-5
vbscript.h
dlls/vbscript/vbscript.h
+1
-1
No files found.
dlls/vbscript/compile.c
View file @
9b18772c
...
...
@@ -536,8 +536,8 @@ static HRESULT compile_expression(compile_ctx_t *ctx, expression_t *expr)
return
push_instr_str
(
ctx
,
OP_string
,
((
string_expression_t
*
)
expr
)
->
value
);
case
EXPR_SUB
:
return
compile_binary_expression
(
ctx
,
(
binary_expression_t
*
)
expr
,
OP_sub
);
case
EXPR_
ULONG
:
return
push_instr_int
(
ctx
,
OP_
long
,
((
int_expression_t
*
)
expr
)
->
value
);
case
EXPR_
INT
:
return
push_instr_int
(
ctx
,
OP_
int
,
((
int_expression_t
*
)
expr
)
->
value
);
case
EXPR_XOR
:
return
compile_binary_expression
(
ctx
,
(
binary_expression_t
*
)
expr
,
OP_xor
);
default:
...
...
@@ -779,7 +779,7 @@ static HRESULT compile_forto_statement(compile_ctx_t *ctx, forto_statement_t *st
if
(
!
push_instr
(
ctx
,
OP_val
))
return
E_OUTOFMEMORY
;
}
else
{
hres
=
push_instr_int
(
ctx
,
OP_
long
,
1
);
hres
=
push_instr_int
(
ctx
,
OP_
int
,
1
);
if
(
FAILED
(
hres
))
return
hres
;
}
...
...
dlls/vbscript/interp.c
View file @
9b18772c
...
...
@@ -1315,7 +1315,7 @@ static HRESULT interp_string(exec_ctx_t *ctx)
return
stack_push
(
ctx
,
&
v
);
}
static
HRESULT
interp_
long
(
exec_ctx_t
*
ctx
)
static
HRESULT
interp_
int
(
exec_ctx_t
*
ctx
)
{
const
LONG
arg
=
ctx
->
instr
->
arg1
.
lng
;
VARIANT
v
;
...
...
dlls/vbscript/lex.c
View file @
9b18772c
...
...
@@ -335,7 +335,7 @@ static int parse_numeric_literal(parser_ctx_t *ctx, void **ret)
if
(
use_int
&&
(
LONG
)
d
==
d
)
{
*
(
LONG
*
)
ret
=
d
;
return
t
Long
;
return
t
Int
;
}
r
=
exp
>=
0
?
d
*
pow
(
10
,
exp
)
:
d
/
pow
(
10
,
-
exp
);
...
...
@@ -376,7 +376,7 @@ static int parse_hex_literal(parser_ctx_t *ctx, LONG *ret)
ctx
->
ptr
++
;
*
ret
=
l
;
return
t
Long
;
return
t
Int
;
}
static
void
skip_spaces
(
parser_ctx_t
*
ctx
)
...
...
dlls/vbscript/parse.h
View file @
9b18772c
...
...
@@ -32,6 +32,7 @@ typedef enum {
EXPR_GTEQ
,
EXPR_IDIV
,
EXPR_IMP
,
EXPR_INT
,
EXPR_IS
,
EXPR_LT
,
EXPR_LTEQ
,
...
...
@@ -49,7 +50,6 @@ typedef enum {
EXPR_OR
,
EXPR_STRING
,
EXPR_SUB
,
EXPR_ULONG
,
EXPR_XOR
}
expression_type_t
;
...
...
dlls/vbscript/parser.y
View file @
9b18772c
...
...
@@ -97,7 +97,7 @@ static statement_t *link_statements(statement_t*,statement_t*);
const_decl_t *const_decl;
case_clausule_t *case_clausule;
unsigned uint;
LONG
lng
;
LONG
integer
;
BOOL boolean;
double dbl;
}
...
...
@@ -119,7 +119,7 @@ static statement_t *link_statements(statement_t*,statement_t*);
%token <string> tNEXT tON tRESUME tGOTO
%token <string> tIdentifier tString
%token <string> tDEFAULT tERROR tEXPLICIT tPROPERTY tSTEP
%token <
lng> tLong
%token <
integer> tInt
%token <dbl> tDouble
%type <statement> Statement SimpleStatement StatementNl StatementsNl StatementsNl_opt IfStatement Else_opt
...
...
@@ -381,13 +381,13 @@ LiteralExpression
| tNOTHING { $$ = new_expression(ctx, EXPR_NOTHING, 0); CHECK_ERROR; }
NumericLiteralExpression
: '0' { $$ = new_long_expression(ctx, EXPR_
ULONG
, 0); CHECK_ERROR; }
| t
Long { $$ = new_long_expression(ctx, EXPR_ULONG
, $1); CHECK_ERROR; }
: '0' { $$ = new_long_expression(ctx, EXPR_
INT
, 0); CHECK_ERROR; }
| t
Int { $$ = new_long_expression(ctx, EXPR_INT
, $1); CHECK_ERROR; }
| tDouble { $$ = new_double_expression(ctx, $1); CHECK_ERROR; }
IntegerValue
: '0' { $$ = 0; }
| t
Long
{ $$ = $1; }
| t
Int
{ $$ = $1; }
PrimaryExpression
: '(' Expression ')' { $$ = new_unary_expression(ctx, EXPR_BRACKETS, $2); }
...
...
dlls/vbscript/vbscript.h
View file @
9b18772c
...
...
@@ -248,11 +248,11 @@ typedef enum {
X(idiv, 1, 0, 0) \
X(imp, 1, 0, 0) \
X(incc, 1, ARG_BSTR, 0) \
X(int, 1, ARG_INT, 0) \
X(is, 1, 0, 0) \
X(jmp, 0, ARG_ADDR, 0) \
X(jmp_false, 0, ARG_ADDR, 0) \
X(jmp_true, 0, ARG_ADDR, 0) \
X(long, 1, ARG_INT, 0) \
X(lt, 1, 0, 0) \
X(lteq, 1, 0, 0) \
X(mcall, 1, ARG_BSTR, ARG_UINT) \
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment