X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fas3%2Ffiles.h;h=244df43e9d1f5bfc26acfce1794d5742f25be02a;hb=c63b2bf21dc1df9a736f0b4c08f6cba828cdab92;hp=7243718a901dfce35cd07c6192cb6f3b3cf7ae6b;hpb=1ae58b8b15dee25f1915c344f4fdea9f9c3d41ea;p=swftools.git diff --git a/lib/as3/files.h b/lib/as3/files.h index 7243718..244df43 100644 --- a/lib/as3/files.h +++ b/lib/as3/files.h @@ -22,13 +22,27 @@ #ifndef __avm2_files_h__ #define __avm2_files_h__ +typedef struct _include_dir { + char*path; + struct _include_dir*next; +} include_dir_t; + extern int current_line; extern int current_column; extern char* current_filename; +extern char* current_filename_short; +extern char* current_filename_long; +extern include_dir_t* current_include_dirs; void add_include_dir(char*dir); -char* enter_file(char*filename, void*state); +char*find_file(const char*filename, char report_errors); +void enter_file(const char*name, const char*filename, void*state); +FILE* enter_file2(const char*name, const char*filename, void*state); void* leave_file(); +char* concat_paths(const char*base, const char*add); +char* normalize_path(const char*path); +char* filename_to_lowercase(const char*name); + #endif