diff options
author | Damien George <damien.p.george@gmail.com> | 2014-02-22 17:49:15 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-02-22 17:49:15 +0000 |
commit | 2613ffde431594f3fe0562042c32105623fbe4dc (patch) | |
tree | 7b12ffbe18867132e665b66a44f6f72bfcc72e6f /py/strtonum.c | |
parent | 0379b55ab036921eaee96f07385d2329d8de97fd (diff) | |
download | micropython-2613ffde431594f3fe0562042c32105623fbe4dc.tar.gz micropython-2613ffde431594f3fe0562042c32105623fbe4dc.zip |
py: Rename strtonum to mp_strtonum.
strtonum clashes with BSD function of same name, and our version is
different so warrants a unique name. Addresses Issue #305.
Diffstat (limited to 'py/strtonum.c')
-rw-r--r-- | py/strtonum.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/py/strtonum.c b/py/strtonum.c index e83b9751dc..4a62756512 100644 --- a/py/strtonum.c +++ b/py/strtonum.c @@ -5,12 +5,13 @@ #include <stdlib.h> #include "misc.h" +#include "strtonum.h" #include "mpconfig.h" #include "qstr.h" #include "nlr.h" #include "obj.h" -long strtonum(const char *restrict s, int base) { +long mp_strtonum(const char *restrict s, int base) { int c, neg = 0; const char *p = s; char *num; @@ -89,7 +90,7 @@ value_error: #else /* defined(UNIX) */ -long strtonum(const char *restrict s, int base) { +long mp_strtonum(const char *restrict s, int base) { // TODO port strtol to stm return 0; } |