Displaying 6 results from an estimated 6 matches for "argv_pass".
2007 Sep 14
0
4 commits - libswfdec/swfdec_as_function.c libswfdec/swfdec_as_object.c test/trace
...c/swfdec_as_function.c
index 6cc40a4..3af3b46 100644
--- a/libswfdec/swfdec_as_function.c
+++ b/libswfdec/swfdec_as_function.c
@@ -172,6 +172,8 @@ void
swfdec_as_function_apply (SwfdecAsContext *cx, SwfdecAsObject *fun,
guint argc, SwfdecAsValue *argv, SwfdecAsValue *ret)
{
+ SwfdecAsValue *argv_pass = NULL;
+ int length = 0;
SwfdecAsObject *thisp;
if (argc > 0) {
@@ -182,11 +184,10 @@ swfdec_as_function_apply (SwfdecAsContex
if (thisp == NULL)
thisp = swfdec_as_object_new_empty (cx);
- if (argc > 1 && SWFDEC_AS_VALUE_IS_OBJECT (&argv[1]))
- {
- int len...
2008 Jan 07
0
3 commits - libswfdec-gtk/swfdec_gtk_loader.c libswfdec/swfdec_as_array.c libswfdec/swfdec_asbroadcaster.c libswfdec/swfdec_as_function.c libswfdec/swfdec_as_types.c libswfdec/swfdec_xml.c
...0644
--- a/libswfdec/swfdec_as_function.c
+++ b/libswfdec/swfdec_as_function.c
@@ -231,7 +231,7 @@ swfdec_as_function_apply (SwfdecAsContext *cx, SwfdecAsObject *object,
for (i = 0; i < length; i++) {
swfdec_as_object_get_variable (array,
- swfdec_as_double_to_string (cx, i), &argv_pass[i]);
+ swfdec_as_integer_to_string (cx, i), &argv_pass[i]);
}
} else {
length = 0;
diff --git a/libswfdec/swfdec_as_types.c b/libswfdec/swfdec_as_types.c
index 41267ec..8e87a6b 100644
--- a/libswfdec/swfdec_as_types.c
+++ b/libswfdec/swfdec_as_types.c
@@ -214,7 +214,7 @@...
2007 Sep 11
0
8 commits - libswfdec/swfdec_as_function.c libswfdec/swfdec_as_initialize.as libswfdec/swfdec_as_initialize.h libswfdec/swfdec_as_object.c libswfdec/swfdec_as_strings.c test/trace
...fdec_as_value_to_object (cx, &argv[0]);
+ } else {
+ thisp = NULL;
+ }
+ if (thisp == NULL)
+ thisp = swfdec_as_object_new_empty (cx);
+
+ if (argc > 1 && SWFDEC_AS_VALUE_IS_OBJECT (&argv[1]))
+ {
+ int length, i;
+ SwfdecAsObject *array;
+ SwfdecAsValue val, *argv_pass;
+
+ array = SWFDEC_AS_VALUE_GET_OBJECT (&argv[1]);
+
+ swfdec_as_object_get_variable (array, SWFDEC_AS_STR_length, &val);
+ length = swfdec_as_value_to_integer (cx, &val);
+
+ if (length > 0) {
+ argv_pass = g_malloc (sizeof (SwfdecAsValue) * length);
+
+ for (...
2007 Nov 15
0
4 commits - libswfdec/swfdec_asbroadcaster.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame_internal.h libswfdec/swfdec_as_function.c libswfdec/swfdec_as_interpret.c test/trace
...(fun, thisp, argc, argv, ret);
swfdec_as_context_run (cx);
}
@@ -239,7 +238,6 @@ swfdec_as_function_apply (SwfdecAsContext *cx, SwfdecAsObject *object,
}
}
- cx->frame->caller = FALSE; // don't mark this function as the caller
swfdec_as_function_call (fun, thisp, length, argv_pass, ret);
swfdec_as_context_run (cx);
diff --git a/libswfdec/swfdec_asbroadcaster.c b/libswfdec/swfdec_asbroadcaster.c
index 61bb6d0..5ea7d58 100644
--- a/libswfdec/swfdec_asbroadcaster.c
+++ b/libswfdec/swfdec_asbroadcaster.c
@@ -73,7 +73,6 @@ broadcastMessage (SwfdecAsContext *cx, SwfdecAsObjec...
2008 Jun 02
4
[Bug 16206] New: Charts in Yahoo Finance crash swfdec
http://bugs.freedesktop.org/show_bug.cgi?id=16206
Summary: Charts in Yahoo Finance crash swfdec
Product: swfdec
Version: git
Platform: Other
URL: http://finance.yahoo.com/echarts?s=%5EDJI#symbol=%5EDJI;
range=1d
OS/Version: All
Status: NEW
Severity: critical
Priority: medium
2007 Nov 12
0
20 commits - libswfdec/swfdec_as_function.c libswfdec/swfdec_as_string.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_load_object_as.c libswfdec/swfdec_movie_as_drawing.c libswfdec/swfdec_player_as.c
...AsObject *object,
SWFDEC_AS_NATIVE (101, 11, swfdec_as_function_apply)
void
-swfdec_as_function_apply (SwfdecAsContext *cx, SwfdecAsObject *fun,
+swfdec_as_function_apply (SwfdecAsContext *cx, SwfdecAsObject *object,
guint argc, SwfdecAsValue *argv, SwfdecAsValue *ret)
{
SwfdecAsValue *argv_pass = NULL;
int length = 0;
+ SwfdecAsFunction *fun;
SwfdecAsObject *thisp;
- if (argc > 0) {
- thisp = swfdec_as_value_to_object (cx, &argv[0]);
- } else {
- thisp = NULL;
- }
- if (thisp == NULL)
+ SWFDEC_AS_CHECK (SWFDEC_TYPE_AS_FUNCTION, &fun, "O", &this...