Jacek Caban : jscript: Moved return_type_t declaration to engine.c.

Alexandre Julliard julliard at winehq.org
Tue Oct 25 13:50:28 CDT 2011


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

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Tue Oct 25 11:56:36 2011 +0200

jscript: Moved return_type_t declaration to engine.c.

---

 dlls/jscript/engine.c |   10 ++++++++++
 dlls/jscript/engine.h |   10 +---------
 2 files changed, 11 insertions(+), 9 deletions(-)

diff --git a/dlls/jscript/engine.c b/dlls/jscript/engine.c
index 160a67b..130fe41 100644
--- a/dlls/jscript/engine.c
+++ b/dlls/jscript/engine.c
@@ -32,6 +32,16 @@ WINE_DEFAULT_DEBUG_CHANNEL(jscript);
 #define EXPR_NEWREF  0x0002
 #define EXPR_STRREF  0x0004
 
+struct _return_type_t {
+    enum{
+        RT_NORMAL,
+        RT_RETURN,
+        RT_BREAK,
+        RT_CONTINUE
+    } type;
+    jsexcept_t ei;
+};
+
 static inline HRESULT stat_eval(script_ctx_t *ctx, statement_t *stat, return_type_t *rt, VARIANT *ret)
 {
     return stat->eval(ctx, stat, rt, ret);
diff --git a/dlls/jscript/engine.h b/dlls/jscript/engine.h
index 306e962..9b2e2b5 100644
--- a/dlls/jscript/engine.h
+++ b/dlls/jscript/engine.h
@@ -156,15 +156,7 @@ typedef struct _variable_declaration_t {
     struct _variable_declaration_t *next;
 } variable_declaration_t;
 
-typedef struct {
-    enum{
-        RT_NORMAL,
-        RT_RETURN,
-        RT_BREAK,
-        RT_CONTINUE
-    } type;
-    jsexcept_t ei;
-} return_type_t;
+typedef struct _return_type_t return_type_t;
 
 typedef HRESULT (*statement_eval_t)(script_ctx_t*,statement_t*,return_type_t*,VARIANT*);
 




More information about the wine-cvs mailing list