Inform - Support - Patches

About Patches  

Compiler  
Library  

DM4 Errata  

Issue C63006     [previous patch]

Glulx compiler doesn't delete temporary files
Submitted by: David Kinder     Appeared in: Compiler 6.30 or before     Fixed in: -
Problem

The compiler doesn't delete its temporary files (if it's using them) when compiling to Glulx, and no errors occur.

Solution

Apply this patch:

--- inform/compiler/files.c 2004-01-07 19:21:20.734375000 +0000
+++ files.c 2004-04-10 19:44:10.796875000 +0100
@@ -829,6 +829,11 @@

     }

+    if (temporary_files_switch)
+    {   fclose(Temp1_fp);
+        remove(Temp1_Name); remove(Temp2_Name);
+    }
+
     /*  (4.5)  Output any null bytes (required to reach a GPAGESIZE address)
              before RAMSTART. */


Last updated 17 April 2013. This site is no longer supported; information may be out of date.
Maintained as a historical archive by the Interactive Fiction Technology Foundation. Copyright 1993-2018 IFTF, CC-BY-SA unless otherwise noted.
This page was originally managed by Roger Firth.