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 (from parent 1:
5fd15b4
)
new option -q
author
Matthias Kramm
<kramm@quiss.org>
Sat, 7 Feb 2009 19:51:37 +0000
(20:51 +0100)
committer
Matthias Kramm
<kramm@quiss.org>
Sat, 7 Feb 2009 19:51:37 +0000
(20:51 +0100)
lib/as3/main.c
patch
|
blob
|
history
diff --git
a/lib/as3/main.c
b/lib/as3/main.c
index
4901e43
..
c22792f
100644
(file)
--- a/
lib/as3/main.c
+++ b/
lib/as3/main.c
@@
-34,9
+34,10
@@
void test_lexer(char*filename)
{
void test_lexer(char*filename)
{
- char*fullfilename = enter_file(filename, 0);
+ char*fullfilename = find_file(filename);
+ enter_file(filename, fullfilename, 0);
FILE*fi = fopen(fullfilename, "rb");
FILE*fi = fopen(fullfilename, "rb");
- as3_set_in(fi);
+ as3_file_input(fi);
while(1) {
int token = as3_lex();
if(token==T_EOF)
while(1) {
int token = as3_lex();
if(token==T_EOF)
@@
-69,13
+70,21
@@
int main(int argn, char*argv[])
if(!strcmp(argv[t], "-v")) {
as3_verbosity++;
}
if(!strcmp(argv[t], "-v")) {
as3_verbosity++;
}
+ if(!strcmp(argv[t], "-q")) {
+ as3_verbosity--;
+ }
}
//extern int avm2_debug;
//avm2_debug = 1;
as3_add_include_dir(getcwd(buf, 512));
}
//extern int avm2_debug;
//avm2_debug = 1;
as3_add_include_dir(getcwd(buf, 512));
+
+ //memfile_t*m = memfile_open(filename);
+ //as3_parse_bytearray(filename, m->data, m->len);
+ //memfile_close(m);
as3_parse_file(filename);
as3_parse_file(filename);
+
void*code = as3_getcode();
SWF swf;
void*code = as3_getcode();
SWF swf;