svnno****@sourc*****
svnno****@sourc*****
2011年 3月 26日 (土) 21:26:01 JST
Revision: 474 http://sourceforge.jp/projects/swfed/svn/view?view=rev&revision=474 Author: yoya Date: 2011-03-26 21:26:01 +0900 (Sat, 26 Mar 2011) Log Message: ----------- swf_object_rebuild と swf_object_print の位置入れ替え Modified Paths: -------------- trunk/src/swf_object.c trunk/src/swf_object.h -------------- next part -------------- Modified: trunk/src/swf_object.c =================================================================== --- trunk/src/swf_object.c 2011-03-26 12:23:48 UTC (rev 473) +++ trunk/src/swf_object.c 2011-03-26 12:26:01 UTC (rev 474) @@ -201,20 +201,7 @@ return data; } -/* --- */ - void -swf_object_rebuild(swf_object_t *swf) { - swf_tag_t *tag; - for (tag = swf->tag_head; tag ; tag = tag->next) { - if (isShapeTag(tag->tag)) { - continue; // skip Shape はまだ動作が怪しいので - } - swf_tag_rebuild(tag, swf); - } -} - -void swf_object_print(swf_object_t *swf) { int i; swf_tag_t *tag; @@ -232,6 +219,21 @@ } } +/* --- */ + +void +swf_object_rebuild(swf_object_t *swf) { + swf_tag_t *tag; + for (tag = swf->tag_head; tag ; tag = tag->next) { + if (isShapeTag(tag->tag)) { + continue; // skip Shape はまだ動作が怪しいので + } + swf_tag_rebuild(tag, swf); + } +} + +/* --- */ + unsigned char * swf_object_get_tagdata(swf_object_t *swf, int tag_seqno, unsigned long *length) { Modified: trunk/src/swf_object.h =================================================================== --- trunk/src/swf_object.h 2011-03-26 12:23:48 UTC (rev 473) +++ trunk/src/swf_object.h 2011-03-26 12:26:01 UTC (rev 474) @@ -29,11 +29,14 @@ extern void swf_object_close(swf_object_t *swf); extern int swf_object_input(swf_object_t *swf, unsigned char *data, unsigned long data_len); extern unsigned char *swf_object_output(swf_object_t *swf, unsigned long *length); +extern void swf_object_print(swf_object_t *swf); /* --- */ extern void swf_object_rebuild(swf_object_t *swf); -extern void swf_object_print(swf_object_t *swf); + +/* --- */ + extern unsigned char *swf_object_get_tagdata(swf_object_t *swf, int tag_seqno, unsigned long *length); extern int swf_object_replace_tagdata(swf_object_t *swf, int tag_seqno,