X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fas3%2Ffiles.h;h=8af24b7a76146544ce3e812ceab8e8bb7956da79;hb=a52ce1beaa285529abb33715b5cce9810502c508;hp=5d6420b67382e3d4c22568070eb69c4edf0c6a80;hpb=c124a222ae71441d0933af25cf011307f7da215d;p=swftools.git diff --git a/lib/as3/files.h b/lib/as3/files.h index 5d6420b..8af24b7 100644 --- a/lib/as3/files.h +++ b/lib/as3/files.h @@ -22,16 +22,25 @@ #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*find_file(char*filename); +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