as3: better win32 path handling support
[swftools.git] / lib / as3 / compiler.c
index 8bd8dd2..9ccaafd 100644 (file)
@@ -21,6 +21,7 @@
    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"
@@ -49,7 +50,7 @@ void as3_add_include_dir(char*dir)
 {
     add_include_dir(dir);
 }
-void as3_set_option(char*key, char*value)
+void as3_set_option(const char*key, const char*value)
 {
     if(!strcmp(key, "recurse")) {
         config_recurse=atoi(value);
@@ -198,7 +199,7 @@ void as3_parse_file(const char*filename)
 
     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();
@@ -268,7 +269,8 @@ void as3_schedule_package(const char*package)
     char*dirname = strdup(package);
     int s=0;
     while(dirname[s]) {
-        if(dirname[s]=='.') dirname[s]='/';
+        if(dirname[s]=='.') 
+            dirname[s] = path_seperator;
         s++;
     };
     if(!as3_schedule_directory(dirname))