#include <stdio.h>
#include <stdarg.h>
#include <memory.h>
+#include <errno.h>
#include "files.h"
+#include "tokenizer.h"
static int verbose = 0;
static void dbg(const char*format, ...)
return fullfilename;
}
+FILE*enter_file2(char*filename, void*state)
+{
+ char*fullfilename = enter_file(filename, state);
+ FILE*fi = fopen(fullfilename, "rb");
+ if(!fi) {
+ as3_error("Couldn't find file %s: %s", fullfilename, strerror(errno));
+ }
+ return fi;
+}
+
+
void* leave_file()
{
dbg("leaving file %s", current_filename);
void add_include_dir(char*dir);
char* enter_file(char*filename, void*state);
+FILE* enter_file2(char*filename, void*state);
void* leave_file();
#endif