]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Use the new _temp functions from the create-temp module.
authorBruno Haible <bruno@clisp.org>
Fri, 6 Oct 2006 13:27:49 +0000 (13:27 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:14:05 +0000 (12:14 +0200)
gettext-tools/src/ChangeLog
gettext-tools/src/write-csharp.c
gettext-tools/src/write-java.c

index 5d81bcc335c4d79ba974ef73107f068a0c90f517..14b5a6dd5415ebbb36ba09cc5c7e82fb3b8eee34 100644 (file)
@@ -1,3 +1,9 @@
+2006-10-06  Bruno Haible  <bruno@clisp.org>
+
+       * write-java.c (msgdomain_write_java): Use fopen_temp, fwriteerror_temp
+       instead of fopen, fwriteerror.
+       * write-csharp.c (msgdomain_write_csharp): Likewise.
+
 2006-10-06  Bruno Haible  <bruno@clisp.org>
 
        * Makefile.am (LTV_CURRENT, LTV_REVISION, LTV_AGE): Bump to 3:0:3.
index 40da40581d184436dab8d3870ef94e452565a8ba..75f9fee83409ad6d2edb437aff5f5fcf1a16baa3 100644 (file)
@@ -715,7 +715,7 @@ but the C# .dll format doesn't support contexts\n")));
 
   /* Create the C# file.  */
   register_temp_file (tmpdir, csharp_file_name);
-  csharp_file = fopen (csharp_file_name, "w");
+  csharp_file = fopen_temp (csharp_file_name, "w");
   if (csharp_file == NULL)
     {
       error (0, errno, _("failed to create \"%s\""), csharp_file_name);
@@ -725,7 +725,7 @@ but the C# .dll format doesn't support contexts\n")));
 
   write_csharp_code (csharp_file, culture_name, class_name, mlp);
 
-  if (fwriteerror (csharp_file))
+  if (fwriteerror_temp (csharp_file))
     {
       error (0, errno, _("error while writing \"%s\" file"), csharp_file_name);
       goto quit3;
index af0b3e43757cd7cb6711a9cd119ea7a196af11af..6b216460e0a9331e6a68413a15ad0ab2945d6ec1 100644 (file)
@@ -1002,7 +1002,7 @@ but the Java ResourceBundle format doesn't support contexts\n")));
 
   /* Create the Java file.  */
   register_temp_file (tmpdir, java_file_name);
-  java_file = fopen (java_file_name, "w");
+  java_file = fopen_temp (java_file_name, "w");
   if (java_file == NULL)
     {
       error (0, errno, _("failed to create \"%s\""), java_file_name);
@@ -1012,7 +1012,7 @@ but the Java ResourceBundle format doesn't support contexts\n")));
 
   write_java_code (java_file, class_name, mlp, assume_java2);
 
-  if (fwriteerror (java_file))
+  if (fwriteerror_temp (java_file))
     {
       error (0, errno, _("error while writing \"%s\" file"), java_file_name);
       goto quit3;