//#define STORE_TOKENS
-#define DEBUG
-//#define DEBUG if(0)
+//#define DEBUG
+#define DEBUG if(0)
#ifdef STORE_TOKENS
static mem_t tokens;
#endif
}
-static void as3_parse_file_or_array(int pass, const char*name, const char*filename, void*mem, int length)
+static void as3_parse_file_or_array(int pass, const char*name, const char*filename, const void*mem, int length)
{
if(!registry_initialized) {
registry_initialized = 1;
} else {
DEBUG printf("[pass %d] parse bytearray %s (%d bytes)\n", pass, name, length);
enter_file(name, name, 0);
- as3_buffer_input(mem, length);
+ as3_buffer_input((void*)mem, length);
}
as3_tokencount=0;
scheduled = f;
}
-void as3_parse_bytearray(const char*name, void*mem, int length)
+void as3_parse_bytearray(const char*name, const void*mem, int length)
{
as3_parse_file_or_array(1, name, 0, mem, length);
as3_parse_scheduled(1);