Alexandre Julliard : jscript: Make some functions and variables static.

Alexandre Julliard julliard at winehq.org
Tue Dec 2 11:02:07 CST 2008


Module: wine
Branch: master
Commit: f347b957f794b5dbd95ad4732c0a507c4d59ae41
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=f347b957f794b5dbd95ad4732c0a507c4d59ae41

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Tue Dec  2 15:26:49 2008 +0100

jscript: Make some functions and variables static.

---

 dlls/jscript/array.c  |    2 +-
 dlls/jscript/engine.c |    2 +-
 dlls/jscript/parser.y |    8 ++++----
 dlls/jscript/regexp.c |    2 +-
 4 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/dlls/jscript/array.c b/dlls/jscript/array.c
index 5e94f95..8f0802e 100644
--- a/dlls/jscript/array.c
+++ b/dlls/jscript/array.c
@@ -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)
diff --git a/dlls/jscript/engine.c b/dlls/jscript/engine.c
index ecf62ae..063bd60 100644
--- a/dlls/jscript/engine.c
+++ b/dlls/jscript/engine.c
@@ -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");
 
diff --git a/dlls/jscript/parser.y b/dlls/jscript/parser.y
index c96f8a3..9f3b6d4 100644
--- a/dlls/jscript/parser.y
+++ b/dlls/jscript/parser.y
@@ -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;
 
diff --git a/dlls/jscript/regexp.c b/dlls/jscript/regexp.c
index 9187b46..c531f26 100644
--- a/dlls/jscript/regexp.c
+++ b/dlls/jscript/regexp.c
@@ -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",




More information about the wine-cvs mailing list