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:
6029bb1
)
flex and bison now have different prefixes
author
Matthias Kramm
<kramm@quiss.org>
Mon, 2 Feb 2009 19:01:12 +0000
(20:01 +0100)
committer
Matthias Kramm
<kramm@quiss.org>
Mon, 2 Feb 2009 19:01:12 +0000
(20:01 +0100)
lib/as3/compiler.c
patch
|
blob
|
history
diff --git
a/lib/as3/compiler.c
b/lib/as3/compiler.c
index
6ca1741
..
049d158
100644
(file)
--- a/
lib/as3/compiler.c
+++ b/
lib/as3/compiler.c
@@
-29,8
+29,10
@@
#include <errno.h>
/* flex/bison definitions */
#include <errno.h>
/* flex/bison definitions */
-extern void avm2_set_in (FILE * in_str );
-extern int avm2_parse();
+extern void as3_set_in (FILE * in_str );
+extern int a3_parse();
+extern int as3_lex();
+extern int as3_lex_destroy();
void as3_setverbosity(int level)
{
void as3_setverbosity(int level)
{
@@
-44,6
+46,11
@@
void as3_add_include_dir(char*dir)
static char registry_initialized = 0;
static char parser_initialized = 0;
static char registry_initialized = 0;
static char parser_initialized = 0;
+void a3_lex()
+{
+ as3_lex();
+}
+
void as3_parse_file(char*filename)
{
if(!registry_initialized) {
void as3_parse_file(char*filename)
{
if(!registry_initialized) {
@@
-64,10
+71,10
@@
void as3_parse_file(char*filename)
}
/* pass 1 */
as3_pass = 1;
}
/* pass 1 */
as3_pass = 1;
- avm2_set_in(fi);
+ as3_set_in(fi);
initialize_file(filename);
initialize_file(filename);
- avm2_parse();
- avm2_lex_destroy();
+ a3_parse();
+ as3_lex_destroy();
finish_file();
/* pass 2 */
finish_file();
/* pass 2 */
@@
-75,10
+82,10
@@
void as3_parse_file(char*filename)
enter_file(filename, 0);
as3_pass = 2;
fseek(fi, 0, SEEK_SET);
enter_file(filename, 0);
as3_pass = 2;
fseek(fi, 0, SEEK_SET);
- avm2_set_in(fi);
+ as3_set_in(fi);
initialize_file(filename);
initialize_file(filename);
- avm2_parse();
- avm2_lex_destroy();
+ a3_parse();
+ as3_lex_destroy();
finish_file();
fclose(fi);
finish_file();
fclose(fi);