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
|
|
@ -117,6 +117,7 @@
|
|||
#define atexit rb_atexit
|
||||
#define atof atof_wrapper
|
||||
#define atoi rb->atoi
|
||||
#define HAVE_ATOI 1
|
||||
#define atol atoi
|
||||
#define calloc tlsf_calloc
|
||||
#define ceil ceil_wrapper
|
||||
|
|
@ -174,7 +175,8 @@
|
|||
#define strstr SDL_strstr
|
||||
#define strtok strtok_wrapper
|
||||
#define strtok_r rb->strtok_r
|
||||
#define strtol SDL_strtol
|
||||
#define HAVE_STRTOL 1
|
||||
#define strtol rb->strtol
|
||||
#define tan tan_wrapper
|
||||
#define time(x) (*rb->current_tick/HZ)
|
||||
#define unlink remove
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue