Displaying 8 results from an estimated 8 matches for "swfdec_js_is_movieclip".
2007 Mar 13
0
4 commits - test/swfscript.c
...a/libswfdec/js/jsobj.c b/libswfdec/js/jsobj.c
index 81ac409..0f825ff 100644
--- a/libswfdec/js/jsobj.c
+++ b/libswfdec/js/jsobj.c
@@ -905,7 +905,7 @@ js_obj_toSource(JSContext *cx, JSObject
}
#endif /* JS_HAS_INITIALIZERS || JS_HAS_TOSOURCE */
-extern const JSClass movieclip_class;
+extern int swfdec_js_is_movieclip (JSContext *cx, JSObject *obj);
extern char *swfdec_movie_get_path (void *movieclip);
extern void g_free (void *p);
JSBool
@@ -921,7 +921,7 @@ js_obj_toString(JSContext *cx, JSObject
*rval = STRING_TO_JSVAL(cx->runtime->emptyString);
return JS_TRUE;
}
- if (clasp == &movie...
2007 Mar 05
0
5 commits - libswfdec/swfdec_js.h libswfdec/swfdec_js_movie.c libswfdec/swfdec_script.c test/trace
...} else if (JSVAL_IS_STRING (val)) {
+ type = "string";
+ } else if (JSVAL_IS_VOID (val)) {
+ type = "undefined";
+ } else if (JSVAL_IS_NULL (val)) {
+ type = "null";
+ } else if (JSVAL_IS_OBJECT (val)) {
+ JSObject *obj = JSVAL_TO_OBJECT (val);
+ if (swfdec_js_is_movieclip (cx, obj)) {
+ type = "movieclip";
+ } else if (JS_ObjectIsFunction (cx, obj)) {
+ type = "function";
+ } else {
+ type = "object";
+ }
+ } else {
+ g_assert_not_reached ();
+ return JS_FALSE;
+ }
+ /* can't use InternString here be...
2007 Apr 11
0
Branch 'as' - 4 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_types.c libswfdec/swfdec_as_types.h
...} else if (JSVAL_IS_STRING (val)) {
- type = "string";
- } else if (JSVAL_IS_VOID (val)) {
- type = "undefined";
- } else if (JSVAL_IS_NULL (val)) {
- type = "null";
- } else if (JSVAL_IS_OBJECT (val)) {
- JSObject *obj = JSVAL_TO_OBJECT (val);
- if (swfdec_js_is_movieclip (cx, obj)) {
- type = "movieclip";
- } else if (JS_ObjectIsFunction (cx, obj)) {
- type = "function";
- } else {
- type = "object";
- }
- } else {
- g_assert_not_reached ();
- return JS_FALSE;
+ val = swfdec_as_stack_peek (cx->frame-&...
2007 Mar 12
0
11 commits - libswfdec/js libswfdec/swfdec_loader.c libswfdec/swfdec_root_sprite.c libswfdec/swfdec_script.c player/swfdebug.c player/swfdec_player_manager.c test/trace
...ger->player, arg, &rval)) {
swfdec_player_manager_error (manager, "Invalid command");
diff-tree 05fe373cc29797c23c99d67ae5d61e7b50c7c4f3 (from 40df9ed037067d3fce3c5da2a918881b97497523)
Author: Benjamin Otte <otte@gnome.org>
Date: Mon Mar 12 22:06:28 2007 +0100
use swfdec_js_is_movieclip to get around undefined symbols
diff --git a/libswfdec/js/jsobj.c b/libswfdec/js/jsobj.c
index 81ac409..0f825ff 100644
--- a/libswfdec/js/jsobj.c
+++ b/libswfdec/js/jsobj.c
@@ -905,7 +905,7 @@ js_obj_toSource(JSContext *cx, JSObject
}
#endif /* JS_HAS_INITIALIZERS || JS_HAS_TOSOURCE */
-exter...
2007 Apr 27
0
Changes to 'refs/tags/0.4.3'
...with ActionCallFunction
get rid of undefined symbols
implement ActionExtends
Add 2 new tests for ActionExtends
JSIdArray length should be unsigned
implement ToString, Add and Or actions
test And and Or actions
check undefined to string conversions
use swfdec_js_is_movieclip to get around undefined symbols
JSIDArrays have an unsigned length now
for absolute URIs, print a warning and then load them relative
some small fixes
print ConstantPool id next to the string
Try to reverse engineer the function name for anonymous functions
put t...
2007 Apr 27
0
Changes to 'refs/tags/0.4.4'
...with ActionCallFunction
get rid of undefined symbols
implement ActionExtends
Add 2 new tests for ActionExtends
JSIdArray length should be unsigned
implement ToString, Add and Or actions
test And and Or actions
check undefined to string conversions
use swfdec_js_is_movieclip to get around undefined symbols
JSIDArrays have an unsigned length now
for absolute URIs, print a warning and then load them relative
some small fixes
print ConstantPool id next to the string
Try to reverse engineer the function name for anonymous functions
put t...
2007 Jun 27
0
Branch 'as' - 16 commits - configure.ac libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_function.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_script_function.c
...const char * str,
- jsval val);
-
-JSBool swfdec_js_construct_object (JSContext * cx,
- const JSClass * clasp,
- jsval constructor,
- JSObject ** newp);
-/* support functions */
-const char * swfdec_js_to_string (JSContext * cx,
- jsval val);
-gboolean swfdec_js_is_movieclip (JSContext * cx,
- JSObject * object);
-
-G_END_DECLS
-
-#endif
diff-tree f7040e7c3f3b281d8b48cfd9c6095400c6fe05f2 (from 2a8e3259bd677201c7381d416e7d4fd0c6cfa34e)
Author: Benjamin Otte <otte at gnome.org>
Date: Tue Jun 26 15:23:36 2007 +0200
remove old (and useless) file
diff...
2007 Apr 04
0
Branch 'as' - 4 commits - libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_interpret.h libswfdec/swfdec_as_object.c libswfdec/swfdec_as_types.c libswfdec/swfdec_as_types.h
...} else if (JSVAL_IS_STRING (val)) {
+ type = "string";
+ } else if (JSVAL_IS_VOID (val)) {
+ type = "undefined";
+ } else if (JSVAL_IS_NULL (val)) {
+ type = "null";
+ } else if (JSVAL_IS_OBJECT (val)) {
+ JSObject *obj = JSVAL_TO_OBJECT (val);
+ if (swfdec_js_is_movieclip (cx, obj)) {
+ type = "movieclip";
+ } else if (JS_ObjectIsFunction (cx, obj)) {
+ type = "function";
+ } else {
+ type = "object";
+ }
+ } else {
+ g_assert_not_reached ();
+ return JS_FALSE;
+ }
+ /* can't use InternString here be...