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:
74f69d1
)
added check to catch missing .flash headers
author
kramm
<kramm>
Fri, 6 Feb 2004 17:47:07 +0000
(17:47 +0000)
committer
kramm
<kramm>
Fri, 6 Feb 2004 17:47:07 +0000
(17:47 +0000)
src/swfc.c
patch
|
blob
|
history
diff --git
a/src/swfc.c
b/src/swfc.c
index
1c7e0d9
..
4aaa50e
100644
(file)
--- a/
src/swfc.c
+++ b/
src/swfc.c
@@
-2313,6
+2313,7
@@
static void parseArgumentsForCommand(char*command)
map_t args;
int nr = -1;
msg("<verbose> parse Command: %s (line %d)", command, line);
map_t args;
int nr = -1;
msg("<verbose> parse Command: %s (line %d)", command, line);
+
for(t=0;t<sizeof(arguments)/sizeof(arguments[0]);t++) {
if(!strcmp(arguments[t].command, command)) {
for(t=0;t<sizeof(arguments)/sizeof(arguments[0]);t++) {
if(!strcmp(arguments[t].command, command)) {
@@
-2331,6
+2332,12
@@
static void parseArgumentsForCommand(char*command)
}
if(nr<0)
syntaxerror("command %s not known", command);
}
if(nr<0)
syntaxerror("command %s not known", command);
+
+ // catch missing .flash directives at the beginning of a file
+ if(strcmp(command, "flash") && !stackpos)
+ {
+ syntaxerror("No movie defined- use .flash first");
+ }
#ifdef DEBUG
printf(".%s\n", command);fflush(stdout);
#ifdef DEBUG
printf(".%s\n", command);fflush(stdout);
@@
-2375,7
+2382,6
@@
int main (int argc,char ** argv)
return 1;
}
pos=0;
return 1;
}
pos=0;
-
t=0;
while(!noMoreTokens()) {
t=0;
while(!noMoreTokens()) {