Displaying 5 results from an estimated 5 matches for "swfdec_as_array_length".
2007 Nov 14
0
2 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_asbroadcaster.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_string.c libswfdec/swfdec_color_as.c libswfdec/swfdec_initialize.as
...o make the function work on non-Arrays
if (argc > 0) {
@@ -650,6 +659,9 @@ swfdec_as_array_do_pop (SwfdecAsContext *cx, SwfdecAsObject *object, guint argc,
gint32 length;
const char *var;
+ if (object == NULL)
+ return;
+
// we allow negative indexes here, but not 0
length = swfdec_as_array_length_as_integer (object);
if (length == 0)
@@ -674,6 +686,9 @@ swfdec_as_array_do_unshift (SwfdecAsContext *cx, SwfdecAsObject *object,
{
gint32 length;
+ if (object == NULL)
+ return;
+
if (argc) {
// don't allow negative length
length = swfdec_as_array_length (object);
@@...
2008 Jan 15
0
4 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_as_types.c test/trace
...ULL || SWFDEC_IS_MOVIE (object))
return;
// don't allow negative length
@@ -760,7 +761,7 @@ swfdec_as_array_reverse (SwfdecAsContext *cx, SwfdecAsObject *object,
{
gint32 length;
- if (object == NULL)
+ if (object == NULL || SWFDEC_IS_MOVIE (object))
return;
length = swfdec_as_array_length (object);
@@ -780,7 +781,7 @@ swfdec_as_array_concat (SwfdecAsContext *cx, SwfdecAsObject *object,
SwfdecAsArray *array_new;
const char *var;
- if (object == NULL)
+ if (object == NULL || SWFDEC_IS_MOVIE (object))
return;
object_new = swfdec_as_array_new (cx);
@@ -816,7 +817,7 @...
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
...;
}
SWFDEC_AS_NATIVE (252, 11, swfdec_as_array_reverse)
@@ -801,7 +799,7 @@ swfdec_as_array_concat (SwfdecAsContext *cx, SwfdecAsObject *object,
}
else
{
- var = swfdec_as_double_to_string (object->context,
+ var = swfdec_as_integer_to_string (object->context,
swfdec_as_array_length (object_new));
swfdec_as_object_set_variable (object_new, var, &argv[j]);
}
@@ -1036,7 +1034,7 @@ swfdec_as_array_foreach_sort_rename (SwfdecAsObject *object,
// leave room for undefined values
if (after_undefined)
i += fdata->length - fdata->defined_values - 1...
2007 Dec 20
0
13 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_xml.c libswfdec/swfdec_xml_node.c test/trace
...ppend_array_range, &fdata);
}
static void
-swfdec_as_array_append_array (SwfdecAsArray *array_to, SwfdecAsObject *object_from)
+swfdec_as_array_append_array (SwfdecAsArray *array_to,
+ SwfdecAsObject *object_from)
{
swfdec_as_array_append_array_range (array_to, object_from, 0,
swfdec_as_array_length (object_from));
@@ -652,8 +654,8 @@ swfdec_as_array_do_push (SwfdecAsContext *cx, SwfdecAsObject *object,
SWFDEC_AS_NATIVE (252, 2, swfdec_as_array_do_pop)
void
-swfdec_as_array_do_pop (SwfdecAsContext *cx, SwfdecAsObject *object, guint argc,
- SwfdecAsValue *argv, SwfdecAsValue *ret)
+swfde...
2007 Oct 12
0
Changes to 'refs/tags/0.5.3'
...version 5.
Don't add attachVideo and clear to the Video object in version 5
Re-enable Array.sort for normal objects.
Expand array test to check changes in last commit.
Merge branch 'master' into xml
Add test of XML properties for version 5 also
Rename swfdec_as_array_length to swfdec_as_array_get_length
Add swfdec_as_array_insert_with_flags function
Improve Array documentation
Ignore swfdec_xml_node.h when generating documentation. Remove an old comment.
Add missing propflags-5.swf and .trace
Update system-capabilities-query-5.swf
M...