OSDN Git Service

for windows build
authorYoshihiro Yamazaki <yoya@awm.jp>
Wed, 4 Apr 2012 07:48:51 +0000 (16:48 +0900)
committerYoshihiro Yamazaki <yoya@awm.jp>
Wed, 4 Apr 2012 07:48:51 +0000 (16:48 +0900)
- add button module file to config.w32 definition
- set declare to head of block.

src/config.w32
src/swf_button_record.c

index c0bf170..aedfaf4 100755 (executable)
@@ -5,7 +5,7 @@ ARG_ENABLE("swfed", "SWFEditor support", "yes,shared");
 
 if (PHP_SWFED == "yes") {
        CHECK_LIB("libpng_a.lib;libpng.lib", "swfed", PHP_SWFED);
-       CHECK_LIB("libgif_a_dll.lib;giflib.lib", "swfed", PHP_SWFED);
+       CHECK_LIB("giflib_a.lib;giflib.lib", "swfed", PHP_SWFED);
 
        EXTENSION("swfed", "php_swfed.c", null, "-Iext/swfed/libswfed", "php_swfed.dll");
 
@@ -22,7 +22,8 @@ if (PHP_SWFED == "yes") {
                swf_shape_record_edge.c swf_gradient.c  swf_gradient_record.c \
                swf_tag_jpeg.c swf_tag_edit.c swf_tag_action.c swf_tag_lossless.c \
                swf_tag_sound.c swf_tag_sprite.c swf_tag_shape.c y_keyvalue.c \
-               swf_tag_place.c swf_cxform.c swf_cxformwithalpha.c trans_table.c", "swfed");
+               swf_tag_place.c swf_cxform.c swf_cxformwithalpha.c trans_table.c \
+               swf_tag_button.c swf_button_record.c swf_button_condaction.c", "swfed");
        AC_DEFINE("HAVE_PHP_SWFED", 1, "SWFEditor support");
 
        ADD_FLAG("CFLAGS_SWFED", " \
index d495b90..65c7c2d 100644 (file)
@@ -136,8 +136,8 @@ int
 swf_button_record_list_parse(bitstream_t *bs, swf_button_record_list_t *button_record_list, swf_tag_t *tag) {
     swf_button_record_t *prev_button_record = NULL;
     while (bitstream_getbyte(bs)) { // endflag is 0
-        bitstream_incrpos(bs, -1, 0); // 1 byte back
         swf_button_record_t *button_record = malloc(sizeof(*button_record));
+        bitstream_incrpos(bs, -1, 0); // 1 byte back
         button_record->next = NULL;
         if (swf_button_record_parse(bs, button_record, tag)) {
             fprintf(stderr, "swf_button_record_list_parse: swf_button_record_parse failed\n");