Mercurial > hg > octave-shane > gnulib-hg
annotate lib/concat-filename.h @ 17255:d81be792518a
update from texinfo
author | Karl Berry <karl@freefriends.org> |
---|---|
date | Tue, 01 Jan 2013 15:51:49 -0800 |
parents | e542fd46ad6f |
children | 344018b6e5d7 |
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. |
17249
e542fd46ad6f
maint: update all copyright year number ranges
Eric Blake <eblake@redhat.com>
parents:
16201
diff
changeset
|
2 Copyright (C) 2001-2004, 2007-2013 Free Software Foundation, Inc. |
10390
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, |
12421
e8d2c6fc33ad
Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents:
10391
diff
changeset
|
29 const char *filename, const char *suffix); |
10390
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, |
12421
e8d2c6fc33ad
Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents:
10391
diff
changeset
|
34 const char *filename, const char *suffix); |
10391
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 */ |