]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Choose better variable names.
authorBruno Haible <bruno@clisp.org>
Mon, 12 Jan 2004 11:11:19 +0000 (11:11 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:11:36 +0000 (12:11 +0200)
gettext-tools/src/ChangeLog
gettext-tools/src/read-mo.c
gettext-tools/src/read-mo.h

index 66040263f7ff0eac8b9bcd33fbd7d7f81a3b3e89..d76d157f40f127dc2827e76e839ce8c424ab558e 100644 (file)
@@ -1,3 +1,8 @@
+2003-12-28  Bruno Haible  <bruno@clisp.org>
+
+       * read-mo.h (read_mo_file): Change 'fn' into 'filename'.
+       * read-mo.c (read_mo_file): Likewise.
+
 2003-12-28  Bruno Haible  <bruno@clisp.org>
 
        * write-resources.h: New file.
index fd2e83234977ff9396ae86226438a98d0dfcfb6b..8328347b73c1522e6f60d706f9df27b6e284716f 100644 (file)
@@ -220,7 +220,7 @@ get_sysdep_string (const struct binary_mo_file *bfp, size_t offset,
 
 /* Reads an existing .mo file and adds the messages to mlp.  */
 void
-read_mo_file (message_list_ty *mlp, const char *fn)
+read_mo_file (message_list_ty *mlp, const char *filename)
 {
   FILE *fp;
   struct binary_mo_file bf;
@@ -228,21 +228,21 @@ read_mo_file (message_list_ty *mlp, const char *fn)
   unsigned int i;
   static lex_pos_ty pos = { __FILE__, __LINE__ };
 
-  if (strcmp (fn, "-") == 0 || strcmp (fn, "/dev/stdin") == 0)
+  if (strcmp (filename, "-") == 0 || strcmp (filename, "/dev/stdin") == 0)
     {
       fp = stdin;
       SET_BINARY (fileno (fp));
     }
   else
     {
-      fp = fopen (fn, "rb");
+      fp = fopen (filename, "rb");
       if (fp == NULL)
        error (EXIT_FAILURE, errno,
-              _("error while opening \"%s\" for reading"), fn);
+              _("error while opening \"%s\" for reading"), filename);
     }
 
   /* Read the file contents into memory.  */
-  read_binary_mo_file (&bf, fp, fn);
+  read_binary_mo_file (&bf, fp, filename);
 
   /* Get a 32-bit number from the file header.  */
 # define GET_HEADER_FIELD(field) \
@@ -261,7 +261,7 @@ read_mo_file (message_list_ty *mlp, const char *fn)
        {
        unrecognised:
          error (EXIT_FAILURE, 0, _("file \"%s\" is not in GNU .mo format"),
-                fn);
+                filename);
        }
     }
 
index 88e969939d8e5a1af59b020211661968cfa071ac..12e8cbff765d45e5b4817150181991f67378c52c 100644 (file)
@@ -1,5 +1,5 @@
 /* Reading binary .mo files.
-   Copyright (C) 1995-1998, 2000-2002 Free Software Foundation, Inc.
+   Copyright (C) 1995-1998, 2000-2003 Free Software Foundation, Inc.
    Written by Ulrich Drepper <drepper@gnu.ai.mit.edu>, April 1995.
 
    This program is free software; you can redistribute it and/or modify
@@ -22,6 +22,6 @@
 #include "message.h"
 
 /* Reads an existing .mo file and adds the messages to mlp.  */
-extern void read_mo_file (message_list_ty *mlp, const char *fn);
+extern void read_mo_file (message_list_ty *mlp, const char *filename);
 
 #endif /* _READ_MO_H */