jscript: Make some functions and variables static.

This commit is contained in:
Alexandre Julliard 2008-12-02 15:26:49 +01:00
parent 05bdac1526
commit f347b957f7
4 changed files with 7 additions and 7 deletions

View File

@ -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};
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,
VARIANT *retv, jsexcept_t *ei, IServiceProvider *sp)

View File

@ -278,7 +278,7 @@ static HRESULT disp_cmp(IDispatch *disp1, IDispatch *disp2, BOOL *ret)
}
/* 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");

View File

@ -110,8 +110,8 @@ struct statement_list_t {
statement_t *tail;
};
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 *new_statement_list(parser_ctx_t*,statement_t*);
static statement_list_t *statement_list_add(statement_list_t*,statement_t*);
typedef struct _parameter_list_t {
parameter_t *head;
@ -1493,7 +1493,7 @@ static source_elements_t *source_elements_add_statement(source_elements_t *sourc
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));
@ -1502,7 +1502,7 @@ statement_list_t *new_statement_list(parser_ctx_t *ctx, statement_t *statement)
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;

View File

@ -181,7 +181,7 @@ typedef enum REOp {
#define REOP_IS_SIMPLE(op) ((op) <= REOP_NCLASS)
const char *reop_names[] = {
static const char *reop_names[] = {
"empty",
"bol",
"eol",