diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2015-11-20 18:03:05 +0100 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2015-11-20 18:03:05 +0100 |
commit | 51bf1b81f3c4c7c02d8101f8ab6eb5609892e728 (patch) | |
tree | ebae89c9758e456413847d5de99de8444efb7c01 /newlib/libc/stdlib/strtod.c | |
parent | b5d8a403eca4b15e4e5a9bc5dd6a85780e6e1d3f (diff) | |
download | newlib-51bf1b81f3c4c7c02d8101f8ab6eb5609892e728.zip newlib-51bf1b81f3c4c7c02d8101f8ab6eb5609892e728.tar.gz newlib-51bf1b81f3c4c7c02d8101f8ab6eb5609892e728.tar.bz2 |
Make match function globally available to stdlib functions.
* libc/stdlib/strtod.c (match): Move from here...
* libc/stdlib/gdtoa-hexnan.c (match): ...to here.
* libc/stdlib/mprec.h (match): Declare and add __match define.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'newlib/libc/stdlib/strtod.c')
-rw-r--r-- | newlib/libc/stdlib/strtod.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/newlib/libc/stdlib/strtod.c b/newlib/libc/stdlib/strtod.c index 9b064f4..433dc7f 100644 --- a/newlib/libc/stdlib/strtod.c +++ b/newlib/libc/stdlib/strtod.c @@ -212,27 +212,6 @@ _DEFUN (ULtod, (L, bits, exp, k), } #endif /* !NO_HEX_FP */ -#ifdef INFNAN_CHECK -static int -_DEFUN (match, (sp, t), - _CONST char **sp _AND - char *t) -{ - int c, d; - _CONST char *s = *sp; - - while( (d = *t++) !=0) { - if ((c = *++s) >= 'A' && c <= 'Z') - c += 'a' - 'A'; - if (c != d) - return 0; - } - *sp = s + 1; - return 1; -} -#endif /* INFNAN_CHECK */ - - double _DEFUN (_strtod_r, (ptr, s00, se), struct _reent *ptr _AND |