OSDN Git Service

swf_object_rebuild と swf_object_print の位置入れ替え
authoryoya <yoya@7c90b180-03d5-4157-b861-58a559ae9d1e>
Sat, 26 Mar 2011 12:26:01 +0000 (12:26 +0000)
committeryoya <yoya@7c90b180-03d5-4157-b861-58a559ae9d1e>
Sat, 26 Mar 2011 12:26:01 +0000 (12:26 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/swfed/trunk@474 7c90b180-03d5-4157-b861-58a559ae9d1e

src/swf_object.c
src/swf_object.h

index 1bd2b8a..6705bd5 100644 (file)
@@ -201,19 +201,6 @@ swf_object_output(swf_object_t *swf, unsigned long *length) {
     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;
@@ -232,6 +219,21 @@ swf_object_print(swf_object_t *swf) {
     }
 }
 
+/* --- */
+
+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) {
index 7f77f63..231e0d2 100644 (file)
@@ -29,11 +29,14 @@ extern swf_object_t *swf_object_open(void);
 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,