diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2021-10-24 02:46:24 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2021-10-24 03:09:47 +0200 |
| commit | fdf8c183357a1c2892ab100591e257f46cdadd4c (patch) | |
| tree | bcc245d18214a0574ef46c07bd33731804f06146 /libpsx/src | |
| parent | ac37834fe63683619b1a0fa6692f56e419badb5e (diff) | |
| download | psxsdk-fdf8c183357a1c2892ab100591e257f46cdadd4c.tar.gz | |
Add conforming interfaces of standard streams
Diffstat (limited to 'libpsx/src')
| -rw-r--r-- | libpsx/src/libc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libpsx/src/libc.c b/libpsx/src/libc.c index 7f0b0f5..55ab413 100644 --- a/libpsx/src/libc.c +++ b/libpsx/src/libc.c @@ -26,7 +26,7 @@ static unsigned int __sio_cr_mapped = 0; #define NUM_OF_FILE_STRUCTS 259 -FILE file_structs[NUM_OF_FILE_STRUCTS] = +static FILE file_structs[NUM_OF_FILE_STRUCTS] = { [0] = // stdin { @@ -63,9 +63,9 @@ FILE file_structs[NUM_OF_FILE_STRUCTS] = }, }; -FILE *stdin = &file_structs[0]; -FILE *stdout = &file_structs[1]; -FILE *stderr = &file_structs[2]; +FILE *const stdin = &file_structs[0]; +FILE *const stdout = &file_structs[1]; +FILE *const stderr = &file_structs[2]; #define IS_CONS_IN(f) (f->fildes == 0) #define IS_CONS_OUT(f) (f->fildes == 1 || f->fildes == 2) |
