* dwarf1.c (alloc_dwarf1_unit): Allocate using bfd_zalloc.
[deliverable/binutils-gdb.git] / gdb / gdb_string.h
CommitLineData
c906108c
SS
1/* Portable <string.h>
2 Copyright 1995, 1998 Free Software Foundation, Inc.
3
4This file is part of GDB.
5
6This program is free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation; either version 2 of the License, or
9(at your option) any later version.
10
11This program is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with this program; if not, write to the Free Software
18Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
19
20#if !defined(GDB_STRING_H)
21#define GDB_STRING_H
22
23#ifdef STDC_HEADERS
24#include <string.h>
25#else
26# ifdef HAVE_STRING_H
27# include <string.h>
28# else
29# include <strings.h>
30# endif
31
32#ifndef strchr
33extern char *strchr PARAMS ((const char *, int)); /* X3.159-1989 4.11.5.2 */
34#endif
35
36#ifndef strrchr
37extern char *strrchr PARAMS ((const char *, int)); /* X3.159-1989 4.11.5.5 */
38#endif
39
c906108c
SS
40#ifndef strtok
41extern char *strtok PARAMS ((char *, const char *)); /* X3.159-1989 4.11.5.8 */
42#endif
43
44# ifdef HAVE_MEMORY_H
45# include <memory.h>
46# else
47extern void *memset();
48extern void *memcpy();
49extern void *memmove();
50extern int memcmp();
51# endif
52#endif /* STDC_HEADERS */
53
54#ifdef NEED_DECLARATION_STRERROR
55#ifndef strerror
56extern char *strerror PARAMS ((int)); /* X3.159-1989 4.11.6.2 */
57#endif
58#endif
59
60#ifdef NEED_DECLARATION_STRDUP
61extern char *strdup (); /* full prototype collides w/ some OSes (AIX 3.2.5) */
62#endif
63
b83266a0
SS
64#ifdef NEED_DECLARATION_STRSTR
65#ifndef strstr
66extern char *strstr PARAMS ((const char *, const char *)); /* X3.159-1989 4.11.5.7 */
67#endif
68#endif
69
c906108c 70#endif /* !defined(GDB_STRING_H) */
This page took 0.027872 seconds and 4 git commands to generate.