search for: num_remov

Displaying 4 results from an estimated 4 matches for "num_remov".

Did you mean: num_remove
2007 Aug 17
0
2 commits - libswfdec/swfdec_as_array.c test/trace
...ject_new); } -static void +SWFDEC_AS_NATIVE (252, 8, swfdec_as_array_splice) +void swfdec_as_array_splice (SwfdecAsContext *cx, SwfdecAsObject *object, guint argc, SwfdecAsValue *argv, SwfdecAsValue *ret) { - SwfdecAsArray *array = SWFDEC_AS_ARRAY (object); gint32 length, start_index, num_remove, num_add; SwfdecAsObject *object_new; SwfdecAsArray *array_new; @@ -608,7 +668,8 @@ swfdec_as_array_splice (SwfdecAsContext } if (argc > 1) { - num_remove = CLAMP (swfdec_as_value_to_integer (cx, &argv[1]), 0, length - start_index); + num_remove = CLAMP (swfdec_as_value...
2007 Aug 17
0
Branch 'vivi' - 9 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_as_function.c libswfdec/swfdec_as_function.h libswfdec/swfdec_as_internal.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_native_function.c
...ject_new); } -static void +SWFDEC_AS_NATIVE (252, 8, swfdec_as_array_splice) +void swfdec_as_array_splice (SwfdecAsContext *cx, SwfdecAsObject *object, guint argc, SwfdecAsValue *argv, SwfdecAsValue *ret) { - SwfdecAsArray *array = SWFDEC_AS_ARRAY (object); gint32 length, start_index, num_remove, num_add; SwfdecAsObject *object_new; SwfdecAsArray *array_new; @@ -608,7 +668,8 @@ swfdec_as_array_splice (SwfdecAsContext } if (argc > 1) { - num_remove = CLAMP (swfdec_as_value_to_integer (cx, &argv[1]), 0, length - start_index); + num_remove = CLAMP (swfdec_as_value...
2008 Jan 15
0
4 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_as_types.c test/trace
...rt_index, num; SwfdecAsArray *array_new; - if (object == NULL) + if (object == NULL || SWFDEC_IS_MOVIE (object)) return; length = swfdec_as_array_length (object); @@ -857,7 +858,7 @@ swfdec_as_array_splice (SwfdecAsContext *cx, SwfdecAsObject *object, gint32 length, start_index, num_remove, num_add; SwfdecAsArray *array_new; - if (object == NULL || argc == 0) + if (object == NULL || SWFDEC_IS_MOVIE (object) || argc == 0) return; length = swfdec_as_array_length (object); @@ -1277,7 +1278,7 @@ swfdec_as_array_sort (SwfdecAsContext *cx, SwfdecAsObject *object, guint ar...
2007 Dec 20
0
13 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_xml.c libswfdec/swfdec_xml_node.c test/trace
...ce) void -swfdec_as_array_splice (SwfdecAsContext *cx, SwfdecAsObject *object, guint argc, - SwfdecAsValue *argv, SwfdecAsValue *ret) +swfdec_as_array_splice (SwfdecAsContext *cx, SwfdecAsObject *object, + guint argc, SwfdecAsValue *argv, SwfdecAsValue *ret) { gint32 length, start_index, num_remove, num_add; - SwfdecAsObject *object_new; SwfdecAsArray *array_new; if (object == NULL || argc == 0) @@ -879,10 +878,9 @@ swfdec_as_array_splice (SwfdecAsContext *cx, SwfdecAsObject *object, guint argc, num_add = (argc > 2 ? argc - 2 : 0); - object_new = swfdec_as_array_new (cx);...