search for: swfdec_as_type_undefin

Displaying 13 results from an estimated 13 matches for "swfdec_as_type_undefin".

2007 Apr 12
0
Branch 'as' - 14 commits - libswfdec-gtk/swfdec_playback_alsa.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_function.c libswfdec/swfdec_as_function.h
...index cd42487..591d53c 100644 --- a/player/swfdec_debug_stack.c +++ b/player/swfdec_debug_stack.c @@ -39,17 +39,17 @@ static const char * swfdec_get_value_type (SwfdecAsContext *cx, SwfdecAsValue *value) { switch (value->type) { - case SWFDEC_TYPE_AS_UNDEFINED: + case SWFDEC_AS_TYPE_UNDEFINED: return "undefined"; - case SWFDEC_TYPE_AS_NULL: + case SWFDEC_AS_TYPE_NULL: return "null"; - case SWFDEC_TYPE_AS_NUMBER: + case SWFDEC_AS_TYPE_NUMBER: return "Number"; - case SWFDEC_TYPE_AS_BOOLEAN: + case SWFDEC_AS_TYPE_BOOLEA...
2007 May 29
0
Branch 'as' - 8 commits - libswfdec/Makefile.am libswfdec/swfdec_as_array.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_math.c libswfdec/swfdec_as_math.h libswfdec/swfdec_as_strings.c libswfdec/swfdec_as_types.c
...l; SwfdecAsType ltype, rtype; + double l, r; gboolean cond; rval = swfdec_as_stack_peek (cx->frame->stack, 1); lval = swfdec_as_stack_peek (cx->frame->stack, 2); ltype = lval->type; rtype = rval->type; - if (ltype == rtype) { - switch (ltype) { - case SWFDEC_AS_TYPE_UNDEFINED: - case SWFDEC_AS_TYPE_NULL: - cond = TRUE; - break; - case SWFDEC_AS_TYPE_BOOLEAN: - cond = SWFDEC_AS_VALUE_GET_BOOLEAN (lval) == SWFDEC_AS_VALUE_GET_BOOLEAN (rval); - break; - case SWFDEC_AS_TYPE_NUMBER: - cond = SWFDEC_AS_VALUE_GET_NUMBER (lval) == SWFDEC_AS_VALUE_GET_NUMBER (rv...
2008 Jun 02
4
[Bug 16206] New: Charts in Yahoo Finance crash swfdec
http://bugs.freedesktop.org/show_bug.cgi?id=16206 Summary: Charts in Yahoo Finance crash swfdec Product: swfdec Version: git Platform: Other URL: http://finance.yahoo.com/echarts?s=%5EDJI#symbol=%5EDJI; range=1d OS/Version: All Status: NEW Severity: critical
2007 Jun 28
0
Branch 'as' - 4 commits - doc/Makefile.am doc/swfdec-docs.sgml doc/swfdec-sections.txt libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_types.c libswfdec/swfdec_as_types.h
...uitable in some cases. + * A different possibiltiy is accessing the values directly using the accessor + * macros. You must check the type before doing so though. For setting values, + * there only exist macros, since type conversion is not necessary. + */ + +/** + * SwfdecAsValueType: + * @SWFDEC_AS_TYPE_UNDEFINED: the special undefined value + * @SWFDEC_AS_TYPE_BOOLEAN: a boolean value - true or false + * @SWFDEC_AS_TYPE_INT: reserved value for integers. Should the need arise for + * performance enhancements - especially on embedded + * devices - it might be usef...
2008 Apr 12
2
[Bug 15471] New: segmentation fault while seeking in youtube.com
...0xc8973c8, rval=0xbfcc66b0) at swfdec_net_stream_as.c:139 d = 88.966131907308394 #3 0xb225b55c in swfdec_as_context_run (context=0xa846980) at swfdec_as_context.c:887 argv = (SwfdecAsValue *) 0xc8973c8 native = (SwfdecAsNativeFunction *) 0xab80228 rval = {type = SWFDEC_AS_TYPE_UNDEFINED, value = {boolean = 0, number = 0, string = 0x0, object = 0x0}} frame = (SwfdecAsFrame *) 0xdce4670 last_frame = (SwfdecAsFrame *) 0x0 spec = (const SwfdecActionSpec *) 0xb230bd30 startpc = (const guint8 *) 0xb15cd08 "CWS\a?\206\001" pc = &lt...
2007 Aug 15
0
Branch 'vivi' - 13 commits - doc/swfdec-sections.txt libswfdec/swfdec_as_debugger.h libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_types.h vivified/core vivified/ui
...ct, wrap); + return wrap; +} + +void +vivi_wrap_value (ViviApplication *app, SwfdecAsValue *dest, const SwfdecAsValue *src) +{ + g_return_if_fail (VIVI_IS_APPLICATION (app)); + g_return_if_fail (dest != NULL); + g_return_if_fail (SWFDEC_IS_AS_VALUE (src)); + + switch (src->type) { + case SWFDEC_AS_TYPE_UNDEFINED: + case SWFDEC_AS_TYPE_BOOLEAN: + case SWFDEC_AS_TYPE_NUMBER: + case SWFDEC_AS_TYPE_NULL: + *dest = *src; + break; + case SWFDEC_AS_TYPE_STRING: + SWFDEC_AS_VALUE_SET_STRING (dest, + swfdec_as_context_get_string (SWFDEC_AS_CONTEXT (app), + SWFDEC_AS_VALUE_GET_STRI...
2007 Aug 24
0
7 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.h libswfdec/swfdec_as_string.c test/trace
...de "swfdec_as_string.h" #include "swfdec_as_strings.h" #include "swfdec_as_super.h" #include "swfdec_as_with.h" @@ -552,10 +553,14 @@ swfdec_action_trace (SwfdecAsContext *cx const char *s; val = swfdec_as_stack_peek (cx, 1); - if (val->type == SWFDEC_AS_TYPE_UNDEFINED) + if (val->type == SWFDEC_AS_TYPE_UNDEFINED) { s = SWFDEC_AS_STR_undefined; - else + } else if (val->type == SWFDEC_AS_TYPE_OBJECT && + SWFDEC_IS_AS_STRING (swfdec_as_value_to_object (cx, val))) { + s = SWFDEC_AS_STRING (swfdec_as_value_to_object (cx, val))->stri...
2007 Jul 04
0
Branch 'as' - 25 commits - libswfdec/Makefile.am libswfdec/swfdec_as_boolean.c libswfdec/swfdec_as_boolean.h libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_function.c
...ext), FALSE); - g_return_val_if_fail (SWFDEC_IS_AS_VALUE (value), FALSE); +g_return_val_if_fail (SWFDEC_IS_AS_CONTEXT (context), FALSE); +g_return_val_if_fail (SWFDEC_IS_AS_VALUE (value), FALSE); - /* FIXME: what do we do when called in flash 4? */ - switch (value->type) { - case SWFDEC_AS_TYPE_UNDEFINED: - case SWFDEC_AS_TYPE_NULL: - return FALSE; - case SWFDEC_AS_TYPE_BOOLEAN: - return SWFDEC_AS_VALUE_GET_BOOLEAN (value); - case SWFDEC_AS_TYPE_NUMBER: - { - double d = SWFDEC_AS_VALUE_GET_NUMBER (value); - return d != 0.0 && !isnan (d); - } - case SWFDEC_A...
2007 May 24
0
Branch 'as' - 11 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_function.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_native_function.c libswfdec/swfdec_as_number.c libswfdec/swfdec_as_object.c
...t SwfdecAsValue *value) { + SwfdecAsValue tmp; + g_return_val_if_fail (SWFDEC_IS_AS_CONTEXT (context), 0.0); g_return_val_if_fail (SWFDEC_IS_AS_VALUE (value), 0.0); - switch (value->type) { + tmp = *value; + swfdec_as_value_to_primitive (&tmp); + + switch (tmp.type) { case SWFDEC_AS_TYPE_UNDEFINED: case SWFDEC_AS_TYPE_NULL: return (context->version >= 7) ? NAN : 0.0; case SWFDEC_AS_TYPE_BOOLEAN: - return SWFDEC_AS_VALUE_GET_BOOLEAN (value) ? 1 : 0; + return SWFDEC_AS_VALUE_GET_BOOLEAN (&tmp) ? 1 : 0; case SWFDEC_AS_TYPE_NUMBER: - return SWFDEC...
2007 Aug 07
0
13 commits - libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec_gtk_keys.c libswfdec-gtk/swfdec_gtk_keys.h libswfdec-gtk/swfdec_gtk_widget.c libswfdec/Makefile.am libswfdec/swfdec_as_types.c libswfdec/swfdec.h libswfdec/swfdec_initialize.as
...(context), FALSE); -g_return_val_if_fail (SWFDEC_IS_AS_VALUE (value), FALSE); + g_return_val_if_fail (SWFDEC_IS_AS_CONTEXT (context), FALSE); + g_return_val_if_fail (SWFDEC_IS_AS_VALUE (value), FALSE); -/* FIXME: what do we do when called in flash 4? */ -switch (value->type) { -case SWFDEC_AS_TYPE_UNDEFINED: -case SWFDEC_AS_TYPE_NULL: -return FALSE; -case SWFDEC_AS_TYPE_BOOLEAN: -return SWFDEC_AS_VALUE_GET_BOOLEAN (value); -case SWFDEC_AS_TYPE_NUMBER: -{ - double d = SWFDEC_AS_VALUE_GET_NUMBER (value); - return d != 0.0 && !isnan (d); -} -case SWFDEC_AS_TYPE_STRING: -if (context->versio...
2007 Jul 12
0
15 commits - doc/Makefile.am doc/swfdec-docs.sgml doc/swfdec-sections.txt INSTALL libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_interpret.h libswfdec/swfdec_as_object.h
...b/libswfdec/swfdec_as_types.c @@ -406,7 +406,7 @@ swfdec_as_value_to_debug (const SwfdecAs switch (value->type) { case SWFDEC_AS_TYPE_STRING: - return g_strdup (SWFDEC_AS_VALUE_GET_STRING (value)); + return g_shell_quote (SWFDEC_AS_VALUE_GET_STRING (value)); case SWFDEC_AS_TYPE_UNDEFINED: return g_strdup ("undefined"); case SWFDEC_AS_TYPE_BOOLEAN: diff-tree 16909175916f11bbe595d84cdec2857f2ebab09d (from 3c395d699a9d90c1205afa243eec1ae810bf7fbb) Author: Benjamin Otte <otte at gnome.org> Date: Thu Jul 12 16:52:12 2007 +0200 NetStream.bytesTotal sh...
2007 Aug 22
0
163 commits - autogen.sh configure.ac doc/swfdec-sections.txt libswfdec-gtk/swfdec_gtk_player.c libswfdec-gtk/swfdec_gtk_player.h libswfdec-gtk/swfdec_gtk_widget.c libswfdec-gtk/swfdec_source.c libswfdec/Makefile.am libswfdec/swfdec_as_array.c
...+ return wrap; +} + +void +vivi_wrap_value (ViviApplication *app, SwfdecAsValue *dest, const SwfdecAsValue *src) +{ + g_return_if_fail (VIVI_IS_APPLICATION (app)); + g_return_if_fail (dest != NULL); + g_return_if_fail (SWFDEC_IS_AS_VALUE (src)); + + switch (src->type) { + case SWFDEC_AS_TYPE_UNDEFINED: + case SWFDEC_AS_TYPE_BOOLEAN: + case SWFDEC_AS_TYPE_NUMBER: + case SWFDEC_AS_TYPE_NULL: + *dest = *src; + break; + case SWFDEC_AS_TYPE_STRING: + SWFDEC_AS_VALUE_SET_STRING (dest, + swfdec_as_context_get_string (SWFDEC_AS_CONTEXT (app), + SWFDEC_AS_VALUE...
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
...+ return wrap; +} + +void +vivi_wrap_value (ViviApplication *app, SwfdecAsValue *dest, const SwfdecAsValue *src) +{ + g_return_if_fail (VIVI_IS_APPLICATION (app)); + g_return_if_fail (dest != NULL); + g_return_if_fail (SWFDEC_IS_AS_VALUE (src)); + + switch (src->type) { + case SWFDEC_AS_TYPE_UNDEFINED: + case SWFDEC_AS_TYPE_BOOLEAN: + case SWFDEC_AS_TYPE_NUMBER: + case SWFDEC_AS_TYPE_NULL: + *dest = *src; + break; + case SWFDEC_AS_TYPE_STRING: + SWFDEC_AS_VALUE_SET_STRING (dest, + swfdec_as_context_get_string (SWFDEC_AS_CONTEXT (app), + SWFDEC_AS_VALUE...