filename | test/include/string.h |
changeset | 185:6755a04c447f |
author | nkeynes |
date | Fri Dec 02 18:18:04 2011 +1000 (12 years ago) |
permissions | -rw-r--r-- |
last change | SH4 shadow-mode tweaks - Fix exceptions generated by the translator to account for the excepting instruction(s) in the cycle counts. - Compare floating point regs bitwise rather than with FP comparisons (otherwise can fail due to nan != nan) - Dump the translated block when we abort with an inconsistency |
file | annotate | diff | log | raw |
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +00001.2 +++ b/test/include/string.h Fri Dec 02 18:18:04 2011 +10001.3 @@ -0,0 +1,90 @@1.4 +/*1.5 + * string.h1.6 + *1.7 + * Definitions for memory and string functions.1.8 + */1.9 +1.10 +#ifndef _STRING_H_1.11 +#define _STRING_H_1.12 +1.13 +#ifdef __cplusplus1.14 +extern "C" {1.15 +#endif1.16 +1.17 +#include "_ansi.h"1.18 +1.19 +#define __need_size_t1.20 +#include <stddef.h>1.21 +1.22 +#ifndef NULL1.23 +#define NULL 01.24 +#endif1.25 +1.26 +_PTR _EXFUN(memchr,(const _PTR, int, size_t));1.27 +int _EXFUN(memcmp,(const _PTR, const _PTR, size_t));1.28 +_PTR _EXFUN(memcpy,(_PTR, const _PTR, size_t));1.29 +_PTR _EXFUN(memmove,(_PTR, const _PTR, size_t));1.30 +_PTR _EXFUN(memset,(_PTR, int, size_t));1.31 +char *_EXFUN(strcat,(char *, const char *));1.32 +char *_EXFUN(strchr,(const char *, int));1.33 +int _EXFUN(strcmp,(const char *, const char *));1.34 +int _EXFUN(strcoll,(const char *, const char *));1.35 +char *_EXFUN(strcpy,(char *, const char *));1.36 +size_t _EXFUN(strcspn,(const char *, const char *));1.37 +char *_EXFUN(strerror,(int));1.38 +size_t _EXFUN(strlen,(const char *));1.39 +char *_EXFUN(strncat,(char *, const char *, size_t));1.40 +int _EXFUN(strncmp,(const char *, const char *, size_t));1.41 +char *_EXFUN(strncpy,(char *, const char *, size_t));1.42 +char *_EXFUN(strpbrk,(const char *, const char *));1.43 +char *_EXFUN(strrchr,(const char *, int));1.44 +size_t _EXFUN(strspn,(const char *, const char *));1.45 +char *_EXFUN(strstr,(const char *, const char *));1.46 +1.47 +#ifndef _REENT_ONLY1.48 +char *_EXFUN(strtok,(char *, const char *));1.49 +#endif1.50 +1.51 +size_t _EXFUN(strxfrm,(char *, const char *, size_t));1.52 +1.53 +#ifndef __STRICT_ANSI__1.54 +char *_EXFUN(strtok_r,(char *, const char *, char **));1.55 +1.56 +int _EXFUN(bcmp,(const char *, const char *, size_t));1.57 +void _EXFUN(bcopy,(const char *, char *, size_t));1.58 +void _EXFUN(bzero,(char *, size_t));1.59 +int _EXFUN(ffs,(int));1.60 +char *_EXFUN(index,(const char *, int));1.61 +_PTR _EXFUN(memccpy,(_PTR, const _PTR, int, size_t));1.62 +char *_EXFUN(rindex,(const char *, int));1.63 +int _EXFUN(strcasecmp,(const char *, const char *));1.64 +char *_EXFUN(strdup,(const char *));1.65 +int _EXFUN(strncasecmp,(const char *, const char *, size_t));1.66 +char *_EXFUN(strsep,(char **, const char *));1.67 +char *_EXFUN(strlwr,(char *));1.68 +char *_EXFUN(strupr,(char *));1.69 +#ifdef __CYGWIN32__1.70 +char *_EXFUN(strsignal, (int __signo));1.71 +int _EXFUN(strtosigno, (const char *__name));1.72 +#endif1.73 +1.74 +/* These function names are used on Windows and perhaps other systems. */1.75 +#ifndef strcmpi1.76 +#define strcmpi strcasecmp1.77 +#endif1.78 +#ifndef stricmp1.79 +#define stricmp strcasecmp1.80 +#endif1.81 +#ifndef strncmpi1.82 +#define strncmpi strncasecmp1.83 +#endif1.84 +#ifndef strnicmp1.85 +#define strnicmp strncasecmp1.86 +#endif1.87 +1.88 +#endif /* ! __STRICT_ANSI__ */1.89 +1.90 +#ifdef __cplusplus1.91 +}1.92 +#endif1.93 +#endif /* _STRING_H_ */
.