]> git.pld-linux.org Git - packages/gjs.git/commitdiff
- obsolete
authorŁukasz Kieś <kiesiu@pld-linux.org>
Wed, 18 Jan 2012 22:38:03 +0000 (22:38 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    jsval.patch -> 1.3

jsval.patch [deleted file]

diff --git a/jsval.patch b/jsval.patch
deleted file mode 100644 (file)
index bae9509..0000000
+++ /dev/null
@@ -1,107 +0,0 @@
---- gjs-1.30.0/modules/console.c.wiget 2011-12-27 16:42:01.069979148 +0100
-+++ gjs-1.30.0/modules/console.c       2011-12-27 16:42:40.418340591 +0100
-@@ -224,7 +224,7 @@ gjs_console_interact(JSContext *context,
-         if (JS_GetPendingException(context, &result)) {
-             str = JS_ValueToString(context, result);
-             JS_ClearPendingException(context);
--        } else if (result == JSVAL_VOID) {
-+        } else if (JSVAL_IS_VOID(result)) {
-             goto next;
-         } else {
-             str = JS_ValueToString(context, result);
---- gjs-1.30.0/gjs/byteArray.c.wiget   2011-12-27 16:37:55.066927188 +0100
-+++ gjs-1.30.0/gjs/byteArray.c 2011-12-27 16:38:50.964585277 +0100
-@@ -775,7 +775,7 @@ from_array_func(JSContext *context,
-             goto out;
-         }
--        if (elem == JSVAL_VOID)
-+        if (JSVAL_IS_VOID(elem))
-             continue;
-         if (!gjs_value_to_byte(context, elem, &b))
---- gjs-1.30.0/gjs/importer.c.wiget    2011-12-27 16:42:55.094396523 +0100
-+++ gjs-1.30.0/gjs/importer.c  2011-12-27 16:45:12.555353498 +0100
-@@ -534,7 +534,7 @@ do_import(JSContext  *context,
-             goto out;
-         }
--        if (elem == JSVAL_VOID)
-+        if (JSVAL_IS_VOID(elem))
-             continue;
-         if (!JSVAL_IS_STRING(elem)) {
-@@ -566,7 +566,7 @@ do_import(JSContext  *context,
-                                         module_obj,
-                                         name,
-                                         &obj_val)) {
--                if (obj_val != JSVAL_VOID &&
-+                if (!JSVAL_IS_VOID(obj_val) &&
-                     JS_DefineProperty(context, obj,
-                                       name, obj_val,
-                                       NULL, NULL,
-@@ -793,7 +793,7 @@ importer_new_enumerate(JSContext  *conte
-                 return JS_FALSE;
-             }
--            if (elem == JSVAL_VOID)
-+            if (JSVAL_IS_VOID(elem))
-                 continue;
-             if (!JSVAL_IS_STRING(elem)) {
-@@ -868,7 +868,7 @@ importer_new_enumerate(JSContext  *conte
-             return JS_FALSE;
-         }
--        if (*state_p == JSVAL_NULL) /* Iterating prototype */
-+        if (JSVAL_IS_NULL(*state_p)) /* Iterating prototype */
-             return JS_TRUE;
-         iter = JSVAL_TO_PRIVATE(*state_p);
-@@ -890,7 +890,7 @@ importer_new_enumerate(JSContext  *conte
-     }
-     case JSENUMERATE_DESTROY: {
--        if (state_p && *state_p != JSVAL_NULL) {
-+        if (state_p && JSVAL_IS_NULL(*state_p)) {
-             iter = JSVAL_TO_PRIVATE(*state_p);
-             importer_iterator_free(iter);
---- gjs-1.30.0/gjs/jsapi-util.c.wiget  2011-12-27 16:52:47.661184351 +0100
-+++ gjs-1.30.0/gjs/jsapi-util.c        2011-12-27 16:54:56.850873130 +0100
-@@ -407,7 +407,7 @@ gjs_object_get_property(JSContext  *cont
-     JS_EndRequest(context);
--    return value != JSVAL_VOID;
-+    return JSVAL_IS_VOID(value);
- }
- /* Returns whether the object had the property; if the object did
-@@ -434,7 +434,7 @@ gjs_object_require_property(JSContext
-     if (value_p)
-         *value_p = value;
--    if (value != JSVAL_VOID) {
-+    if (JSVAL_IS_VOID(value)) {
-         JS_ClearPendingException(context); /* in case JS_GetProperty() was on crack */
-         JS_EndRequest(context);
-         return TRUE;
-@@ -550,7 +550,7 @@ gjs_init_class_dynamic(JSContext      *c
-                                          class_copy->base.name, &value))
-             goto error;
-     }
--    g_assert(value != JSVAL_VOID);
-+    g_assert(JSVAL_IS_VOID(value));
-     g_assert(prototype != NULL);
-     /* Now manually define our constructor with a sane name, in the
-@@ -1277,7 +1277,7 @@ gjs_get_type_name(jsval value)
- {
-     if (JSVAL_IS_NULL(value)) {
-         return "null";
--    } else if (value == JSVAL_VOID) {
-+    } else if (JSVAL_IS_VOID(value)) {
-         return "undefined";
-     } else if (JSVAL_IS_INT(value)) {
-         return "integer";
This page took 0.034946 seconds and 4 git commands to generate.