| 1 |
/* lt__argz.h -- internal argz interface for non-glibc systems |
| 2 |
|
| 3 |
Copyright (C) 2004, 2007, 2008 Free Software Foundation, Inc. |
| 4 |
Written by Gary V. Vaughan, 2004 |
| 5 |
|
| 6 |
NOTE: The canonical source of this file is maintained with the |
| 7 |
GNU Libtool package. Report bugs to bug-libtool@gnu.org. |
| 8 |
|
| 9 |
GNU Libltdl is free software; you can redistribute it and/or |
| 10 |
modify it under the terms of the GNU Lesser General Public |
| 11 |
License as published by the Free Software Foundation; either |
| 12 |
version 2 of the License, or (at your option) any later version. |
| 13 |
|
| 14 |
As a special exception to the GNU Lesser General Public License, |
| 15 |
if you distribute this file as part of a program or library that |
| 16 |
is built using GNU Libtool, you may include this file under the |
| 17 |
same distribution terms that you use for the rest of that program. |
| 18 |
|
| 19 |
GNU Libltdl is distributed in the hope that it will be useful, |
| 20 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 21 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 22 |
GNU Lesser General Public License for more details. |
| 23 |
|
| 24 |
You should have received a copy of the GNU Lesser General Public |
| 25 |
License along with GNU Libltdl; see the file COPYING.LIB. If not, a |
| 26 |
copy can be downloaded from http://www.gnu.org/licenses/lgpl.html, |
| 27 |
or obtained by writing to the Free Software Foundation, Inc., |
| 28 |
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 29 |
*/ |
| 30 |
|
| 31 |
#if !defined(LT__ARGZ_H) |
| 32 |
#define LT__ARGZ_H 1 |
| 33 |
|
| 34 |
#include <stdlib.h> |
| 35 |
#define __need_error_t |
| 36 |
#include <errno.h> |
| 37 |
#include <sys/types.h> |
| 38 |
|
| 39 |
#if defined(LTDL) |
| 40 |
# include "lt__glibc.h" |
| 41 |
# include "lt_system.h" |
| 42 |
#else |
| 43 |
# define LT_SCOPE |
| 44 |
#endif |
| 45 |
|
| 46 |
#if defined(__cplusplus) |
| 47 |
extern "C" { |
| 48 |
#endif |
| 49 |
|
| 50 |
LT_SCOPE error_t argz_append (char **pargz, size_t *pargz_len, |
| 51 |
const char *buf, size_t buf_len); |
| 52 |
LT_SCOPE error_t argz_create_sep(const char *str, int delim, |
| 53 |
char **pargz, size_t *pargz_len); |
| 54 |
LT_SCOPE error_t argz_insert (char **pargz, size_t *pargz_len, |
| 55 |
char *before, const char *entry); |
| 56 |
LT_SCOPE char * argz_next (char *argz, size_t argz_len, |
| 57 |
const char *entry); |
| 58 |
LT_SCOPE void argz_stringify (char *argz, size_t argz_len, int sep); |
| 59 |
|
| 60 |
#if defined(__cplusplus) |
| 61 |
} |
| 62 |
#endif |
| 63 |
|
| 64 |
#if !defined(LTDL) |
| 65 |
# undef LT_SCOPE |
| 66 |
#endif |
| 67 |
|
| 68 |
#endif /*!defined(LT__ARGZ_H)*/ |