diff options
author | Bruno Haible <bruno@clisp.org> | 2008-09-02 00:36:28 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2008-09-02 00:36:28 +0200 |
commit | be6c2737cca8fa0f8e41e836e0cb843bc9138035 (patch) | |
tree | ad617c8f36342abe3cfc194b518848ee8eaed107 | |
parent | e6a0d376a9b44cadd66d06e76d0c9181c20e4102 (diff) | |
download | gnulib-be6c2737cca8fa0f8e41e836e0cb843bc9138035.tar.gz |
Split module 'filename' into 'filename' and 'concat-filename'.
-rw-r--r-- | ChangeLog | 11 | ||||
-rw-r--r-- | NEWS | 5 | ||||
-rw-r--r-- | lib/concat-filename.c | 7 | ||||
-rw-r--r-- | lib/concat-filename.h | 35 | ||||
-rw-r--r-- | lib/filename.h | 8 | ||||
-rw-r--r-- | modules/concat-filename | 27 | ||||
-rw-r--r-- | modules/filename | 9 |
7 files changed, 86 insertions, 16 deletions
@@ -1,3 +1,14 @@ +2008-09-01 Bruno Haible <bruno@clisp.org> + + Split module 'filename' into 'filename' and 'concat-filename'. + * modules/filename: Keep only lib/filename.h. + (License): Change to LGPLv2+. + * modules/concat-filename: New file, extracted from modules/filename. + * lib/filename.h (concatenated_filename): Remove declaration. + * lib/concat-filename.h: New file, extracted from lib/filename.h. + * lib/concat-filename.c: Include concat-filename.h. + * NEWS: Mention the change. + 2008-09-01 Simon Josefsson <simon@josefsson.org> * lib/bitrotate.h (rotl8, rotr8): Add. @@ -6,6 +6,11 @@ User visible incompatible changes Date Modules Changes +2008-09-01 filename The module does not define the function + concatenated_filename any more. To get this + function, use module 'concat-filename' and the + include file "concat-filename.h". + 2008-08-31 havelib On Solaris, when searching for 64-bit mode libraries the directory $prefix/lib is now ignored. Instead the directory $prefix/lib/64 is searched. diff --git a/lib/concat-filename.c b/lib/concat-filename.c index 26c52f9794..94532d0741 100644 --- a/lib/concat-filename.c +++ b/lib/concat-filename.c @@ -1,5 +1,5 @@ -/* Construct a full pathname from a directory and a filename. - Copyright (C) 2001-2004, 2006-2007 Free Software Foundation, Inc. +/* Construct a full filename from a directory and a relative filename. + Copyright (C) 2001-2004, 2006-2008 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the @@ -19,10 +19,11 @@ #include <config.h> /* Specification. */ -#include "filename.h" +#include "concat-filename.h" #include <string.h> +#include "filename.h" #include "xalloc.h" /* Concatenate a directory filename, a relative filename and an optional diff --git a/lib/concat-filename.h b/lib/concat-filename.h new file mode 100644 index 0000000000..d7dafb0ec2 --- /dev/null +++ b/lib/concat-filename.h @@ -0,0 +1,35 @@ +/* Construct a full filename from a directory and a relative filename. + Copyright (C) 2001-2004, 2007-2008 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. */ + +#ifndef _CONCAT_FILENAME_H +#define _CONCAT_FILENAME_H + +#ifdef __cplusplus +extern "C" { +#endif + + +/* Concatenate a directory filename, a relative filename and an optional + suffix. Return a freshly allocated filename. */ +extern char *concatenated_filename (const char *directory, + const char *filename, const char *suffix); + + +#ifdef __cplusplus +} +#endif + +#endif /* _CONCAT_FILENAME_H */ diff --git a/lib/filename.h b/lib/filename.h index 3bcf66ff9a..439689e19b 100644 --- a/lib/filename.h +++ b/lib/filename.h @@ -1,5 +1,5 @@ -/* Pathname support. - Copyright (C) 2001-2004, 2007 Free Software Foundation, Inc. +/* Basic filename support macros. + Copyright (C) 2001-2004, 2007-2008 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -46,10 +46,6 @@ extern "C" { # define FILE_SYSTEM_PREFIX_LEN(P) 0 #endif -/* Concatenate a directory filename, a relative filename and an optional - suffix. Return a freshly allocated filename. */ -extern char *concatenated_filename (const char *directory, - const char *filename, const char *suffix); #ifdef __cplusplus } diff --git a/modules/concat-filename b/modules/concat-filename new file mode 100644 index 0000000000..4aade38971 --- /dev/null +++ b/modules/concat-filename @@ -0,0 +1,27 @@ +Description: +Construct a full filename by concatenating a directory name, a relative +filename, and a suffix. + +Files: +lib/concat-filename.h +lib/concat-filename.c + +Depends-on: +filename +xalloc +stpcpy + +configure.ac: + +Makefile.am: +lib_SOURCES += concat-filename.c + +Include: +"concat-filename.h" + +License: +GPL + +Maintainer: +Bruno Haible + diff --git a/modules/filename b/modules/filename index 169eb098a4..0f7607fa2a 100644 --- a/modules/filename +++ b/modules/filename @@ -1,25 +1,20 @@ Description: -Construct a full filename by concatenating a directory name, a relative -filename, and a suffix. +Basic filename support macros. Files: lib/filename.h -lib/concat-filename.c Depends-on: -xalloc -stpcpy configure.ac: Makefile.am: -lib_SOURCES += concat-filename.c Include: "filename.h" License: -GPL +LGPLv2+ Maintainer: Bruno Haible |