Embryo : embryo_cc_sc1.c : delete temporary files on Windows
authorcaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 16 Jul 2011 07:38:33 +0000 (07:38 +0000)
committercaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 16 Jul 2011 07:38:33 +0000 (07:38 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/embryo@61420 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

ChangeLog
src/bin/embryo_cc_sc1.c

index 5263bc1..38b7089 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,11 @@
 2011-01-29  Carsten Haitzler (The Rasterman)
 
         1.0.0 release
-        
+
 2011-05-12  Carsten Haitzler (The Rasterman)
 
        * Make embryo_cc use eina and eina_prefix to determine include location
+
+2011-07-16  Vincent Torri
+
+       * delete temporary files on Windows
index 22f3f5e..eee2803 100644 (file)
@@ -304,8 +304,6 @@ sc_compile(int argc, char *argv[])
    if (fd_out < 0)
      error(101, outfname);
 
-   unlink (outfname); /* kill this file as soon as it's (f)close'd */
-
    setconfig(argv[0]);         /* the path to the include files */
    lcl_ctrlchar = sc_ctrlchar;
    lcl_packstr = sc_packstr;
@@ -409,6 +407,7 @@ sc_compile(int argc, char *argv[])
      }                         /* if */
    if (outf)
       sc_closeasm(outf);
+   unlink (outfname);
    if (binf)
       sc_closebin(binf, errnum != 0);