+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.
/* 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;
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) \
{
unrecognised:
error (EXIT_FAILURE, 0, _("file \"%s\" is not in GNU .mo format"),
- fn);
+ filename);
}
}
/* 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
#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 */