search for: indexvar

Displaying 5 results from an estimated 5 matches for "indexvar".

Did you mean: indexval
2004 Sep 14
3
reshaping some data
Hi all, I have a data.frame with the following colnames pattern: x1 y11 x2 y21 y22 y23 x3 y31 y32 ... I.e. I have an x followed by a few y's. What I would like to do is turn this wide format into a tall format with two columns: "x", "y". The structure is that xi needs to be associated with yij (e.g. x1 should next to y11 and y12, x2 should be next to y21, y22, and
2007 Aug 19
0
2 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_as_super.c libswfdec/swfdec_as_with.c libswfdec/swfdec_movie.c libswfdec/swfdec_player.c libswfdec/swfdec_sprite_movie.c
...swfdec_as_array.c +++ b/libswfdec/swfdec_as_array.c @@ -332,7 +332,7 @@ swfdec_as_array_add (SwfdecAsObject *obj static void swfdec_as_array_set (SwfdecAsObject *object, const char *variable, - const SwfdecAsValue *val) + const SwfdecAsValue *val, guint flags) { char *end; gboolean indexvar = TRUE; @@ -353,7 +353,7 @@ swfdec_as_array_set (SwfdecAsObject *obj } SWFDEC_AS_OBJECT_CLASS (swfdec_as_array_parent_class)->set (object, variable, - val); + val, flags); // if we added new value outside the current length, set a bigger length if (indexvar) { diff --gi...
2007 Aug 17
0
2 commits - libswfdec/swfdec_as_array.c test/trace
...ect *obj } static void -swfdec_as_array_set (SwfdecAsObject *object, const char *variable, const SwfdecAsValue *val) +swfdec_as_array_set (SwfdecAsObject *object, const char *variable, + const SwfdecAsValue *val) { - gint32 l = swfdec_as_array_to_index (variable); + char *end; + gboolean indexvar = TRUE; + gint32 l = strtoul (variable, &end, 10); + + if (*end != 0 || l > G_MAXINT32) + indexvar = FALSE; // if we changed to smaller length, destroy all values that are outside it if (!strcmp (variable, SWFDEC_AS_STR_length)) { gint32 length_old = swfdec_as_array_get_len...
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
...ect *obj } static void -swfdec_as_array_set (SwfdecAsObject *object, const char *variable, const SwfdecAsValue *val) +swfdec_as_array_set (SwfdecAsObject *object, const char *variable, + const SwfdecAsValue *val) { - gint32 l = swfdec_as_array_to_index (variable); + char *end; + gboolean indexvar = TRUE; + gint32 l = strtoul (variable, &end, 10); + + if (*end != 0 || l > G_MAXINT32) + indexvar = FALSE; // if we changed to smaller length, destroy all values that are outside it if (!strcmp (variable, SWFDEC_AS_STR_length)) { gint32 length_old = swfdec_as_array_get_len...
2007 Aug 20
0
Branch 'vivi' - 60 commits - libswfdec-gtk/swfdec_gtk_loader.c libswfdec/Makefile.am libswfdec/swfdec_as_array.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame_internal.h libswfdec/swfdec_as_interpret.c
...swfdec_as_array.c +++ b/libswfdec/swfdec_as_array.c @@ -332,7 +332,7 @@ swfdec_as_array_add (SwfdecAsObject *obj static void swfdec_as_array_set (SwfdecAsObject *object, const char *variable, - const SwfdecAsValue *val) + const SwfdecAsValue *val, guint flags) { char *end; gboolean indexvar = TRUE; @@ -353,7 +353,7 @@ swfdec_as_array_set (SwfdecAsObject *obj } SWFDEC_AS_OBJECT_CLASS (swfdec_as_array_parent_class)->set (object, variable, - val); + val, flags); // if we added new value outside the current length, set a bigger length if (indexvar) { diff --gi...