search for: swfdec_as_array_foreach_sort_popul

Displaying 8 results from an estimated 8 matches for "swfdec_as_array_foreach_sort_popul".

2007 Aug 17
0
2 commits - libswfdec/swfdec_as_array.c test/trace
...f (swfdec_as_array_sort_compare (object->context, value, &fdata->undefined, fdata->options, NULL) == 0) + if (swfdec_as_array_sort_compare (object->context, value, &fdata->undefined, + fdata->options, NULL) == 0) return FALSE; return TRUE; } static gboolean -swfdec_as_array_foreach_sort_populate (SwfdecAsObject *object, const char *variable, - SwfdecAsValue *value, guint flags, gpointer data) +swfdec_as_array_foreach_sort_populate (SwfdecAsObject *object, + const char *variable, SwfdecAsValue *value, guint flags, gpointer data) { ForeachSortData *fdata = data; gint32 idx, i...
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
...f (swfdec_as_array_sort_compare (object->context, value, &fdata->undefined, fdata->options, NULL) == 0) + if (swfdec_as_array_sort_compare (object->context, value, &fdata->undefined, + fdata->options, NULL) == 0) return FALSE; return TRUE; } static gboolean -swfdec_as_array_foreach_sort_populate (SwfdecAsObject *object, const char *variable, - SwfdecAsValue *value, guint flags, gpointer data) +swfdec_as_array_foreach_sort_populate (SwfdecAsObject *object, + const char *variable, SwfdecAsValue *value, guint flags, gpointer data) { ForeachSortData *fdata = data; gint32 idx, i...
2007 Dec 23
0
2 commits - libswfdec/swfdec_as_array.c
...rray using indexes based on the fdata->order @@ -1079,6 +1080,7 @@ swfdec_as_array_foreach_sort_indexedarray (SwfdecAsObject *object, } g_assert_not_reached (); + return FALSE; } // sets undefined values in the fdata->object_new array to indexes of undefined @@ -1193,6 +1195,7 @@ swfdec_as_array_foreach_sort_populate (SwfdecAsObject *object, } g_assert_not_reached (); + return FALSE; } static void
2007 Dec 22
1
[Bug 13788] New: Build failure in jhbuild due to "control reaches end of non-void function"
...array_foreach_sort_rename': swfdec_as_array.c:1046: warning: control reaches end of non-void function swfdec_as_array.c: In function 'swfdec_as_array_foreach_sort_indexedarray': swfdec_as_array.c:1082: warning: control reaches end of non-void function swfdec_as_array.c: In function 'swfdec_as_array_foreach_sort_populate': swfdec_as_array.c:1196: warning: control reaches end of non-void function make[4]: *** [libswfdec_0.5_la-swfdec_as_array.lo] Error 1 make[4]: Leaving directory `/home/luca/svn/gnome2/swfdec/libswfdec' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/luca/svn/gnome...
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
...fdata.compare_custom_func = custom_compare_func; fdata.fields = fields; - // don't mark this function as the caller of custom sort function - object->context->frame->caller = FALSE; - // generate fdata.order which points to the values if (!swfdec_as_object_foreach (object, swfdec_as_array_foreach_sort_populate, &fdata)) diff --git a/libswfdec/swfdec_as_frame.c b/libswfdec/swfdec_as_frame.c index 5f0a40d..16546a5 100644 --- a/libswfdec/swfdec_as_frame.c +++ b/libswfdec/swfdec_as_frame.c @@ -378,7 +378,6 @@ swfdec_as_frame_init (SwfdecAsFrame *frame) frame->function_name = "unnamed&quot...
2007 Sep 04
0
4 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_video_movie_as.c test/trace
...UE_IS_UNDEFINED (value)) @@ -861,7 +861,7 @@ swfdec_as_array_foreach_sort_compare_und gint32 idx; idx = swfdec_as_array_to_index (variable); - if (idx == -1) + if (idx == -1 || idx >= fdata->length) return TRUE; if (SWFDEC_AS_VALUE_IS_UNDEFINED (value)) @@ -886,7 +886,7 @@ swfdec_as_array_foreach_sort_populate (S gint cval = -1; idx = swfdec_as_array_to_index (variable); - if (idx == -1) + if (idx == -1 || idx >= fdata->length) return TRUE; if (SWFDEC_AS_VALUE_IS_UNDEFINED (value)) @@ -943,11 +943,6 @@ swfdec_as_array_sort (SwfdecAsContext *c ForeachSortData fdata; guin...
2007 Jul 21
0
12 commits - configure.ac doc/Makefile.am doc/swfdec-sections.txt libswfdec/jpeg libswfdec/swfdec_as_array.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_strings.c libswfdec/swfdec_player.c libswfdec/swfdec_player.h libswfdec/swfdec_player_internal.h
...ter data) { ForeachSortData *fdata = data; - gint32 index; + gint32 idx; - index = swfdec_as_array_to_index (variable); - if (index == -1) + idx = swfdec_as_array_to_index (variable); + if (idx == -1) return TRUE; if (SWFDEC_AS_VALUE_IS_UNDEFINED (value)) @@ -822,11 +822,11 @@ swfdec_as_array_foreach_sort_populate (S SwfdecAsValue *value, guint flags, gpointer data) { ForeachSortData *fdata = data; - gint32 index, i; + gint32 idx, i; gint cval = -1; - index = swfdec_as_array_to_index (variable); - if (index == -1) + idx = swfdec_as_array_to_index (variable); + if (idx == -1) retur...
2007 Dec 20
0
13 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_xml.c libswfdec/swfdec_xml_node.c test/trace
...ray using indexes based on the fdata->order @@ -1083,8 +1079,6 @@ swfdec_as_array_foreach_sort_indexedarray (SwfdecAsObject *object, } g_assert_not_reached (); - - return TRUE; } // sets undefined values in the fdata->object_new array to indexes of undefined @@ -1201,8 +1195,6 @@ swfdec_as_array_foreach_sort_populate (SwfdecAsObject *object, } g_assert_not_reached (); - - return TRUE; } static void @@ -1261,9 +1253,9 @@ swfdec_as_array_do_sort (SwfdecAsObject *object, gint32 options, // make a new array and fill it with numbers based on the order fdata.object_new = swfdec_as_array_new...