Fix fileio.{stdin,stdout,stderr} which we broke when internalizing the FILE pointer
This commit is contained in:
parent
881864a5b2
commit
f19833b506
@ -264,6 +264,7 @@ static void makeFileInstance(KrkInstance * module, const char name[], FILE * fil
|
||||
krk_push(filename);
|
||||
|
||||
krk_attachNamedValue(&fileObject->fields, "filename", filename);
|
||||
fileObject->_internal = file;
|
||||
|
||||
krk_attachNamedObject(&module->fields, name, (KrkObj*)fileObject);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user