summaryrefslogtreecommitdiff
path: root/include/ctype.h
AgeCommit message (Collapse)AuthorLines
2021-02-25suppress isascii() macro for C++Érico Rolim-0/+2
analogous to commit a60457c84a4b59ab564d7f4abb660a70283ba98d.
2015-06-06add macro version of ctype.h isascii functionRich Felker-0/+1
presumably internal code (ungetwc and fputwc) was written assuming a macro implementation existed; otherwise use of isascii is just a pessimization.
2015-04-17improve ctype.h macros to diagnose errorsRich Felker-6/+6
the casts of the argument to unsigned int suppressed diagnosis of errors like passing a pointer instead of a character. putting the actual function call in an unreachable branch restores any diagnostics that would be present if the macros didn't exist and functions were used.
2014-10-14suppress macro definitions of ctype functions under C++Rich Felker-0/+2
based on patch by Sergey Dmitrouk.
2014-08-13add inline isspace in ctype.h as an optimizationSzabolcs Nagy-1/+6
isspace can be a bottleneck in a simple parser, inlining it gives slightly smaller and faster code src/locale/pleval.o already had this optimization, the size change for other libc functions for i386 is src/internal/intscan.o 2134 2118 -16 src/locale/dcngettext.o 1562 1552 -10 src/network/res_msend.o 1961 1940 -21 src/network/lookup_name.o 2627 2608 -19 src/network/getnameinfo.o 1814 1811 -3 src/network/lookup_serv.o 643 624 -19 src/stdio/vfscanf.o 2675 2663 -12 src/stdlib/atoll.o 117 107 -10 src/stdlib/atoi.o 95 91 -4 src/stdlib/atol.o 95 91 -4 src/time/strptime.o 1515 1503 -12 (TOTALS) 432451 432321 -130
2012-09-07default features: make musl usable without feature test macrosRich Felker-0/+2
the old behavior of exposing nothing except plain ISO C can be obtained by defining __STRICT_ANSI__ or using a compiler option (such as -std=c99) that predefines it. the new default featureset is POSIX with XSI plus _BSD_SOURCE. any explicit feature test macros will inhibit the default. installation docs have also been updated to reflect this change.
2012-05-22support _BSD_SOURCE feature test macroRich Felker-1/+2
patch by Isaac Dunham. matched closely (maybe not exact) to glibc's idea of what _BSD_SOURCE should make visible.
2011-11-10fix all missing instances of __cplusplus checks/extern "C" in headersRich Felker-0/+8
patch by Arvid Picciani (aep)
2011-09-26fix ctype macros to cast argument to (unsigned) firstRich Felker-6/+6
issue reported by nsz, but it's actually not just pedantic. the functions can take input of any arithmetic type, including floating point, and the behavior needs to be as if the conversion implicit in the function call took place.
2011-02-14extensive header cleanup for standards conformance & correctnessRich Felker-7/+10
thanks to Peter Mazinger (psm) for pointing many of these issues out and submitting a patch on which this commit is loosely based
2011-02-12initial check-in, version 0.5.0v0.5.0Rich Felker-0/+53