Piotr Caban : jscript: Added some missing functions stubs.

Alexandre Julliard julliard at winehq.org
Tue Oct 6 10:35:52 CDT 2009


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

Author: Piotr Caban <piotr.caban at gmail.com>
Date:   Tue Oct  6 13:11:25 2009 +0200

jscript: Added some missing functions stubs.

---

 dlls/jscript/date.c   |    9 +++++++++
 dlls/jscript/global.c |   27 +++++++++++++++++++++++++++
 2 files changed, 36 insertions(+), 0 deletions(-)

diff --git a/dlls/jscript/date.c b/dlls/jscript/date.c
index 213d994..c753587 100644
--- a/dlls/jscript/date.c
+++ b/dlls/jscript/date.c
@@ -52,6 +52,7 @@ static const WCHAR propertyIsEnumerableW[] =
 static const WCHAR isPrototypeOfW[] = {'i','s','P','r','o','t','o','t','y','p','e','O','f',0};
 static const WCHAR valueOfW[] = {'v','a','l','u','e','O','f',0};
 static const WCHAR toUTCStringW[] = {'t','o','U','T','C','S','t','r','i','n','g',0};
+static const WCHAR toGMTStringW[] = {'t','o','G','M','T','S','t','r','i','n','g',0};
 static const WCHAR toDateStringW[] = {'t','o','D','a','t','e','S','t','r','i','n','g',0};
 static const WCHAR toTimeStringW[] = {'t','o','T','i','m','e','S','t','r','i','n','g',0};
 static const WCHAR toLocaleDateStringW[] = {'t','o','L','o','c','a','l','e','D','a','t','e','S','t','r','i','n','g',0};
@@ -780,6 +781,13 @@ static HRESULT Date_toUTCString(script_ctx_t *ctx, vdisp_t *jsthis, WORD flags,
     return S_OK;
 }
 
+static HRESULT Date_toGMTString(script_ctx_t *ctx, vdisp_t *jsthis, WORD flags, DISPPARAMS *dp,
+        VARIANT *retv, jsexcept_t *ei, IServiceProvider *caller)
+{
+    FIXME("\n");
+    return E_NOTIMPL;
+}
+
 /* ECMA-262 3rd Edition    15.9.5.3 */
 static HRESULT dateobj_to_date_string(DateInstance *date, VARIANT *retv)
 {
@@ -2062,6 +2070,7 @@ static const builtin_prop_t Date_props[] = {
     {setUTCMonthW,           Date_setUTCMonth,           PROPF_METHOD|2},
     {setUTCSecondsW,         Date_setUTCSeconds,         PROPF_METHOD|2},
     {toDateStringW,          Date_toDateString,          PROPF_METHOD},
+    {toGMTStringW,           Date_toGMTString,           PROPF_METHOD},
     {toLocaleDateStringW,    Date_toLocaleDateString,    PROPF_METHOD},
     {toLocaleStringW,        Date_toLocaleString,        PROPF_METHOD},
     {toLocaleTimeStringW,    Date_toLocaleTimeString,    PROPF_METHOD},
diff --git a/dlls/jscript/global.c b/dlls/jscript/global.c
index 366d738..5fd8114 100644
--- a/dlls/jscript/global.c
+++ b/dlls/jscript/global.c
@@ -69,6 +69,9 @@ static const WCHAR ScriptEngineBuildVersionW[] =
 static const WCHAR CollectGarbageW[] = {'C','o','l','l','e','c','t','G','a','r','b','a','g','e',0};
 static const WCHAR MathW[] = {'M','a','t','h',0};
 static const WCHAR encodeURIW[] = {'e','n','c','o','d','e','U','R','I',0};
+static const WCHAR decodeURIW[] = {'d','e','c','o','d','e','U','R','I',0};
+static const WCHAR encodeURIComponentW[] = {'e','n','c','o','d','e','U','R','I','C','o','m','p','o','n','e','n','t',0};
+static const WCHAR decodeURIComponentW[] = {'d','e','c','o','d','e','U','R','I','C','o','m','p','o','n','e','n','t',0};
 
 static const WCHAR undefinedW[] = {'u','n','d','e','f','i','n','e','d',0};
 
@@ -834,6 +837,27 @@ static HRESULT JSGlobal_encodeURI(script_ctx_t *ctx, vdisp_t *jsthis, WORD flags
     return S_OK;
 }
 
+static HRESULT JSGlobal_decodeURI(script_ctx_t *ctx, vdisp_t *jsthis, WORD flags, DISPPARAMS *dp,
+        VARIANT *retv, jsexcept_t *ei, IServiceProvider *sp)
+{
+    FIXME("\n");
+    return E_NOTIMPL;
+}
+
+static HRESULT JSGlobal_encodeURIComponent(script_ctx_t *ctx, vdisp_t *jsthis, WORD flags, DISPPARAMS *dp,
+        VARIANT *retv, jsexcept_t *ei, IServiceProvider *sp)
+{
+    FIXME("\n");
+    return E_NOTIMPL;
+}
+
+static HRESULT JSGlobal_decodeURIComponent(script_ctx_t *ctx, vdisp_t *jsthis, WORD flags, DISPPARAMS *dp,
+        VARIANT *retv, jsexcept_t *ei, IServiceProvider *sp)
+{
+    FIXME("\n");
+    return E_NOTIMPL;
+}
+
 static const builtin_prop_t JSGlobal_props[] = {
     {ActiveXObjectW,             JSGlobal_ActiveXObject,             PROPF_CONSTR},
     {ArrayW,                     JSGlobal_Array,                     PROPF_CONSTR},
@@ -862,7 +886,10 @@ static const builtin_prop_t JSGlobal_props[] = {
     {TypeErrorW,                 JSGlobal_TypeError,                 PROPF_CONSTR},
     {URIErrorW,                  JSGlobal_URIError,                  PROPF_CONSTR},
     {VBArrayW,                   JSGlobal_VBArray,                   PROPF_METHOD},
+    {decodeURIW,                 JSGlobal_decodeURI,                 PROPF_METHOD},
+    {decodeURIComponentW,        JSGlobal_decodeURIComponent,        PROPF_METHOD},
     {encodeURIW,                 JSGlobal_encodeURI,                 PROPF_METHOD},
+    {encodeURIComponentW,        JSGlobal_encodeURIComponent,        PROPF_METHOD},
     {escapeW,                    JSGlobal_escape,                    PROPF_METHOD},
     {evalW,                      JSGlobal_eval,                      PROPF_METHOD|1},
     {isFiniteW,                  JSGlobal_isFinite,                  PROPF_METHOD},




More information about the wine-cvs mailing list