mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-09 00:08:44 +00:00
interpreter: recursive module fix, more tests
This commit is contained in:
parent
58f0bfc0b9
commit
b6b843fb44
10 changed files with 43 additions and 12 deletions
|
|
@ -44,11 +44,11 @@ Bytefile *read_file(const char *fname) {
|
|||
Bytefile *file;
|
||||
|
||||
if (f == 0) {
|
||||
failure("%s\n", strerror(errno));
|
||||
failure("read file %s: %s\n", fname, strerror(errno));
|
||||
}
|
||||
|
||||
if (fseek(f, 0, SEEK_END) == -1) {
|
||||
failure("%s\n", strerror(errno));
|
||||
failure("read file %s: %s\n", fname, strerror(errno));
|
||||
}
|
||||
|
||||
long size = ftell(f);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue