Lephenixnoir
46c73cbc87
stdio: fix %N.Ms miscalculating spacing if M > strlen(arg)
2024-02-04 20:13:25 +01:00
Lephenixnoir
be4c2b8d33
stdio: fix bypassed __scanf_end at end of scanf
2024-01-14 22:02:53 +01:00
Lephenixnoir
0cef8ca891
stdio: slight cleanup and documentation
2024-01-14 21:58:03 +01:00
Lephenixnoir
177c4eea3f
stdio: more compact scanf format parsing
2024-01-14 21:34:46 +01:00
Lephenixnoir
527c2e48fc
stdio: more syntaxic refactoring of scanf
2024-01-14 21:27:48 +01:00
Lephenixnoir
9f6e0c8039
stdio: factor out format parsing in scanf
2024-01-14 21:20:40 +01:00
Lephenixnoir
1caaa8ff63
stdio: use compact storage for %[] set in scanf
...
256 bytes of globals is a *lot* on the G-III.
2024-01-14 20:36:09 +01:00
Lephenixnoir
5b85d53826
(formatting: case indent)
2024-01-14 20:23:55 +01:00
Lephenixnoir
55ae7df318
stdio: simplify output size management in scanf
2024-01-14 20:23:21 +01:00
Lephenixnoir
69eadb67d2
stdio: deduplicate scanf cases and remove most gotos
2024-01-14 20:07:24 +01:00
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
b61cc096d9
stdio: fix scanf buffering so all tests pass
...
Code factoring and performance improvements will follow.
2024-01-14 17:31:19 +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
95e33092ec
stdlib: add fileno (DONE)
2023-04-01 20:30:29 +02:00
Lephenixnoir
26e54af8e0
stdlib: scanf-friendly strto* functions
2023-04-01 20:30:29 +02:00
Lephenixnoir
89c6c39405
stdio: support for UTF-8 %lc in printf()
2022-08-01 11:27:24 +01: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
6fa1e2498d
Fix printf error + uninstall rules generation error + update configure
2020-11-01 11:01:39 +01:00
Yatis
565a159370
Release the 0.3.0 (add README + LICENSE and fix norm)
2020-10-21 22:26:47 +02:00
Yatis
44bd67431c
Fix norme + move arch-specific header
2020-10-14 15:18:10 +02:00
Yatis
3764de9a27
fix compilation error (common)
2020-10-14 12:07:29 +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