Displaying 2 results from an estimated 2 matches for "push_string".
2007 Feb 02
0
Branch 'interpreter' - 6 commits - libswfdec/swfdec_bits.c libswfdec/swfdec_compiler.c libswfdec/swfdec_sprite.c test/swfdec-extract.c
...(CompileState *state, guint
switch (type) {
case 0: /* string */
s = swfdec_bits_skip_string (state->bits);
+ if (s) {
+ compile_state_error (state, "Push: Could not get string");
+ return;
+ }
compile_state_debug_add (state, "Push \"%s\"", s);
push_string (state, s);
break;
@@ -1300,7 +1304,7 @@ swfdec_compile (SwfdecPlayer *player, Sw
name = "Unnamed script";
compile_state_init (player->jscx, bits, version, &state);
SWFDEC_INFO ("Creating new script in frame");
- while ((action = swfdec_bits_get_u8 (bits)))...
2007 Feb 06
0
109 commits - configure.ac libswfdec/js libswfdec/Makefile.am libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_buffer.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_codec_screen.c libswfdec/swfdec_color.c libswfdec/swfdec_color.h
...push_target (state);
- FLASHCALL (state);
-}
-
-static void
-compile_set_variable (CompileState *state, guint action, guint len)
-{
- /* FIXME: handle paths */
- push_target (state);
- FLASHSWAP (state, 3);
- SWAP (state);
- ONELINER (state, JSOP_SETELEM);
- POP (state);
-}
-
-static void
-push_string (CompileState *state, const char *s)
-{
- SWFDEC_LOG ("pushing string: %s", s);
- THREELINER_ATOM (state, JSOP_STRING, s);
-}
-
-static void
-push_double (CompileState *state, double d)
-{
- jsatomid id = atomize_double (state, d);
-
- SWFDEC_LOG ("pushing double: %g", d);
-...