summaryrefslogtreecommitdiffstats
path: root/libc/include/wchar.h
Commit message (Collapse)AuthorAgeFilesLines
* Change wctype_t from int to long.Calin Juravle2014-05-131-1/+1
| | | | | | | | On LP64 this brings us on par with the other libcs where wctype_t is 8 bytes. Bug: 12875898 Change-Id: Ice4f538ccf0634ef6667a8d90d0f7f09cec9e1b0
* Change wctype_t from enum to intCalin Juravle2014-05-131-2/+4
| | | | | | | | This increases bionic source compatibility with other libcs where "wctype_t foo = 0;" is valid without -fpermissive. Bug: 14646243 Change-Id: Ia9bd0785bc42c7b46e2bb6c3d9b9a9d3f769d983
* Support mb sequences across calls to mb*to*wcs* functionsCalin Juravle2014-05-131-5/+3
| | | | | Bug: 13077905 Change-Id: I5abdc7cc3c27c109b7900c94b112f18a95c35763
* Merge "Reserve space in mbstate to allow for proper wchar support"Calin Juravle2014-04-301-2/+9
|\
| * Reserve space in mbstate to allow for proper wchar supportCalin Juravle2014-04-291-2/+9
| | | | | | | | | | Bug: 14382788 Change-Id: If023ac9bb65f95135cae7ebe89147e3985a69a96
* | Switch to the OpenBSD implementations of the wide scanf functions.Elliott Hughes2014-04-291-3/+6
| | | | | | | | | | | | | | | | | | This also gets us the C99 wcstoimax and wcstoumax, and a working fgetwc and ungetwc, all of which are needed in the implementation. This also brings several other files closer to upstream. Change-Id: I23b025a8237a6dbb9aa50d2a96765ea729a85579
* | Switch to the OpenBSD wcsto* functions.Elliott Hughes2014-04-291-7/+12
|/ | | | | | | | | | | | | | | | | | This replaces a partial set of non-functional functions with a complete set of functions, all of which actually work. This requires us to implement mbsnrtowcs and wcsnrtombs which completes the set of what we need for libc++. The mbsnrtowcs is basically a copy & paste of wcsnrtombs, but I'm going to go straight to looking at using the OpenBSD UTF-8 implementation rather than keep polishing our home-grown turd. (This patch also opportunistically switches us over to upstream btowc, mbrlen, and wctob, since they're all trivially expressed in terms of other functions.) Change-Id: I0f81443840de0f1aa73b96f0b51988976793a323
* Fix WCHAR_MAX, WCHAR_MIN, WINT_MAX, and WINT_MIN.Elliott Hughes2014-04-211-6/+2
| | | | | | GCC tells us everything we need to know. clang does its usual half-assed job. Change-Id: Id4d664529b10345274602768cd564d3df717e931
* Add iswblank for libcxx.Elliott Hughes2014-04-151-0/+1
| | | | | | | We have similar degenerate implementations for all the other isw* functions, so it's weird to exclude just one. Change-Id: I659b97930e68598826c4882bb59f4146870fb6a0
* Implement wctomb(3) for ltrace.Elliott Hughes2014-04-071-11/+3
| | | | | | | | | This is an implementation in the style of the rest: char == byte. We might want to come back and implement UTF-8, but this is enough for ltrace. Bug: 13747066 Change-Id: Ib2b63609c9014fdef9a8491e067467c4fc5ae3cc
* More OpenBSD cleanup (primarily string).Elliott Hughes2014-02-241-0/+3
| | | | | | This patch removes the string/ and wchar/ directories. Change-Id: Ia489904bc67047e4bc79acb1f3eec21aa3fe5f0d
* Ensure that <stdint.h> defines SIZE_MAX and friends.Elliott Hughes2013-06-131-0/+3
| | | | | | | We were missing SIG_ATOMIC_MAX, SIG_ATOMIC_MIN, SIZE_MAX, WCHAR_MAX, WCHAR_MIN, WINT_MAX, and WINT_MIN. Change-Id: I2535f36bc220fbaea009b483599b7af811c4cb5c
* Switch to upstream-freebsd for the unmolested wchar code.Elliott Hughes2013-03-011-0/+5
| | | | Change-Id: I87b4d76ff8da04109ae53638eec4f11629798960
* Bug: __WINT_TYPE__ and wint_t reference to different typesSergey Melnikov2012-11-261-1/+1
| | | | | | | | | __WINT_TYPE__ type provided by gcc. It references to unsigned int type for android and linux. Patch corrects wint_t typedef to __WINT_TYPE__. Signed-off-by: Sergey Melnikov <sergey.melnikov@intel.com> Change-Id: Iabeb9fcb0b7bb303a8b220043e339126f125dd68
* Remove useless #defines and incorrect claims from header files.Elliott Hughes2012-10-011-6/+1
| | | | | | The various __need_* macros were write-only. Change-Id: Id3cca34188e0801fdf93a038b22f2817226ad9c2
* Add wcscasecmp() and wcsncasecmp() prototypes to wchar.h.tedbo2010-11-291-0/+2
| | | | | | | | The above prototypes are missing from libc/include/wchar.h but the functions are present (although with a limited implementation) in libc. Change-Id: I1b7c6accfc59ff0f56f3f41a9d3c075e935ac54a
* Remove compiler warnings when building Bionic.David 'Digit' Turner2010-06-221-1/+1
| | | | | | | | Also add missing declarations to misc. functions. Fix clearerr() implementation (previous was broken). Handle feature test macros like _POSIX_C_SOURCE properly. Change-Id: Icdc973a6b9d550a166fc2545f727ea837fe800c4
* wchar.h: improve wchar_t support in BionicDavid 'Digit' Turner2010-06-151-3/+3
| | | | Change-Id: Iffd41046fd0933c66542abf7627a1569522dfcb2
* Add stdlib functions mbstowcs() and wcstombs().Dan Bornstein2009-11-101-0/+2
| | | | | | | As with the other wchar functions in Bionic, these are really minimally functional stubs. Change-Id: I805bc5642e7bc22d9d730cfc18f9fb4a5f164416
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+155
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-155/+0
|
* auto import from //branches/cupcake/...@126645The Android Open Source Project2009-01-151-5/+6
|
* auto import from //branches/cupcake/...@125939The Android Open Source Project2009-01-091-0/+5
|
* Code drop from //branches/cupcake/...@124589The Android Open Source Project2008-12-171-1/+5
|
* Initial Contributionandroid-1.0The Android Open Source Project2008-10-211-0/+145