| 1 | /* Function declarations for libiberty.
|
|---|
| 2 |
|
|---|
| 3 | Copyright 2001, 2002 Free Software Foundation, Inc.
|
|---|
| 4 |
|
|---|
| 5 | Note - certain prototypes declared in this header file are for
|
|---|
| 6 | functions whoes implementation copyright does not belong to the
|
|---|
| 7 | FSF. Those prototypes are present in this file for reference
|
|---|
| 8 | purposes only and their presence in this file should not construed
|
|---|
| 9 | as an indication of ownership by the FSF of the implementation of
|
|---|
| 10 | those functions in any way or form whatsoever.
|
|---|
| 11 |
|
|---|
| 12 | This program is free software; you can redistribute it and/or modify
|
|---|
| 13 | it under the terms of the GNU General Public License as published by
|
|---|
| 14 | the Free Software Foundation; either version 2, or (at your option)
|
|---|
| 15 | any later version.
|
|---|
| 16 |
|
|---|
| 17 | This program is distributed in the hope that it will be useful,
|
|---|
| 18 | but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|---|
| 19 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|---|
| 20 | GNU General Public License for more details.
|
|---|
| 21 |
|
|---|
| 22 | You should have received a copy of the GNU General Public License
|
|---|
| 23 | along with this program; if not, write to the Free Software
|
|---|
| 24 | Foundation, Inc., 59 Temple Place - Suite 330,
|
|---|
| 25 | Boston, MA 02111-1307, USA.
|
|---|
| 26 |
|
|---|
| 27 | Written by Cygnus Support, 1994.
|
|---|
| 28 |
|
|---|
| 29 | The libiberty library provides a number of functions which are
|
|---|
| 30 | missing on some operating systems. We do not declare those here,
|
|---|
| 31 | to avoid conflicts with the system header files on operating
|
|---|
| 32 | systems that do support those functions. In this file we only
|
|---|
| 33 | declare those functions which are specific to libiberty. */
|
|---|
| 34 |
|
|---|
| 35 | #ifndef LIBIBERTY_H
|
|---|
| 36 | #define LIBIBERTY_H
|
|---|
| 37 |
|
|---|
| 38 | #ifdef __cplusplus
|
|---|
| 39 | extern "C" {
|
|---|
| 40 | #endif
|
|---|
| 41 |
|
|---|
| 42 | #include "ansidecl.h"
|
|---|
| 43 |
|
|---|
| 44 | #ifdef ANSI_PROTOTYPES
|
|---|
| 45 | /* Get a definition for size_t. */
|
|---|
| 46 | #include <stddef.h>
|
|---|
| 47 | /* Get a definition for va_list. */
|
|---|
| 48 | #include <stdarg.h>
|
|---|
| 49 | #endif
|
|---|
| 50 |
|
|---|
| 51 | /* Build an argument vector from a string. Allocates memory using
|
|---|
| 52 | malloc. Use freeargv to free the vector. */
|
|---|
| 53 |
|
|---|
| 54 | extern char **buildargv PARAMS ((const char *)) ATTRIBUTE_MALLOC;
|
|---|
| 55 |
|
|---|
| 56 | /* Free a vector returned by buildargv. */
|
|---|
| 57 |
|
|---|
| 58 | extern void freeargv PARAMS ((char **));
|
|---|
| 59 |
|
|---|
| 60 | /* Duplicate an argument vector. Allocates memory using malloc. Use
|
|---|
| 61 | freeargv to free the vector. */
|
|---|
| 62 |
|
|---|
| 63 | extern char **dupargv PARAMS ((char **)) ATTRIBUTE_MALLOC;
|
|---|
| 64 |
|
|---|
| 65 |
|
|---|
|
|---|