Displaying 6 results from an estimated 6 matches for "swfdec_as_str_".
2008 Jan 02
0
4 commits - libswfdec/Makefile.am libswfdec/swfdec_movie.c libswfdec/swfdec_shape_parser.c test/dump.c test/trace
...len; i++) {
commit db546facec9f7fb973c577586dc3796c6e2126ec
Author: Benjamin Otte <otte at gnome.org>
Date: Wed Jan 2 13:16:12 2008 +0100
treat $version as a normal property
Also make strings with a $ in them use that $ sign, so the "$version"
string evaluates to SWFDEC_AS_STR_$version.
I hope that change didn't break too many shell escaping rules...
diff --git a/libswfdec/Makefile.am b/libswfdec/Makefile.am
index 322529c..78cdf62 100644
--- a/libswfdec/Makefile.am
+++ b/libswfdec/Makefile.am
@@ -365,7 +365,7 @@ swfdec_as_strings.h: swfdec_as_strings.c
&&...
2007 Oct 14
0
2 commits - configure.ac libswfdec/Makefile.am libswfdec/swfdec_as_strings.c
....*\)\").*/\1/" \
+ | $(AWK) '{ if ($$0 == "") name = "EMPTY"; else if ($$0 == ",") name = "COMMA"; else if ($$0 == "/") name = "SLASH"; else name = $$0; gsub("[^a-zA-Z0-9]","_",name); print "#define SWFDEC_AS_STR_" name " &swfdec_as_strings[" x + 1 "]"; x = x + length ($$0) + 2 }' \
+ && echo -e "\n#endif" ) > xgen-sas \
+ && (cmp -s xgen-sas swfdec_as_strings.h || cp xgen-sas swfdec_as_strings.h ) \
&& rm -f xgen-sas
diff --git a/libs...
2007 Jul 03
0
Branch 'as' - 7 commits - libswfdec/swfdec_as_math.c libswfdec/swfdec_as_object.c libswfdec/swfdec_movie.c libswfdec/swfdec_sprite_movie.c test/trace
...ad2468a 100644
--- a/libswfdec/swfdec_as_math.c
+++ b/libswfdec/swfdec_as_math.c
@@ -136,21 +136,21 @@ swfdec_as_math_init_context (SwfdecAsCon
/* set the right properties on the Math object */
SWFDEC_AS_VALUE_SET_NUMBER (&val, G_E);
- swfdec_as_object_set_variable (context->global, SWFDEC_AS_STR_E, &val);
+ swfdec_as_object_set_variable (math, SWFDEC_AS_STR_E, &val);
SWFDEC_AS_VALUE_SET_NUMBER (&val, G_LN10);
- swfdec_as_object_set_variable (context->global, SWFDEC_AS_STR_LN10, &val);
+ swfdec_as_object_set_variable (math, SWFDEC_AS_STR_LN10, &val);
SWFDEC_AS...
2008 Jan 17
0
libswfdec/Makefile.am
...\").*/\1/" \
| $(AWK) '{ if ($$0 == "") name = "EMPTY"; else if ($$0 == ",") name = "COMMA"; else if ($$0 == "/") name = "SLASH"; else name = $$0; gsub("[^a-zA-Z0-9\\$$]","_",name); print "#define SWFDEC_AS_STR_" name " &swfdec_as_strings[" x + 1 "]"; x = x + length ($$0) + 2 }' \
- && echo -e "\n#endif" ) > xgen-sas \
+ && echo "#endif" ) > xgen-sas \
&& (cmp -s xgen-sas swfdec_as_strings.h || cp xgen-sas swfdec_as_st...
2007 Aug 22
0
5 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_as_boolean.c libswfdec/swfdec_as_function.c libswfdec/swfdec_as_math.c libswfdec/swfdec_as_number.c libswfdec/swfdec_as_script_function.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h
..._as_array.c
index 28888ae..273b083 100644
--- a/libswfdec/swfdec_as_array.c
+++ b/libswfdec/swfdec_as_array.c
@@ -108,7 +108,8 @@ swfdec_as_array_set_length (SwfdecAsObje
g_return_if_fail (object != NULL);
SWFDEC_AS_VALUE_SET_INT (&val, length);
- swfdec_as_object_set_variable (object, SWFDEC_AS_STR_length, &val);
+ swfdec_as_object_set_variable_and_flags (object, SWFDEC_AS_STR_length, &val,
+ SWFDEC_AS_VARIABLE_HIDDEN | SWFDEC_AS_VARIABLE_PERMANENT);
}
typedef struct {
diff --git a/libswfdec/swfdec_as_boolean.c b/libswfdec/swfdec_as_boolean.c
index b883868..c241de8 100644
---...
2007 Dec 03
0
12 commits - libswfdec/Makefile.am libswfdec/swfdec_as_strings.c libswfdec/swfdec_as_types.c libswfdec/swfdec_as_types.h libswfdec/swfdec_gradient_pattern.c libswfdec/swfdec_gradient_pattern.h libswfdec/swfdec_movie_as_drawing.c libswfdec/swfdec_pattern.c
...swfdec_path_move_to (&draw->path, movie->draw_x, movie->draw_y);
swfdec_sprite_movie_end_fill (movie, draw);
}
+static inline guint
+swfdec_sprite_movie_gradient_fill_get_length (SwfdecAsObject *o)
+{
+ int length;
+ SwfdecAsValue val;
+
+ swfdec_as_object_get_variable (o, SWFDEC_AS_STR_length, &val);
+ length = swfdec_as_value_to_integer (o->context, &val);
+ return MAX (length, 0);
+}
+
+static int
+swfdec_sprite_movie_gradient_fill_check_length (SwfdecAsObject *colors, SwfdecAsObject *alphas, SwfdecAsObject *ratios)
+{
+ guint c, a, r;
+
+ c = swfdec_sprite_movie_...