do not add an include dir for every file we parse
authorMatthias Kramm <kramm@quiss.org>
Sat, 14 Feb 2009 02:02:59 +0000 (03:02 +0100)
committerMatthias Kramm <kramm@quiss.org>
Sat, 14 Feb 2009 02:02:59 +0000 (03:02 +0100)
lib/as3/files.c

index 8deefbf..5cd1e2e 100644 (file)
@@ -249,9 +249,11 @@ void enter_file(const char*name, const char*filename, void*state)
     shortfilename_stack[include_stack_ptr] = current_filename_short;
     filename_stack[include_stack_ptr] = current_filename;
     includedir_stack[include_stack_ptr] = current_include_dirs;
     shortfilename_stack[include_stack_ptr] = current_filename_short;
     filename_stack[include_stack_ptr] = current_filename;
     includedir_stack[include_stack_ptr] = current_include_dirs;
-    char*dir = get_path(filename);
+    
+    /*char*dir = get_path(filename);
     add_include_dir(dir);
     add_include_dir(dir);
-    free(dir);
+    free(dir);*/
+
     include_stack_ptr++;
     
     dbg("entering file %s", filename);
     include_stack_ptr++;
     
     dbg("entering file %s", filename);