mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-07 05:35:02 -05:00
libc: Add an implementation of strtol/strtoul and export it via plugins
These were lifted from the lua plugin. sdl, doom, puzzles updated to use the exported version todo: lua, maybe? also: convert uses of atoi [back] to strtol Change-Id: I5a1ebbe8d8c99349e594ab9bbbce474e7645b4e9
This commit is contained in:
parent
32edbd430d
commit
481cc70fe0
13 changed files with 103 additions and 100 deletions
|
|
@ -22,7 +22,6 @@ float floor_wrapper(float n);
|
|||
float atan_wrapper(float x);
|
||||
float atan2_wrapper(float y, float x);
|
||||
float sqrt_wrapper(float x);
|
||||
long strtol_wrapper(const char *nptr, char **endptr, int base);
|
||||
int64_t strtoq_wrapper(const char *nptr, char **endptr, int base);
|
||||
uint64_t strtouq_wrapper(const char *nptr, char **endptr, int base);
|
||||
float pow_wrapper(float x, float y);
|
||||
|
|
@ -66,7 +65,7 @@ double acos_wrapper(double x);
|
|||
#define strcmp rb->strcmp
|
||||
#define strcpy rb->strcpy
|
||||
#define strlen rb->strlen
|
||||
#define strtol strtol_wrapper
|
||||
#define strtol rb->strtol
|
||||
#define strtoq strtoq_wrapper
|
||||
#define strtouq strtouq_wrapper
|
||||
#define vsprintf vsprintf_wrapper
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue