git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
as3: Ast supports brackets now, too. Fixed Math bug in builtins.c
[swftools.git]
/
lib
/
as3
/
main.c
diff --git
a/lib/as3/main.c
b/lib/as3/main.c
index
0727c12
..
0078e07
100644
(file)
--- a/
lib/as3/main.c
+++ b/
lib/as3/main.c
@@
-27,6
+27,7
@@
#include "../rfxswf.h"
#include "../os.h"
#include "files.h"
#include "../rfxswf.h"
#include "../os.h"
#include "files.h"
+#include "common.h"
#include "tokenizer.h"
#include "parser.tab.h"
#include "parser.h"
#include "tokenizer.h"
#include "parser.tab.h"
#include "parser.h"
@@
-78,6
+79,15
@@
int main(int argn, char*argv[])
if(!strcmp(argv[t], "-q")) {
as3_verbosity--;
}
if(!strcmp(argv[t], "-q")) {
as3_verbosity--;
}
+ if(!strcmp(argv[t], "-D")) {
+ char*c = argv[t+1];
+ if(!strstr(c, "::"))
+ printf("Error: compile definition must contain \"::\"\n");
+ as3_set_define(c);
+ }
+ if(!strcmp(argv[t], "-R")) {
+ as3_set_option("recurse","1");
+ }
if(!strcmp(argv[t], "-I")) {
as3_add_include_dir(argv[++t]);
}
if(!strcmp(argv[t], "-I")) {
as3_add_include_dir(argv[++t]);
}