git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b75a03c
)
-u now also dumps an error if an id is undefined.
author
kramm
<kramm>
Sat, 12 Jun 2004 16:09:34 +0000
(16:09 +0000)
committer
kramm
<kramm>
Sat, 12 Jun 2004 16:09:34 +0000
(16:09 +0000)
src/swfdump.c
patch
|
blob
|
history
diff --git
a/src/swfdump.c
b/src/swfdump.c
index
bb7992c
..
038104b
100644
(file)
--- a/
src/swfdump.c
+++ b/
src/swfdump.c
@@
-994,8
+994,13
@@
int main (int argc,char ** argv)
swf_GetUsedIDs(tag, used);
printf("%s%suses IDs: ", indent, prefix);
for(t=0;t<num;t++) {
+ int id;
swf_SetTagPos(tag, used[t]);
- printf("%d%s", swf_GetU16(tag), t<num-1?", ":"");
+ id = swf_GetU16(tag);
+ printf("%d%s", id, t<num-1?", ":"");
+ if(!idtab[id]) {
+ dumperror("Id %04d is not yet defined.\n", id);
+ }
}
printf("\n");
}