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
803834fd
Commit
803834fd
authored
Jul 01, 2023
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Jul 03, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Remove DECLSPEC_HIDDEN usage.
parent
01d05baa
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
46 additions
and
46 deletions
+46
-46
engine.h
dlls/jscript/engine.h
+13
-13
jscript.h
dlls/jscript/jscript.h
+0
-0
jsstr.h
dlls/jscript/jsstr.h
+15
-15
jsval.h
dlls/jscript/jsval.h
+4
-4
parser.h
dlls/jscript/parser.h
+11
-11
regexp.h
dlls/jscript/regexp.h
+3
-3
No files found.
dlls/jscript/engine.h
View file @
803834fd
...
@@ -183,8 +183,8 @@ typedef struct _function_code_t {
...
@@ -183,8 +183,8 @@ typedef struct _function_code_t {
bytecode_t
*
bytecode
;
bytecode_t
*
bytecode
;
}
function_code_t
;
}
function_code_t
;
IDispatch
*
lookup_global_host
(
script_ctx_t
*
)
DECLSPEC_HIDDEN
;
IDispatch
*
lookup_global_host
(
script_ctx_t
*
);
local_ref_t
*
lookup_local
(
const
function_code_t
*
,
const
WCHAR
*
,
unsigned
int
)
DECLSPEC_HIDDEN
;
local_ref_t
*
lookup_local
(
const
function_code_t
*
,
const
WCHAR
*
,
unsigned
int
);
struct
_bytecode_t
{
struct
_bytecode_t
{
LONG
ref
;
LONG
ref
;
...
@@ -211,10 +211,10 @@ struct _bytecode_t {
...
@@ -211,10 +211,10 @@ struct _bytecode_t {
struct
list
entry
;
struct
list
entry
;
};
};
HRESULT
compile_script
(
script_ctx_t
*
,
const
WCHAR
*
,
UINT64
,
unsigned
,
const
WCHAR
*
,
const
WCHAR
*
,
BOOL
,
BOOL
,
named_item_t
*
,
bytecode_t
**
)
DECLSPEC_HIDDEN
;
HRESULT
compile_script
(
script_ctx_t
*
,
const
WCHAR
*
,
UINT64
,
unsigned
,
const
WCHAR
*
,
const
WCHAR
*
,
BOOL
,
BOOL
,
named_item_t
*
,
bytecode_t
**
);
void
release_bytecode
(
bytecode_t
*
)
DECLSPEC_HIDDEN
;
void
release_bytecode
(
bytecode_t
*
);
unsigned
get_location_line
(
bytecode_t
*
code
,
unsigned
loc
,
unsigned
*
char_pos
)
DECLSPEC_HIDDEN
;
unsigned
get_location_line
(
bytecode_t
*
code
,
unsigned
loc
,
unsigned
*
char_pos
);
static
inline
bytecode_t
*
bytecode_addref
(
bytecode_t
*
code
)
static
inline
bytecode_t
*
bytecode_addref
(
bytecode_t
*
code
)
{
{
...
@@ -265,10 +265,10 @@ struct _jsexcept_t {
...
@@ -265,10 +265,10 @@ struct _jsexcept_t {
jsexcept_t
*
prev
;
jsexcept_t
*
prev
;
};
};
void
enter_script
(
script_ctx_t
*
,
jsexcept_t
*
)
DECLSPEC_HIDDEN
;
void
enter_script
(
script_ctx_t
*
,
jsexcept_t
*
);
HRESULT
leave_script
(
script_ctx_t
*
,
HRESULT
)
DECLSPEC_HIDDEN
;
HRESULT
leave_script
(
script_ctx_t
*
,
HRESULT
);
void
reset_ei
(
jsexcept_t
*
)
DECLSPEC_HIDDEN
;
void
reset_ei
(
jsexcept_t
*
);
void
set_error_location
(
jsexcept_t
*
,
bytecode_t
*
,
unsigned
,
unsigned
,
jsstr_t
*
)
DECLSPEC_HIDDEN
;
void
set_error_location
(
jsexcept_t
*
,
bytecode_t
*
,
unsigned
,
unsigned
,
jsstr_t
*
);
typedef
struct
_except_frame_t
except_frame_t
;
typedef
struct
_except_frame_t
except_frame_t
;
struct
_parser_ctx_t
;
struct
_parser_ctx_t
;
...
@@ -306,8 +306,8 @@ typedef struct _call_frame_t {
...
@@ -306,8 +306,8 @@ typedef struct _call_frame_t {
#define EXEC_EVAL 0x0008
#define EXEC_EVAL 0x0008
HRESULT
exec_source
(
script_ctx_t
*
,
DWORD
,
bytecode_t
*
,
function_code_t
*
,
scope_chain_t
*
,
IDispatch
*
,
HRESULT
exec_source
(
script_ctx_t
*
,
DWORD
,
bytecode_t
*
,
function_code_t
*
,
scope_chain_t
*
,
IDispatch
*
,
jsdisp_t
*
,
unsigned
,
jsval_t
*
,
jsval_t
*
)
DECLSPEC_HIDDEN
;
jsdisp_t
*
,
unsigned
,
jsval_t
*
,
jsval_t
*
);
HRESULT
create_source_function
(
script_ctx_t
*
,
bytecode_t
*
,
function_code_t
*
,
scope_chain_t
*
,
jsdisp_t
**
)
DECLSPEC_HIDDEN
;
HRESULT
create_source_function
(
script_ctx_t
*
,
bytecode_t
*
,
function_code_t
*
,
scope_chain_t
*
,
jsdisp_t
**
);
HRESULT
setup_arguments_object
(
script_ctx_t
*
,
call_frame_t
*
)
DECLSPEC_HIDDEN
;
HRESULT
setup_arguments_object
(
script_ctx_t
*
,
call_frame_t
*
);
void
detach_arguments_object
(
call_frame_t
*
)
DECLSPEC_HIDDEN
;
void
detach_arguments_object
(
call_frame_t
*
);
dlls/jscript/jscript.h
View file @
803834fd
This diff is collapsed.
Click to expand it.
dlls/jscript/jsstr.h
View file @
803834fd
...
@@ -94,15 +94,15 @@ typedef struct {
...
@@ -94,15 +94,15 @@ typedef struct {
unsigned
depth
;
unsigned
depth
;
}
jsstr_rope_t
;
}
jsstr_rope_t
;
jsstr_t
*
jsstr_alloc_len
(
const
WCHAR
*
,
unsigned
)
DECLSPEC_HIDDEN
;
jsstr_t
*
jsstr_alloc_len
(
const
WCHAR
*
,
unsigned
);
jsstr_t
*
jsstr_alloc_buf
(
unsigned
,
WCHAR
**
)
DECLSPEC_HIDDEN
;
jsstr_t
*
jsstr_alloc_buf
(
unsigned
,
WCHAR
**
);
static
inline
jsstr_t
*
jsstr_alloc
(
const
WCHAR
*
str
)
static
inline
jsstr_t
*
jsstr_alloc
(
const
WCHAR
*
str
)
{
{
return
jsstr_alloc_len
(
str
,
lstrlenW
(
str
));
return
jsstr_alloc_len
(
str
,
lstrlenW
(
str
));
}
}
void
jsstr_free
(
jsstr_t
*
)
DECLSPEC_HIDDEN
;
void
jsstr_free
(
jsstr_t
*
);
static
inline
void
jsstr_release
(
jsstr_t
*
str
)
static
inline
void
jsstr_release
(
jsstr_t
*
str
)
{
{
...
@@ -131,7 +131,7 @@ static inline jsstr_rope_t *jsstr_as_rope(jsstr_t *str)
...
@@ -131,7 +131,7 @@ static inline jsstr_rope_t *jsstr_as_rope(jsstr_t *str)
return
CONTAINING_RECORD
(
str
,
jsstr_rope_t
,
str
);
return
CONTAINING_RECORD
(
str
,
jsstr_rope_t
,
str
);
}
}
const
WCHAR
*
jsstr_rope_flatten
(
jsstr_rope_t
*
)
DECLSPEC_HIDDEN
;
const
WCHAR
*
jsstr_rope_flatten
(
jsstr_rope_t
*
);
static
inline
const
WCHAR
*
jsstr_flatten
(
jsstr_t
*
str
)
static
inline
const
WCHAR
*
jsstr_flatten
(
jsstr_t
*
str
)
{
{
...
@@ -140,7 +140,7 @@ static inline const WCHAR *jsstr_flatten(jsstr_t *str)
...
@@ -140,7 +140,7 @@ static inline const WCHAR *jsstr_flatten(jsstr_t *str)
:
jsstr_rope_flatten
(
jsstr_as_rope
(
str
));
:
jsstr_rope_flatten
(
jsstr_as_rope
(
str
));
}
}
void
jsstr_extract
(
jsstr_t
*
,
unsigned
,
unsigned
,
WCHAR
*
)
DECLSPEC_HIDDEN
;
void
jsstr_extract
(
jsstr_t
*
,
unsigned
,
unsigned
,
WCHAR
*
);
static
inline
unsigned
jsstr_flush
(
jsstr_t
*
str
,
WCHAR
*
buf
)
static
inline
unsigned
jsstr_flush
(
jsstr_t
*
str
,
WCHAR
*
buf
)
{
{
...
@@ -168,23 +168,23 @@ static inline jsstr_t *jsstr_substr(jsstr_t *str, unsigned off, unsigned len)
...
@@ -168,23 +168,23 @@ static inline jsstr_t *jsstr_substr(jsstr_t *str, unsigned off, unsigned len)
return
ret
;
return
ret
;
}
}
int
jsstr_cmp
(
jsstr_t
*
,
jsstr_t
*
)
DECLSPEC_HIDDEN
;
int
jsstr_cmp
(
jsstr_t
*
,
jsstr_t
*
);
static
inline
BOOL
jsstr_eq
(
jsstr_t
*
left
,
jsstr_t
*
right
)
static
inline
BOOL
jsstr_eq
(
jsstr_t
*
left
,
jsstr_t
*
right
)
{
{
return
jsstr_length
(
left
)
==
jsstr_length
(
right
)
&&
!
jsstr_cmp
(
left
,
right
);
return
jsstr_length
(
left
)
==
jsstr_length
(
right
)
&&
!
jsstr_cmp
(
left
,
right
);
}
}
jsstr_t
*
jsstr_concat
(
jsstr_t
*
,
jsstr_t
*
)
DECLSPEC_HIDDEN
;
jsstr_t
*
jsstr_concat
(
jsstr_t
*
,
jsstr_t
*
);
jsstr_t
*
jsstr_nan
(
void
)
DECLSPEC_HIDDEN
;
jsstr_t
*
jsstr_nan
(
void
);
jsstr_t
*
jsstr_empty
(
void
)
DECLSPEC_HIDDEN
;
jsstr_t
*
jsstr_empty
(
void
);
jsstr_t
*
jsstr_undefined
(
void
)
DECLSPEC_HIDDEN
;
jsstr_t
*
jsstr_undefined
(
void
);
jsstr_t
*
jsstr_null_bstr
(
void
)
DECLSPEC_HIDDEN
;
jsstr_t
*
jsstr_null_bstr
(
void
);
HRESULT
jsstr_to_bstr
(
jsstr_t
*
str
,
BSTR
*
r
)
DECLSPEC_HIDDEN
;
HRESULT
jsstr_to_bstr
(
jsstr_t
*
str
,
BSTR
*
r
);
BOOL
init_strings
(
void
)
DECLSPEC_HIDDEN
;
BOOL
init_strings
(
void
);
void
free_strings
(
void
)
DECLSPEC_HIDDEN
;
void
free_strings
(
void
);
const
char
*
debugstr_jsstr
(
jsstr_t
*
)
DECLSPEC_HIDDEN
;
const
char
*
debugstr_jsstr
(
jsstr_t
*
);
dlls/jscript/jsval.h
View file @
803834fd
...
@@ -250,9 +250,9 @@ static inline BOOL get_bool(jsval_t v)
...
@@ -250,9 +250,9 @@ static inline BOOL get_bool(jsval_t v)
return
__JSVAL_BOOL
(
v
);
return
__JSVAL_BOOL
(
v
);
}
}
HRESULT
variant_to_jsval
(
script_ctx_t
*
,
VARIANT
*
,
jsval_t
*
)
DECLSPEC_HIDDEN
;
HRESULT
variant_to_jsval
(
script_ctx_t
*
,
VARIANT
*
,
jsval_t
*
);
HRESULT
jsval_to_variant
(
jsval_t
,
VARIANT
*
)
DECLSPEC_HIDDEN
;
HRESULT
jsval_to_variant
(
jsval_t
,
VARIANT
*
);
void
jsval_release
(
jsval_t
)
DECLSPEC_HIDDEN
;
void
jsval_release
(
jsval_t
);
HRESULT
jsval_copy
(
jsval_t
,
jsval_t
*
)
DECLSPEC_HIDDEN
;
HRESULT
jsval_copy
(
jsval_t
,
jsval_t
*
);
#endif
#endif
dlls/jscript/parser.h
View file @
803834fd
...
@@ -50,10 +50,10 @@ typedef struct _parser_ctx_t {
...
@@ -50,10 +50,10 @@ typedef struct _parser_ctx_t {
heap_pool_t
heap
;
heap_pool_t
heap
;
}
parser_ctx_t
;
}
parser_ctx_t
;
HRESULT
script_parse
(
script_ctx_t
*
,
struct
_compiler_ctx_t
*
,
struct
_bytecode_t
*
,
const
WCHAR
*
,
BOOL
,
parser_ctx_t
**
)
DECLSPEC_HIDDEN
;
HRESULT
script_parse
(
script_ctx_t
*
,
struct
_compiler_ctx_t
*
,
struct
_bytecode_t
*
,
const
WCHAR
*
,
BOOL
,
parser_ctx_t
**
);
void
parser_release
(
parser_ctx_t
*
)
DECLSPEC_HIDDEN
;
void
parser_release
(
parser_ctx_t
*
);
int
parser_lex
(
void
*
,
unsigned
*
,
parser_ctx_t
*
)
DECLSPEC_HIDDEN
;
int
parser_lex
(
void
*
,
unsigned
*
,
parser_ctx_t
*
);
static
inline
void
*
parser_alloc
(
parser_ctx_t
*
ctx
,
DWORD
size
)
static
inline
void
*
parser_alloc
(
parser_ctx_t
*
ctx
,
DWORD
size
)
{
{
...
@@ -65,9 +65,9 @@ static inline void *parser_alloc_tmp(parser_ctx_t *ctx, DWORD size)
...
@@ -65,9 +65,9 @@ static inline void *parser_alloc_tmp(parser_ctx_t *ctx, DWORD size)
return
heap_pool_alloc
(
&
ctx
->
script
->
tmp_heap
,
size
);
return
heap_pool_alloc
(
&
ctx
->
script
->
tmp_heap
,
size
);
}
}
BOOL
is_identifier_char
(
WCHAR
)
DECLSPEC_HIDDEN
;
BOOL
is_identifier_char
(
WCHAR
);
BOOL
unescape
(
WCHAR
*
,
size_t
*
)
DECLSPEC_HIDDEN
;
BOOL
unescape
(
WCHAR
*
,
size_t
*
);
HRESULT
parse_decimal
(
const
WCHAR
**
,
const
WCHAR
*
,
double
*
)
DECLSPEC_HIDDEN
;
HRESULT
parse_decimal
(
const
WCHAR
**
,
const
WCHAR
*
,
double
*
);
typedef
enum
{
typedef
enum
{
LT_DOUBLE
,
LT_DOUBLE
,
...
@@ -90,8 +90,8 @@ typedef struct {
...
@@ -90,8 +90,8 @@ typedef struct {
}
u
;
}
u
;
}
literal_t
;
}
literal_t
;
literal_t
*
parse_regexp
(
parser_ctx_t
*
)
DECLSPEC_HIDDEN
;
literal_t
*
parse_regexp
(
parser_ctx_t
*
);
literal_t
*
new_boolean_literal
(
parser_ctx_t
*
,
BOOL
)
DECLSPEC_HIDDEN
;
literal_t
*
new_boolean_literal
(
parser_ctx_t
*
,
BOOL
);
typedef
struct
_variable_declaration_t
{
typedef
struct
_variable_declaration_t
{
const
WCHAR
*
identifier
;
const
WCHAR
*
identifier
;
...
@@ -378,8 +378,8 @@ typedef struct {
...
@@ -378,8 +378,8 @@ typedef struct {
property_definition_t
*
property_list
;
property_definition_t
*
property_list
;
}
property_value_expression_t
;
}
property_value_expression_t
;
BOOL
try_parse_ccval
(
parser_ctx_t
*
,
ccval_t
*
)
DECLSPEC_HIDDEN
;
BOOL
try_parse_ccval
(
parser_ctx_t
*
,
ccval_t
*
);
BOOL
parse_cc_expr
(
parser_ctx_t
*
)
DECLSPEC_HIDDEN
;
BOOL
parse_cc_expr
(
parser_ctx_t
*
);
static
inline
ccval_t
ccval_num
(
double
n
)
static
inline
ccval_t
ccval_num
(
double
n
)
{
{
...
@@ -407,4 +407,4 @@ static inline double get_ccnum(ccval_t v)
...
@@ -407,4 +407,4 @@ static inline double get_ccnum(ccval_t v)
return
v
.
is_num
?
v
.
u
.
n
:
v
.
u
.
b
;
return
v
.
is_num
?
v
.
u
.
n
:
v
.
u
.
b
;
}
}
jsstr_t
*
compiler_alloc_string_len
(
struct
_compiler_ctx_t
*
,
const
WCHAR
*
,
unsigned
)
DECLSPEC_HIDDEN
;
jsstr_t
*
compiler_alloc_string_len
(
struct
_compiler_ctx_t
*
,
const
WCHAR
*
,
unsigned
);
dlls/jscript/regexp.h
View file @
803834fd
...
@@ -61,10 +61,10 @@ typedef struct regexp_t {
...
@@ -61,10 +61,10 @@ typedef struct regexp_t {
jsbytecode
program
[
1
];
/* regular expression bytecode */
jsbytecode
program
[
1
];
/* regular expression bytecode */
}
regexp_t
;
}
regexp_t
;
regexp_t
*
regexp_new
(
void
*
,
heap_pool_t
*
,
const
WCHAR
*
,
DWORD
,
WORD
,
BOOL
)
DECLSPEC_HIDDEN
;
regexp_t
*
regexp_new
(
void
*
,
heap_pool_t
*
,
const
WCHAR
*
,
DWORD
,
WORD
,
BOOL
);
void
regexp_destroy
(
regexp_t
*
)
DECLSPEC_HIDDEN
;
void
regexp_destroy
(
regexp_t
*
);
HRESULT
regexp_execute
(
regexp_t
*
,
void
*
,
heap_pool_t
*
,
const
WCHAR
*
,
HRESULT
regexp_execute
(
regexp_t
*
,
void
*
,
heap_pool_t
*
,
const
WCHAR
*
,
DWORD
,
match_state_t
*
)
DECLSPEC_HIDDEN
;
DWORD
,
match_state_t
*
);
static
inline
match_state_t
*
alloc_match_state
(
regexp_t
*
regexp
,
static
inline
match_state_t
*
alloc_match_state
(
regexp_t
*
regexp
,
heap_pool_t
*
pool
,
const
WCHAR
*
pos
)
heap_pool_t
*
pool
,
const
WCHAR
*
pos
)
...
...
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