search for: native_funcs

Displaying 6 results from an estimated 6 matches for "native_funcs".

2007 Jul 26
0
5 commits - doc/Makefile.am doc/swfdec-sections.txt libswfdec/Makefile.am libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_player_as.c
...WFDEC_AS_NATIVE(x, y, func) /*** INTERVALS ***/ @@ -90,29 +95,80 @@ swfdec_player_clearInterval (SwfdecAsCon swfdec_interval_remove (player, id); } +/*** VARIOUS ***/ + +static SwfdecAsFunction * +swfdec_get_asnative (SwfdecAsContext *cx, guint x, guint y) +{ + guint i; + + for (i = 0; native_funcs[i].func != NULL; i++) { + if (native_funcs[i].x == x && native_funcs[i].y == y) { + return swfdec_as_native_function_new (cx, native_funcs[i].name, + native_funcs[i].func, 0); + } + } + return NULL; +} + static void swfdec_player_ASnative (SwfdecAsContext *cx, SwfdecAsObjec...
2007 Dec 03
0
libswfdec/Makefile.am
...func) SWFDEC_AS_CONSTRUCTOR(x,y,func,NULL)" \ && echo "#define SWFDEC_AS_CONSTRUCTOR(x,y,func,type) { x, y, func, G_STRINGIFY (func), type }," \ && echo "static const struct { guint x, y; SwfdecAsNative func; const char *name; GType (* get_type) (void); } native_funcs[] = {" \ - && grep -he "^SWFDEC_AS_CONSTRUCTOR" $(libswfdec_ at SWFDEC_MAJORMINOR@_la_SOURCES) \ - && grep -he "^SWFDEC_AS_NATIVE" $(libswfdec_ at SWFDEC_MAJORMINOR@_la_SOURCES) \ + && grep -he "^SWFDEC_AS_CONSTRUCTOR" $(libswfdec_sou...
2007 Jul 26
0
17 commits - doc/swfdec-sections.txt libswfdec/compiler.c libswfdec/.gitignore libswfdec/Makefile.am libswfdec/swfdec_asbroadcaster.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_as_strings.c
...at SWFDEC_MAJORMINOR@_la_SOURCES) \ + && echo "#undef SWFDEC_AS_NATIVE" \ + && echo "#define SWFDEC_AS_NATIVE(x,y,func) { x, y, func, G_STRINGIFY (func) }," \ + && echo "static const struct { guint x, y; SwfdecAsNative func; const char *name; } native_funcs[] = {" \ + && grep -he "^SWFDEC_AS_NATIVE" $(libswfdec_ at SWFDEC_MAJORMINOR@_la_SOURCES) \ + && echo " { 0, 0, NULL }" \ + && echo "};") >> xgen-san \ + && (cmp -s xgen-san swfdec_asnative.h || cp xgen-san swfdec_asnat...
2008 Jun 15
1
14 commits - configure.ac swfdec/.gitignore swfdec-gtk/swfdec_gtk_loader.c swfdec-gtk/swfdec_playback_alsa.c swfdec/Makefile.am swfdec/swfdec_asnative.h swfdec/swfdec_as_string.c swfdec/swfdec_audio.c swfdec/swfdec_audio_load.c swfdec/swfdec_audio_load.h
...func) SWFDEC_AS_CONSTRUCTOR(x,y,func,NULL)" \ && echo "#define SWFDEC_AS_CONSTRUCTOR(x,y,func,type) { x, y, func, G_STRINGIFY (func), type }," \ - && echo "static const struct { guint x, y; SwfdecAsNative func; const char *name; GType (* get_type) (void); } native_funcs[] = {" \ + && echo "const struct { guint x, y; SwfdecAsNative func; const char *name; GType (* get_type) (void); } native_funcs[] = {" \ && grep -he "^SWFDEC_AS_CONSTRUCTOR" $(libswfdec_source_files) \ && grep -he "^SWFDEC_AS_NATIVE&qu...
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
...ction == NULL) return NULL; if (type != 0) diff --git a/libswfdec/swfdec_player_as.c b/libswfdec/swfdec_player_as.c index 1b8503a..f08c48f 100644 --- a/libswfdec/swfdec_player_as.c +++ b/libswfdec/swfdec_player_as.c @@ -105,7 +105,7 @@ swfdec_get_asnative (SwfdecAsContext *cx for (i = 0; native_funcs[i].func != NULL; i++) { if (native_funcs[i].x == x && native_funcs[i].y == y) { return swfdec_as_native_function_new (cx, native_funcs[i].name, - native_funcs[i].func, 0); + native_funcs[i].func, 0, NULL); } } return NULL; diff-tree 1c8bbca9cd8af8f25dc8ae654f9ecb8...
2007 Nov 30
0
36 commits - libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_date.c libswfdec/swfdec_as_initialize.as libswfdec/swfdec_as_initialize.h libswfdec/swfdec_as_strings.c libswfdec/swfdec_flash_security.c
...dec_player_do_nothing (SwfdecAsContext *cx, SwfdecAsObject *object, + guint argc, SwfdecAsValue *argv, SwfdecAsValue *retval) +{ +} + static SwfdecAsFunction * swfdec_get_asnative (SwfdecAsContext *cx, guint x, guint y) { + gboolean x_exists; guint i; + x_exists = FALSE; for (i = 0; native_funcs[i].func != NULL; i++) { + if (native_funcs[i].x == x) + x_exists = TRUE; if (native_funcs[i].x == x && native_funcs[i].y == y) { SwfdecAsFunction *fun = swfdec_as_native_function_new (cx, native_funcs[i].name, native_funcs[i].func, 0, NULL); @@ -161,8 +171,17 @@ swfd...