106 char *lookfor = _filename;
111 if ( strcmp(lookfor, first->
fileName ) == 0 ) {
123 FILE * file = fopen( lookedFilename,
"rb" );
129 fseek( file, 0, SEEK_END );
130 int size = ftell( file );
131 fseek( file, 0, SEEK_SET );
135 (void)!fread( buffer,
size, 1, file );
144 if ( !
banks_store( _environment, result, _bank_expansion ) ) {
204 loaded->
next = first;
void const_define_numeric(Environment *_environment, char *_name, int _value)
int check_if_filename_is_valid(Environment *_environment, char *_filename)
char * resource_load_asserts(Environment *_environment, char *_filename)
Variable * variable_temporary(Environment *_environment, VariableType _type, char *_meaning)
Define a temporary variable.
Variable * variable_store_buffer(Environment *_environment, char *_destination, unsigned char *_buffer, int _size, int _at)
int banks_store(Environment *_environment, Variable *_variable, int _resident)
Variable * load(Environment *_environment, char *_filename, char *_alias, int _at, int _bank_expansion, int _flags)
Emit code for LOAD(...).
MSC1Compressor * msc1_create(int _maximum_repeated_sequences)
void msc1_free(MSC1Compressor *_msc1)
MemoryBlock * msc1_uncompress(MSC1Compressor *_msc1, MemoryBlock *_input, int _size, int *_output_size)
MemoryBlock * msc1_compress(MSC1Compressor *_msc1, MemoryBlock *_input, int _size, int *_output_size)
unsigned char MemoryBlock
struct _MSC1Compressor MSC1Compressor
int tenLinerRulesEnforced
struct _LoadedFile * next
unsigned char * valueBuffer
#define CRITICAL_10_LINE_RULES_ENFORCED(v)
struct _Variable Variable
Structure of a single variable.
struct _Environment Environment
Structure of compilation environment.
#define CRITICAL_LOAD_MISSING_FILE(f)
#define CRITICAL_EXPANSION_OUT_OF_MEMORY_LOADING(v)
#define CRITICAL_SANDBOX_ENFORCED(v)
struct _LoadedFile LoadedFile
#define CRITICAL_COMPRESSION_FAILED(v)