X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fas3%2Ffiles.h;h=4383fa919ecc990822ddea82c59332804de09a09;hb=71b5bc980e9f3fa962167da70043f0b16e253906;hp=c14006577e68ff1a0d84523426ac4f52f84f8e9b;hpb=be3759d7bc8e2d537974363a32389f9e47d8c867;p=swftools.git diff --git a/lib/as3/files.h b/lib/as3/files.h index c140065..4383fa9 100644 --- a/lib/as3/files.h +++ b/lib/as3/files.h @@ -22,14 +22,26 @@ #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); + #endif