Lephenixnoir
b11c059c0f
stdio: start simplifying scanf limit tracking logic
...
Basically removing it from the __scanf_input structure and specializing
it at format sites. The reason is that pretending it's the end of the
stream after the limit is reached does not work because we have to
return EOF at end of stream but not when the limit is hit. So we have to
handle it explicitly, and since we do, no need to have it in the
structure too.
2024-01-14 19:28:36 +01:00
Lephenixnoir
2215b3c267
stdio: make all scanf tests pass
...
The tests are still far from exhaustive but that's a good start.
2024-01-14 17:31:21 +01:00
Lephenixnoir
c776336a0d
stdio: fix scanf bounds breaking strto*
...
Mostly an initialization problem. But I also optimized the check by
making the bound a maximal unsigned integer when there is no bound,
since __scanf_peek() is used a lot.
2024-01-14 17:31:15 +01:00
Lephenixnoir
d8a55b728d
stdlib: restore private headers
2024-01-14 13:48:41 +01:00
Sylvain PILLOT
09b33ca2fa
stdlib: scanf implementation by SlyVTT
...
Authored-By: Slyvtt <pillot.sylvain@gmail.com>
2023-05-26 21:04:37 +02:00
Lephenixnoir
7c4de3e295
dso, stdlib: __cxa_atexit(), __dso_handle, atexit() (TEST)
2023-04-01 20:30:30 +02:00
Lephenixnoir
26e54af8e0
stdlib: scanf-friendly strto* functions
2023-04-01 20:30:29 +02:00
Yann MAGNIN
619afe25da
fxlibc - v1.4.2 : fix reallocarray() + remove old Vhex/Casiowin sources
...
@update
> CMakeLists.txt
| remove casiowin-* target (unused)
| remove x86-generic target (unused)
| update files location
| remove old vhex sources files (deprecated, unused)
> src/posix
| remove this folder
> src/libc
| move its content to src/
| remove thread module
> src/stdlib/reallocarray
| check if the multiplication overflow failed
| set appropriate errno value if multiplication failed
2022-06-03 16:25:31 +02:00
Lephenixnoir
ad9f92873b
new build system and source file hierarchy
2021-05-09 14:56:08 +02:00
Yatis
f76757ecd2
Fix installation / uninstallation rules + Fix compilation ABI support
2020-11-03 15:15:01 +01:00
Yatis
44bd67431c
Fix norme + move arch-specific header
2020-10-14 15:18:10 +02:00
Yatis
9f60f2bbf9
fix compilation error (vhex)
2020-10-14 12:18:34 +02:00
Yatis
aeedfcdb02
project architecture rework + handle ABI specific code (WIP)
2020-10-14 11:45:08 +02:00
Yatis
8fac0c2272
Initial commit
2020-09-17 19:27:01 +02:00