Mercurial > hg > octave-shane > gnulib-hg
annotate lib/concat-filename.h @ 10391:f0a681493fa6
New module 'xconcat-filename', split off from module 'concat-filename'.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Tue, 02 Sep 2008 01:34:21 +0200 |
parents | 247990850251 |
children | e8d2c6fc33ad |
rev | line source |
---|---|
10390
247990850251
Split module 'filename' into 'filename' and 'concat-filename'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
1 /* Construct a full filename from a directory and a relative filename. |
247990850251
Split module 'filename' into 'filename' and 'concat-filename'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
2 Copyright (C) 2001-2004, 2007-2008 Free Software Foundation, Inc. |
247990850251
Split module 'filename' into 'filename' and 'concat-filename'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
3 |
247990850251
Split module 'filename' into 'filename' and 'concat-filename'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
4 This program is free software: you can redistribute it and/or modify |
247990850251
Split module 'filename' into 'filename' and 'concat-filename'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
5 it under the terms of the GNU General Public License as published by |
247990850251
Split module 'filename' into 'filename' and 'concat-filename'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
6 the Free Software Foundation; either version 3 of the License, or |
247990850251
Split module 'filename' into 'filename' and 'concat-filename'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
7 (at your option) any later version. |
247990850251
Split module 'filename' into 'filename' and 'concat-filename'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
8 |
247990850251
Split module 'filename' into 'filename' and 'concat-filename'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
9 This program is distributed in the hope that it will be useful, |
247990850251
Split module 'filename' into 'filename' and 'concat-filename'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
10 but WITHOUT ANY WARRANTY; without even the implied warranty of |
247990850251
Split module 'filename' into 'filename' and 'concat-filename'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
247990850251
Split module 'filename' into 'filename' and 'concat-filename'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
12 GNU General Public License for more details. |
247990850251
Split module 'filename' into 'filename' and 'concat-filename'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
13 |
247990850251
Split module 'filename' into 'filename' and 'concat-filename'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
14 You should have received a copy of the GNU General Public License |
247990850251
Split module 'filename' into 'filename' and 'concat-filename'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
15 along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
247990850251
Split module 'filename' into 'filename' and 'concat-filename'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
16 |
247990850251
Split module 'filename' into 'filename' and 'concat-filename'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
17 #ifndef _CONCAT_FILENAME_H |
247990850251
Split module 'filename' into 'filename' and 'concat-filename'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
18 #define _CONCAT_FILENAME_H |
247990850251
Split module 'filename' into 'filename' and 'concat-filename'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
19 |
247990850251
Split module 'filename' into 'filename' and 'concat-filename'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
20 #ifdef __cplusplus |
247990850251
Split module 'filename' into 'filename' and 'concat-filename'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
21 extern "C" { |
247990850251
Split module 'filename' into 'filename' and 'concat-filename'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
22 #endif |
247990850251
Split module 'filename' into 'filename' and 'concat-filename'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
23 |
247990850251
Split module 'filename' into 'filename' and 'concat-filename'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
24 |
247990850251
Split module 'filename' into 'filename' and 'concat-filename'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
25 /* Concatenate a directory filename, a relative filename and an optional |
10391
f0a681493fa6
New module 'xconcat-filename', split off from module 'concat-filename'.
Bruno Haible <bruno@clisp.org>
parents:
10390
diff
changeset
|
26 suffix. Return a freshly allocated filename. Return NULL and set errno |
f0a681493fa6
New module 'xconcat-filename', split off from module 'concat-filename'.
Bruno Haible <bruno@clisp.org>
parents:
10390
diff
changeset
|
27 upon memory allocation failure. */ |
10390
247990850251
Split module 'filename' into 'filename' and 'concat-filename'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
28 extern char *concatenated_filename (const char *directory, |
247990850251
Split module 'filename' into 'filename' and 'concat-filename'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
29 const char *filename, const char *suffix); |
247990850251
Split module 'filename' into 'filename' and 'concat-filename'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
30 |
10391
f0a681493fa6
New module 'xconcat-filename', split off from module 'concat-filename'.
Bruno Haible <bruno@clisp.org>
parents:
10390
diff
changeset
|
31 /* Concatenate a directory filename, a relative filename and an optional |
f0a681493fa6
New module 'xconcat-filename', split off from module 'concat-filename'.
Bruno Haible <bruno@clisp.org>
parents:
10390
diff
changeset
|
32 suffix. Return a freshly allocated filename. */ |
f0a681493fa6
New module 'xconcat-filename', split off from module 'concat-filename'.
Bruno Haible <bruno@clisp.org>
parents:
10390
diff
changeset
|
33 extern char *xconcatenated_filename (const char *directory, |
f0a681493fa6
New module 'xconcat-filename', split off from module 'concat-filename'.
Bruno Haible <bruno@clisp.org>
parents:
10390
diff
changeset
|
34 const char *filename, const char *suffix); |
f0a681493fa6
New module 'xconcat-filename', split off from module 'concat-filename'.
Bruno Haible <bruno@clisp.org>
parents:
10390
diff
changeset
|
35 |
10390
247990850251
Split module 'filename' into 'filename' and 'concat-filename'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
36 |
247990850251
Split module 'filename' into 'filename' and 'concat-filename'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
37 #ifdef __cplusplus |
247990850251
Split module 'filename' into 'filename' and 'concat-filename'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
38 } |
247990850251
Split module 'filename' into 'filename' and 'concat-filename'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
39 #endif |
247990850251
Split module 'filename' into 'filename' and 'concat-filename'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
40 |
247990850251
Split module 'filename' into 'filename' and 'concat-filename'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
41 #endif /* _CONCAT_FILENAME_H */ |