Commit edf26d40 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto Committed by GitHub

Merge pull request #3327 from AltimitSystems/errno.macro

Removed the errno declaration from string.c
parents 2b0dd1f4 fe86cf4c
...@@ -2750,7 +2750,7 @@ mrb_init_string(mrb_state *mrb) ...@@ -2750,7 +2750,7 @@ mrb_init_string(mrb_state *mrb)
mrb_define_method(mrb, s, "freeze", mrb_str_freeze, MRB_ARGS_NONE()); mrb_define_method(mrb, s, "freeze", mrb_str_freeze, MRB_ARGS_NONE());
} }
/* /*
* Source code for the "strtod" library procedure. * Source code for the "strtod" library procedure.
* *
* Copyright (c) 1988-1993 The Regents of the University of California. * Copyright (c) 1988-1993 The Regents of the University of California.
...@@ -2769,7 +2769,6 @@ mrb_init_string(mrb_state *mrb) ...@@ -2769,7 +2769,6 @@ mrb_init_string(mrb_state *mrb)
#include <ctype.h> #include <ctype.h>
#include <errno.h> #include <errno.h>
extern int errno;
#ifndef __STDC__ #ifndef __STDC__
# ifdef __GNUC__ # ifdef __GNUC__
...@@ -2876,7 +2875,7 @@ mrb_float_read(const char *string, char **endPtr) ...@@ -2876,7 +2875,7 @@ mrb_float_read(const char *string, char **endPtr)
* If the mantissa has more than 18 digits, ignore the extras, since * If the mantissa has more than 18 digits, ignore the extras, since
* they can't affect the value anyway. * they can't affect the value anyway.
*/ */
pExp = p; pExp = p;
p -= mantSize; p -= mantSize;
if (decPt < 0) { if (decPt < 0) {
...@@ -2954,7 +2953,7 @@ mrb_float_read(const char *string, char **endPtr) ...@@ -2954,7 +2953,7 @@ mrb_float_read(const char *string, char **endPtr)
* many powers of 2 of 10. Then combine the exponent with the * many powers of 2 of 10. Then combine the exponent with the
* fraction. * fraction.
*/ */
if (exp < 0) { if (exp < 0) {
expSign = TRUE; expSign = TRUE;
exp = -exp; exp = -exp;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment