Xavier Del Campo Romero
f297dab1f2
inttypes.h: Fix wrong definitions
...
PRIsN is not defined according to C99. Instead, PRIdN and PRIiN are the
macros defined for signed integers.
2024-03-31 08:17:00 +02:00
Xavier Del Campo Romero
ff52258e15
stdio.h: Add missing declaration for freopen(3)
2023-11-29 13:03:46 +01:00
Xavier Del Campo Romero
c6ded28dce
libpsx: Fix const-correctness for fwrite(3)
...
According to C99 §7.19.8.2p1, fwrite(3) is expected to take a const void
*, and not void *.
2023-11-29 13:00:13 +01:00
Xavier Del Campo Romero
c157ae7c78
libpsx: Add rewind(3)
2023-11-29 12:55:31 +01:00
Xavier Del Campo Romero
2ffa7e5c7b
libpsx: Move type definitions to stdint.h
...
According to C99 §7.8, inttypes.h is meant to include stdint.h, and not
the other way around.
2023-11-29 12:54:52 +01:00
Xavier Del Campo Romero
ecfc7a127b
Upgrade to version 0.7.1
2022-06-08 00:54:16 +02:00
Xavier Del Campo Romero
e207690982
Remove ssize_t definition from stdlib.h
2022-02-07 01:32:42 +01:00
Xavier Del Campo Romero
d13246d52f
psx.h: define root counter specs as macros
...
ISO C considers enumerators of int type, so any value larger than
0x7FFFFFFF is considered invalid on platforms where sizeof (int) == 4.
A workaround for this limitation on the language is to use macros
instead.
2022-02-07 01:31:02 +01:00
Xavier Del Campo Romero
ca52bfc045
Upgrade to version 0.7.0
...
Many breaking changes have been introduced by previous commits, so it
might be a good idea to do so.
2021-10-24 03:11:31 +02:00
Xavier Del Campo Romero
a34280dec7
Provide buffered fread(3)
...
In order to reduce calls to seek(2) (which are very expensive), this
commit keeps a sector-sized cache for each available FILE instance,
except from the standard streams, of course.
As expected, this allows calls to fread(3) to react much faster when
small, contiguous chunks are read.
2021-10-24 03:10:03 +02:00
Xavier Del Campo Romero
7af858caaf
Provide conforming interface for fwrite(3)
2021-10-24 03:10:03 +02:00
Xavier Del Campo Romero
cbd551e8a3
Provide implementations for strtoul(3) and strtoull(3)
2021-10-24 03:10:03 +02:00
Xavier Del Campo Romero
eaff9ccf1d
Provide implementation for perror(3)
2021-10-24 03:10:03 +02:00
Xavier Del Campo Romero
80beba98c7
Provide implementation for fprintf(3)
2021-10-24 03:10:03 +02:00
Xavier Del Campo Romero
fdf8c18335
Add conforming interfaces of standard streams
2021-10-24 03:09:47 +02:00
Xavier Del Campo Romero
60528d5913
errno.h: always define errno
2021-10-24 02:34:46 +02:00
Xavier Del Campo Romero
5f6b1e98dd
Set conforming interface for vprintf(3)
2021-10-24 02:33:52 +02:00
Xavier Del Campo Romero
bea2c98a06
stdio.h: use NULL definition from stddef.h
2021-10-24 02:21:17 +02:00
Xavier Del Campo Romero
6989798d87
Import MEMCARD_STATUS_UNKNOWN from psxsdk-20150729
2021-01-03 01:16:34 +01:00
Xavier Del Campo Romero
e3eb9612af
Add implementation for strtok_r
2021-01-03 01:02:25 +01:00
Xavier Del Campo Romero
cbd6cab28b
Provide experimental (non-working) mouse support
2021-01-03 01:02:25 +01:00
Xavier Del Campo Romero
a9b446f915
Fix const-correctness on psxgpu
...
- Added GsSetDrawEnv_DMA and GsUploadCLUT.
2021-01-03 01:02:23 +01:00
Xavier Del Campo Romero
4fb20e290e
Add PRiX* macros to inttypes.h
2020-11-08 17:33:15 +01:00
Xavi Del Campo
ad890e56b6
Fixed non-standard memset() declaration
2020-03-05 18:22:52 +01:00
Xavi Del Campo
55e4700bc7
Minor change on COLORMODE definition
2020-02-01 11:23:06 +01:00
Xavi Del Campo
805fc37a06
Added missing extern "C"
2020-02-01 00:51:53 +01:00
Xavi Del Campo
78128c8058
Added PSX_PollPad_Fast_Ex() from psxsdk-20150729 fork
...
Also, added extern "C" on some header files. Some are still missing.
2020-01-31 13:13:14 +01:00
Xavi Del Campo
08ca71f289
Solved const-correctness issues
2020-01-31 11:14:51 +01:00
Xavi Del Campo
98d6e71da7
Added missing include on psxgpu.h
2020-01-31 10:42:47 +01:00
Xavi Del Campo
7c24e9a9b0
Imported pristine psxsdk-20190410 from official repo
2020-01-31 10:32:23 +01:00