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