path: root/src/ctype/iswupper.c
diff options
authorRich Felker <>2014-07-02 21:16:05 -0400
committerRich Felker <>2014-07-02 21:16:05 -0400
commitd89fdec51b5849ebdf8000ff1c2fb49878004f39 (patch)
tree3f417d463f914ba78c594ca44d9e9c0fb0f629e4 /src/ctype/iswupper.c
parent0bc03091bb674ebb9fa6fe69e4aec1da3ac484f2 (diff)
consolidate *_l ctype/wctype functions into their non-_l source files
the main practical purposes of this commit are to remove a huge amount of clutter from the src/locale directory, to cut down on the length of the $(AR) and $(LD) command lines, and to reduce the amount of space wasted by object file headers in the static libc.a. build time may also be reduced, though this has not been measured. as an additional justification, if there ever were a need for the behavior of these functions to vary by locale, it would be necessary for the non-_l versions to call the _l versions, so that linking the former without the latter would not be possible anyway.
Diffstat (limited to 'src/ctype/iswupper.c')
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ctype/iswupper.c b/src/ctype/iswupper.c
index eae59a75..6e1e029c 100644
--- a/src/ctype/iswupper.c
+++ b/src/ctype/iswupper.c
@@ -1,6 +1,14 @@
#include <wctype.h>
+#include "libc.h"
int iswupper(wint_t wc)
return towlower(wc) != wc;
+int __iswupper_l(wint_t c, locale_t l)
+ return iswupper(c);
+weak_alias(__iswupper_l, iswupper_l);