jscript: Make some functions and variables static.
This commit is contained in:
parent
05bdac1526
commit
f347b957f7
|
@ -47,7 +47,7 @@ static const WCHAR propertyIsEnumerableW[] =
|
||||||
{'p','r','o','p','e','r','t','y','I','s','E','n','u','m','e','r','a','b','l','e',0};
|
{'p','r','o','p','e','r','t','y','I','s','E','n','u','m','e','r','a','b','l','e',0};
|
||||||
static const WCHAR isPrototypeOfW[] = {'i','s','P','r','o','t','o','t','y','p','e','O','f',0};
|
static const WCHAR isPrototypeOfW[] = {'i','s','P','r','o','t','o','t','y','p','e','O','f',0};
|
||||||
|
|
||||||
const WCHAR default_separatorW[] = {',',0};
|
static const WCHAR default_separatorW[] = {',',0};
|
||||||
|
|
||||||
static HRESULT Array_length(DispatchEx *dispex, LCID lcid, WORD flags, DISPPARAMS *dp,
|
static HRESULT Array_length(DispatchEx *dispex, LCID lcid, WORD flags, DISPPARAMS *dp,
|
||||||
VARIANT *retv, jsexcept_t *ei, IServiceProvider *sp)
|
VARIANT *retv, jsexcept_t *ei, IServiceProvider *sp)
|
||||||
|
|
|
@ -278,7 +278,7 @@ static HRESULT disp_cmp(IDispatch *disp1, IDispatch *disp2, BOOL *ret)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ECMA-262 3rd Edition 11.9.6 */
|
/* ECMA-262 3rd Edition 11.9.6 */
|
||||||
HRESULT equal2_values(VARIANT *lval, VARIANT *rval, BOOL *ret)
|
static HRESULT equal2_values(VARIANT *lval, VARIANT *rval, BOOL *ret)
|
||||||
{
|
{
|
||||||
TRACE("\n");
|
TRACE("\n");
|
||||||
|
|
||||||
|
|
|
@ -110,8 +110,8 @@ struct statement_list_t {
|
||||||
statement_t *tail;
|
statement_t *tail;
|
||||||
};
|
};
|
||||||
|
|
||||||
statement_list_t *new_statement_list(parser_ctx_t*,statement_t*);
|
static statement_list_t *new_statement_list(parser_ctx_t*,statement_t*);
|
||||||
statement_list_t *statement_list_add(statement_list_t*,statement_t*);
|
static statement_list_t *statement_list_add(statement_list_t*,statement_t*);
|
||||||
|
|
||||||
typedef struct _parameter_list_t {
|
typedef struct _parameter_list_t {
|
||||||
parameter_t *head;
|
parameter_t *head;
|
||||||
|
@ -1493,7 +1493,7 @@ static source_elements_t *source_elements_add_statement(source_elements_t *sourc
|
||||||
return source_elements;
|
return source_elements;
|
||||||
}
|
}
|
||||||
|
|
||||||
statement_list_t *new_statement_list(parser_ctx_t *ctx, statement_t *statement)
|
static statement_list_t *new_statement_list(parser_ctx_t *ctx, statement_t *statement)
|
||||||
{
|
{
|
||||||
statement_list_t *ret = parser_alloc_tmp(ctx, sizeof(statement_list_t));
|
statement_list_t *ret = parser_alloc_tmp(ctx, sizeof(statement_list_t));
|
||||||
|
|
||||||
|
@ -1502,7 +1502,7 @@ statement_list_t *new_statement_list(parser_ctx_t *ctx, statement_t *statement)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
statement_list_t *statement_list_add(statement_list_t *list, statement_t *statement)
|
static statement_list_t *statement_list_add(statement_list_t *list, statement_t *statement)
|
||||||
{
|
{
|
||||||
list->tail = list->tail->next = statement;
|
list->tail = list->tail->next = statement;
|
||||||
|
|
||||||
|
|
|
@ -181,7 +181,7 @@ typedef enum REOp {
|
||||||
|
|
||||||
#define REOP_IS_SIMPLE(op) ((op) <= REOP_NCLASS)
|
#define REOP_IS_SIMPLE(op) ((op) <= REOP_NCLASS)
|
||||||
|
|
||||||
const char *reop_names[] = {
|
static const char *reop_names[] = {
|
||||||
"empty",
|
"empty",
|
||||||
"bol",
|
"bol",
|
||||||
"eol",
|
"eol",
|
||||||
|
|
Loading…
Reference in New Issue