diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2016-12-08 01:02:27 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2016-12-08 01:02:27 +0900 |
| commit | edf26d4043dc55202a0a71252b43956c71f99ab7 (patch) | |
| tree | 0c9213bdc01d833628d17f3fd325e9694fe25c54 /src | |
| parent | 2b0dd1f48194e59ff839ec97d0fde7df76f325ea (diff) | |
| parent | fe86cf4c916b2ef89abd1ac7cd7eca63b7ae953e (diff) | |
| download | mruby-edf26d4043dc55202a0a71252b43956c71f99ab7.tar.gz mruby-edf26d4043dc55202a0a71252b43956c71f99ab7.zip | |
Merge pull request #3327 from AltimitSystems/errno.macro
Removed the errno declaration from string.c
Diffstat (limited to 'src')
| -rw-r--r-- | src/string.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/string.c b/src/string.c index 4f722b273..a9351619b 100644 --- a/src/string.c +++ b/src/string.c @@ -2750,7 +2750,7 @@ mrb_init_string(mrb_state *mrb) mrb_define_method(mrb, s, "freeze", mrb_str_freeze, MRB_ARGS_NONE()); } -/* +/* * Source code for the "strtod" library procedure. * * Copyright (c) 1988-1993 The Regents of the University of California. @@ -2769,7 +2769,6 @@ mrb_init_string(mrb_state *mrb) #include <ctype.h> #include <errno.h> -extern int errno; #ifndef __STDC__ # ifdef __GNUC__ @@ -2876,7 +2875,7 @@ mrb_float_read(const char *string, char **endPtr) * If the mantissa has more than 18 digits, ignore the extras, since * they can't affect the value anyway. */ - + pExp = p; p -= mantSize; if (decPt < 0) { @@ -2954,7 +2953,7 @@ mrb_float_read(const char *string, char **endPtr) * many powers of 2 of 10. Then combine the exponent with the * fraction. */ - + if (exp < 0) { expSign = TRUE; exp = -exp; |
