along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
+#include "common.h"
#include "tokenizer.h"
#include "files.h"
#include "parser.h"
extern int as3_lex();
extern int as3_lex_destroy();
+static char config_recurse = 0;
+
void as3_setverbosity(int level)
{
as3_verbosity=level;
{
add_include_dir(dir);
}
+void as3_set_option(const char*key, const char*value)
+{
+ if(!strcmp(key, "recurse")) {
+ config_recurse=atoi(value);
+ }
+}
static char registry_initialized = 0;
static char parser_initialized = 0;
compile_list = 0;
as3_pass = 1;
- as3_parse_file_or_array(filename, fullfilename, 0,0);
+ as3_schedule_file(filename, fullfilename);
as3_parse_scheduled();
registry_resolve_all();
void as3_schedule_class_noerror(const char*package, const char*cls)
{
- schedule_class(package, cls, 0);
+ if(config_recurse) {
+ schedule_class(package, cls, 0);
+ }
}