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 web site has not been fully supported since April 2008. Information may be out of date. This page was originally managed by Roger Firth.