+2008-09-01 Bruno Haible <bruno@clisp.org>
+
+ * color.c: Include concat-filename.h.
+ (style_file_lookup, style_file_prepare): Use xconcatenated_filename
+ instead of concatenated_filename.
+ * msginit.c: Include concat-filename.h instead of filename.h.
+ (project_id, project_id_version): Use xconcatenated_filename instead of
+ concatenated_filename.
+ * open-catalog.c: Include concat-filename.h.
+ (try_open_catalog_file): Use xconcatenated_filename instead of
+ concatenated_filename.
+ * read-csharp.c: Include concat-filename.h instead of filename.h.
+ (msgdomain_read_csharp): Use xconcatenated_filename instead of
+ concatenated_filename.
+ * read-resources.c: Include concat-filename.h instead of filename.h.
+ (read_resources_file): Use xconcatenated_filename instead of
+ concatenated_filename.
+ * read-tcl.c: Include concat-filename.h instead of filename.h.
+ (msgdomain_read_tcl): Use xconcatenated_filename instead of
+ concatenated_filename.
+ * write-resources.c: Include concat-filename.h instead of filename.h.
+ (msgdomain_write_csharp_resources): Use xconcatenated_filename instead of
+ concatenated_filename.
+ * write-csharp.c: Include concat-filename.h instead of filename.h.
+ (msgdomain_write_csharp): Use xconcatenated_filename instead of
+ concatenated_filename.
+ * write-java.c: Include concat-filename.h instead of filename.h.
+ (msgdomain_write_java): Use xconcatenated_filename instead of
+ concatenated_filename.
+ * write-tcl.c: Include concat-filename.h instead of filename.h.
+ (msgdomain_write_tcl: Use xconcatenated_filename instead of
+ concatenated_filename.
+
2008-08-31 Bruno Haible <bruno@clisp.org>
* msgexec.c: Include <signal.h>.
/* Color and styling handling.
- Copyright (C) 2006-2007 Free Software Foundation, Inc.
+ Copyright (C) 2006-2008 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2006.
This program is free software: you can redistribute it and/or modify
#include "xalloc.h"
#include "relocatable.h"
#include "filename.h"
+#include "concat-filename.h"
/* Whether to output a test page. */
/* ... but it exists in the styles installation location... */
const char *gettextstylesdir = relocate (GETTEXTDATADIR "/styles");
char *possible_file_name =
- concatenated_filename (gettextstylesdir, file_name, NULL);
+ xconcatenated_filename (gettextstylesdir, file_name, NULL);
if (stat (possible_file_name, &statbuf) >= 0)
{
gettextdatadir = relocate (GETTEXTDATADIR);
style_file_name =
- concatenated_filename (gettextdatadir, "styles/po-default.css",
+ xconcatenated_filename (gettextdatadir, "styles/po-default.css",
NULL);
}
}
#include "lang-table.h"
#include "xalloc.h"
#include "xmalloca.h"
-#include "filename.h"
+#include "concat-filename.h"
#include "xerror.h"
#include "xvasprintf.h"
#include "msgl-english.h"
if (gettextlibdir == NULL || gettextlibdir[0] == '\0')
gettextlibdir = relocate (LIBDIR "/gettext");
- prog = concatenated_filename (gettextlibdir, "project-id", NULL);
+ prog = xconcatenated_filename (gettextlibdir, "project-id", NULL);
/* Call the project-id shell script. */
argv[0] = "/bin/sh";
if (gettextlibdir == NULL || gettextlibdir[0] == '\0')
gettextlibdir = relocate (LIBDIR "/gettext");
- prog = concatenated_filename (gettextlibdir, "project-id", NULL);
+ prog = xconcatenated_filename (gettextlibdir, "project-id", NULL);
/* Call the project-id shell script. */
argv[0] = "/bin/sh";
/* open-po - search for .po file along search path list and open for reading
- Copyright (C) 1995-1996, 2000-2003, 2005-2007 Free Software Foundation, Inc.
+ Copyright (C) 1995-1996, 2000-2003, 2005-2008 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 "dir-list.h"
#include "filename.h"
+#include "concat-filename.h"
#include "xalloc.h"
#include "xvasprintf.h"
#include "po-xerror.h"
{
for (k = 0; k < SIZEOF (extension); ++k)
{
- file_name = concatenated_filename ("", input_name, extension[k]);
+ file_name = xconcatenated_filename ("", input_name, extension[k]);
ret_val = fopen (file_name, "r");
if (ret_val != NULL || errno != ENOENT)
for (j = 0; (dir = dir_list_nth (j)) != NULL; ++j)
for (k = 0; k < SIZEOF (extension); ++k)
{
- file_name = concatenated_filename (dir, input_name, extension[k]);
+ file_name = xconcatenated_filename (dir, input_name, extension[k]);
ret_val = fopen (file_name, "r");
if (ret_val != NULL || errno != ENOENT)
#include "read-catalog.h"
#include "read-po.h"
#include "xalloc.h"
-#include "filename.h"
+#include "concat-filename.h"
#include "error.h"
#include "gettext.h"
gettextlibdir = relocate (LIBDIR);
/* Dump the resource and retrieve the resulting output. */
- assembly_path = concatenated_filename (gettextexedir, "msgunfmt.net", ".exe");
+ assembly_path =
+ xconcatenated_filename (gettextexedir, "msgunfmt.net", ".exe");
libdirs[0] = gettextlibdir;
if (execute_csharp_program (assembly_path, libdirs, 1,
args,
#include "read-catalog.h"
#include "read-po.h"
#include "message.h"
-#include "filename.h"
+#include "concat-filename.h"
#include "error.h"
#include "gettext.h"
gettextlibdir = relocate (LIBDIR);
/* Dump the resource and retrieve the resulting output. */
- assembly_path = concatenated_filename (gettextexedir, "msgunfmt.net", ".exe");
+ assembly_path =
+ xconcatenated_filename (gettextexedir, "msgunfmt.net", ".exe");
libdirs[0] = gettextlibdir;
if (execute_csharp_program (assembly_path, libdirs, 1,
args,
#include "msgunfmt.h"
#include "relocatable.h"
-#include "filename.h"
+#include "concat-filename.h"
#include "sh-quote.h"
#include "pipe.h"
#include "wait-process.h"
if (gettextdatadir == NULL || gettextdatadir[0] == '\0')
gettextdatadir = relocate (GETTEXTDATADIR);
- tclscript = concatenated_filename (gettextdatadir, "msgunfmt.tcl", NULL);
+ tclscript = xconcatenated_filename (gettextdatadir, "msgunfmt.tcl", NULL);
/* Convert the locale name to lowercase and remove any encoding. */
len = strlen (locale_name);
break;
}
- file_name = concatenated_filename (directory, frobbed_locale_name, ".msg");
+ file_name = xconcatenated_filename (directory, frobbed_locale_name, ".msg");
freea (frobbed_locale_name);
/* Writing C# satellite assemblies.
- Copyright (C) 2003-2007 Free Software Foundation, Inc.
+ Copyright (C) 2003-2008 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2003.
This program is free software: you can redistribute it and/or modify
#include "po-charset.h"
#include "xalloc.h"
#include "xmalloca.h"
-#include "filename.h"
+#include "concat-filename.h"
#include "fwriteerror.h"
#include "clean-temp.h"
#include "unistr.h"
/* Compute the output file name. This code must be kept consistent with
intl.cs, function GetSatelliteAssembly(). */
{
- char *output_dir = concatenated_filename (directory, culture_name, NULL);
+ char *output_dir = xconcatenated_filename (directory, culture_name, NULL);
struct stat statbuf;
/* Try to create the output directory if it does not yet exist. */
}
output_file =
- concatenated_filename (output_dir, resource_name, ".resources.dll");
+ xconcatenated_filename (output_dir, resource_name, ".resources.dll");
free (output_dir);
}
/* Compute the temporary C# file name. It must end in ".cs", so that
the C# compiler recognizes that it is C# source code. */
csharp_file_name =
- concatenated_filename (tmpdir->dir_name, "resset.cs", NULL);
+ xconcatenated_filename (tmpdir->dir_name, "resset.cs", NULL);
/* Create the C# file. */
register_temp_file (tmpdir, csharp_file_name);
/* Writing Java ResourceBundles.
- Copyright (C) 2001-2003, 2005-2007 Free Software Foundation, Inc.
+ Copyright (C) 2001-2003, 2005-2008 Free Software Foundation, Inc.
Written by Bruno Haible <haible@clisp.cons.org>, 2001.
This program is free software: you can redistribute it and/or modify
#include "po-charset.h"
#include "xalloc.h"
#include "xmalloca.h"
-#include "filename.h"
+#include "concat-filename.h"
#include "fwriteerror.h"
#include "clean-temp.h"
#include "unistr.h"
char *part = (char *) xmalloca (n + 1);
memcpy (part, p, n);
part[n] = '\0';
- subdirs[i] = concatenated_filename (last_dir, part, NULL);
+ subdirs[i] = xconcatenated_filename (last_dir, part, NULL);
freea (part);
last_dir = subdirs[i];
p = q + 1;
if (locale_name != NULL)
{
char *suffix = xasprintf ("_%s.java", locale_name);
- java_file_name = concatenated_filename (last_dir, p, suffix);
+ java_file_name = xconcatenated_filename (last_dir, p, suffix);
free (suffix);
}
else
- java_file_name = concatenated_filename (last_dir, p, ".java");
+ java_file_name = xconcatenated_filename (last_dir, p, ".java");
}
/* Create the subdirectories. This is needed because some older Java
#include "msgl-iconv.h"
#include "po-charset.h"
#include "xalloc.h"
-#include "filename.h"
+#include "concat-filename.h"
#include "fwriteerror.h"
#include "gettext.h"
gettextexedir = relocate (LIBDIR "/gettext");
assembly_path =
- concatenated_filename (gettextexedir, "msgfmt.net", ".exe");
+ xconcatenated_filename (gettextexedir, "msgfmt.net", ".exe");
locals.mlp = mlp;
/* Writing tcl/msgcat .msg files.
- Copyright (C) 2002-2003, 2005, 2007 Free Software Foundation, Inc.
+ Copyright (C) 2002-2003, 2005, 2007-2008 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2002.
This program is free software: you can redistribute it and/or modify
#include "po-charset.h"
#include "xalloc.h"
#include "xmalloca.h"
-#include "filename.h"
+#include "concat-filename.h"
#include "fwriteerror.h"
#include "unistr.h"
#include "gettext.h"
break;
}
- file_name = concatenated_filename (directory, frobbed_locale_name, ".msg");
+ file_name = xconcatenated_filename (directory, frobbed_locale_name, ".msg");
output_file = fopen (file_name, "w");
if (output_file == NULL)