musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/stdlib/wcstol.c
AgeCommit message (Collapse)AuthorLines
2020年04月24日fix undefined behavior in wcsto[ld] family functions Rich Felker-2/+1
analogous to commit b287cd745c2243f8e5114331763a5a9813b5f6ee but for the custom FILE stream type the wcstol and wcstod family use. __toread could be used here as well, but there's a simple direct fix to make the buffer pointers initially valid for subtraction, so just do that to avoid pulling in stdio exit code in programs that don't use stdio.
2012年11月08日clean up stdio_impl.h Rich Felker-0/+4
this header evolved to facilitate the extremely lazy practice of omitting explicit includes of the necessary headers in individual stdio source files; not only was this sloppy, but it also increased build time. now, stdio_impl.h is only including the headers it needs for its own use; any further headers needed by source files are included directly where needed.
2012年09月06日use restrict everywhere it's required by c99 and/or posix 2008 Rich Felker-6/+6
to deal with the fact that the public headers may be used with pre-c99 compilers, __restrict is used in place of restrict, and defined appropriately for any supported compiler. we also avoid the form [restrict] since older versions of gcc rejected it due to a bug in the original c99 standard, and instead use the form *restrict.
2012年04月19日further fixes to leading space issue (forgot the wide versions) Rich Felker-2/+4
2012年04月16日avoid hitting eof in wcstol Rich Felker-2/+3
shunget cannot unget eof status, causing wcstol to leave endptr pointing to the wrong place when scanning, for example, L"0x". cheap fix is to make the read function provide an infinite stream of bogus characters rather than eof. really this is something of a design flaw in how the shgetc system is used for strto* and wcsto*; in the long term, I believe multi-character unget should be scrapped and replaced with a function that can subtract from the f->shcnt counter.
2012年04月16日use the new integer parser (FILE/shgetc based) for strtol, wcstol, etc. Rich Felker-14/+71
2011年02月12日initial check-in, version 0.5.0 v0.5.0 Rich Felker-0/+18
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月11日 22:30:42 +0000

AltStyle によって変換されたページ (->オリジナル) /