readfloat.c: remove unused local variable
[mruby.git] / src / readfloat.c
blob1c4cf7bc28a74537ef71aa3e3ad332e98b3faa4c
1 #include <mruby.h>
3 #ifndef MRB_NO_FLOAT
4 /*
5 * strtod implementation.
6 * author: Yasuhiro Matsumoto (@mattn)
7 * license: public domain
8 */
11 The original code can be found in https://github.com/mattn/strtod
13 I modified the routine for mruby:
15 * renamed the function `vim_strtod` -> `mrb_read_float`
16 * simplified the code
17 * changed the API
19 My modifications in this file are also placed in the public domain.
21 Matz (Yukihiro Matsumoto)
24 #include <string.h>
25 #include <math.h>
27 MRB_API mrb_bool