|
SSBM Decomp
|
#include "strtoul.h"#include "ctype.h"#include "errno.h"#include "limits.h"#include "stdio.h"#include "stdlib.h"Macros | |
| #define | final_state(scan_state) (scan_state & (finished | failure)) |
| #define | success(scan_state) (scan_state & (leading_zero | digit_loop | finished)) |
| #define | fetch() (count++, (*ReadProc)(ReadProcArg, 0, __GetAChar)) |
| #define | unfetch(c) (*ReadProc)(ReadProcArg, c, __UngetAChar) |
Enumerations | |
| enum | scan_states { start = 0x01 , check_for_zero = 0x02 , leading_zero = 0x04 , need_digit = 0x08 , digit_loop = 0x10 , finished = 0x20 , failure = 0x40 } |
Functions | |
| unsigned long | __strtoul (int base, int max_width, int(*ReadProc)(void *, int, int), void *ReadProcArg, int *chars_scanned, int *negative, int *overflow) |
| unsigned long | strtoul (const char *str, char **end, int base) |
| long | strtol (const char *str, char **end, int base) |
| int | atoi (const char *str) |
| #define success | ( | scan_state | ) | (scan_state & (leading_zero | digit_loop | finished)) |
| #define fetch | ( | ) | (count++, (*ReadProc)(ReadProcArg, 0, __GetAChar)) |
| #define unfetch | ( | c | ) | (*ReadProc)(ReadProcArg, c, __UngetAChar) |
| enum scan_states |
| unsigned long __strtoul | ( | int | base, |
| int | max_width, | ||
| int(*)(void *, int, int) | ReadProc, | ||
| void * | ReadProcArg, | ||
| int * | chars_scanned, | ||
| int * | negative, | ||
| int * | overflow | ||
| ) |
| unsigned long strtoul | ( | const char * | str, |
| char ** | end, | ||
| int | base | ||
| ) |
| long strtol | ( | const char * | str, |
| char ** | end, | ||
| int | base | ||
| ) |
| int atoi | ( | const char * | str | ) |