Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions iop/system/sysclib/include/ctype.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@
extern "C" {
#endif

extern unsigned char look_ctype_table(char character);
extern void *get_ctype_table();

/* These functions are non-standardized (char instead of int) */
extern char _toupper(char c);
extern char _tolower(char c);

#define isascii(c) ((unsigned int)(c) <= 127)
#define toascii(c) ((unsigned char)(c) & 127)

Expand Down
8 changes: 0 additions & 8 deletions iop/system/sysclib/include/sysclib.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ typedef void (*print_callback_t)(void *context, int c);

/* setjmp/longjmp are already defined in setjmp.h */

/* These functions are non-standardized (char instead of int) */
extern char _toupper(char c);
extern char _tolower(char c);

/* These functions are non-standardized (IOP-only functions operating on 32-bit integers instead of wchar_t) */
extern void *_wmemcopy(u32 *dest, const u32 *src, size_t size);
extern void *_wmemset(u32 *dest, u32 c, size_t size);
Expand All @@ -45,10 +41,6 @@ extern void *_wmemset(u32 *dest, u32 c, size_t size);
/* This function is non-standard. */
extern int prnt(print_callback_t, void *context, const char * format, va_list ap);

/* These functions are used in the process of ctype.h and is non-standard. */
extern unsigned char look_ctype_table(char character);
extern void *get_ctype_table();

/* This function is non-standard. */
extern char *atob(char *s, int *i);

Expand Down
2 changes: 1 addition & 1 deletion iop/system/sysclib/src/nonstd/ctype.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#define SYSCLIB_DISABLE_BUILTINS
#include <sysclib.h>

unsigned char ctype_table[128] = {
static unsigned char ctype_table[128] = {
0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
0x20, 0x08, 0x08, 0x08, 0x08, 0x08, 0x20, 0x20,
0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
Expand Down