OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gdb-7.2/] [gdb/] [gdb_string.h] - Blame information for rev 860

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 330 jeremybenn
/* Portable <string.h>
2
 
3
   Copyright (C) 1995, 1998, 1999, 2000, 2001, 2004, 2007, 2008, 2009, 2010
4
   Free Software Foundation, Inc.
5
 
6
   This file is part of GDB.
7
 
8
   This program is free software; you can redistribute it and/or modify
9
   it under the terms of the GNU General Public License as published by
10
   the Free Software Foundation; either version 3 of the License, or
11
   (at your option) any later version.
12
 
13
   This program is distributed in the hope that it will be useful,
14
   but WITHOUT ANY WARRANTY; without even the implied warranty of
15
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
   GNU General Public License for more details.
17
 
18
   You should have received a copy of the GNU General Public License
19
   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
20
 
21
#if !defined(GDB_STRING_H)
22
#define GDB_STRING_H
23
 
24
#ifdef STDC_HEADERS
25
#include <string.h>
26
#ifdef HAVE_STRINGS_H
27
#include <strings.h> /* strcasecmp etc.. */
28
#endif
29
#else
30
#ifdef HAVE_STRING_H
31
#include <string.h>
32
#else
33
#include <strings.h>
34
#endif
35
 
36
#ifndef strchr
37
extern char *strchr (const char *, int);        /* X3.159-1989  4.11.5.2 */
38
#endif
39
 
40
#ifndef strrchr
41
extern char *strrchr (const char *, int);       /* X3.159-1989  4.11.5.5 */
42
#endif
43
 
44
#ifndef strtok
45
extern char *strtok (char *, const char *);     /* X3.159-1989  4.11.5.8 */
46
#endif
47
 
48
#ifdef HAVE_MEMORY_H
49
#include <memory.h>
50
#else
51
extern void *memset ();
52
extern void *memcpy ();
53
extern void *memmove ();
54
extern int memcmp ();
55
#endif
56
#endif /* STDC_HEADERS */
57
 
58
#if !HAVE_DECL_STRERROR
59
#ifndef strerror
60
extern char *strerror (int);    /* X3.159-1989  4.11.6.2 */
61
#endif
62
#endif
63
 
64
#if !HAVE_DECL_STRSTR
65
#ifndef strstr
66
extern char *strstr (const char *, const char *); /* X3.159-1989  4.11.5.7 */
67
#endif
68
#endif
69
 
70
#endif /* !defined(GDB_STRING_H) */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.