From: John Hodge Date: Thu, 20 Dec 2012 02:00:31 +0000 (+0800) Subject: Kernel - Added strtoul and friends to acess.h X-Git-Tag: rel0.15~597^2~26 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=71bbd3999ce518ca1dcfd9a668ad104ae0cb213e;p=tpg%2Facess2.git Kernel - Added strtoul and friends to acess.h --- diff --git a/KernelLand/Kernel/include/acess.h b/KernelLand/Kernel/include/acess.h index 24148e14..e8ca0d3c 100644 --- a/KernelLand/Kernel/include/acess.h +++ b/KernelLand/Kernel/include/acess.h @@ -378,6 +378,10 @@ extern int strpos(const char *Str, char Ch); extern int strpos8(const char *str, Uint32 search); extern void itoa(char *buf, Uint64 num, int base, int minLength, char pad); extern int atoi(const char *string); +extern unsigned long long strtoull(const char *str, char **end, int base); +extern unsigned long strtoul(const char *str, char **end, int base); +extern signed long long strtoll(const char *str, char **end, int base); +extern signed long strtol(const char *str, char **end, int base); extern int ParseInt(const char *string, int *Val); extern int ReadUTF8(const Uint8 *str, Uint32 *Val); extern int WriteUTF8(Uint8 *str, Uint32 Val); diff --git a/KernelLand/Kernel/include/init.h b/KernelLand/Kernel/include/init.h index 6af177dc..876aa789 100644 --- a/KernelLand/Kernel/include/init.h +++ b/KernelLand/Kernel/include/init.h @@ -9,5 +9,6 @@ extern void Arch_LoadBootModules(void); extern void StartupPrint(const char *String); extern void System_Init(char *Commandline); extern void Threads_Init(void); +extern void Heap_Install(void); #endif diff --git a/KernelLand/Kernel/libc.c b/KernelLand/Kernel/libc.c index 58c2e1af..a16687e4 100644 --- a/KernelLand/Kernel/libc.c +++ b/KernelLand/Kernel/libc.c @@ -15,11 +15,11 @@ #define RANDOM_SPRUCE 0xf12b039 // === PROTOTYPES === +#if 0 unsigned long long strtoull(const char *str, char **end, int base); unsigned long strtoul(const char *str, char **end, int base); signed long long strtoll(const char *str, char **end, int base); signed long strtol(const char *str, char **end, int base); -#if 0 int atoi(const char *string); int ParseInt(const char *string, int *Val); void itoa(char *buf, Uint64 num, int base, int minLength, char pad);