Revert "Unbloat build config"

This reverts commit ae5d06dc53.
This commit is contained in:
Justine Tunney 2022-08-10 12:44:56 -07:00
parent 95f54eeb40
commit c1d99676c4
1421 changed files with 5556 additions and 2198 deletions

View file

@ -1,10 +1,11 @@
#ifndef COSMOPOLITAN_LIBC_STR_STR_H_
#define COSMOPOLITAN_LIBC_STR_STR_H_
#define INVALID_CODEPOINT 0xfffd
#if !(__ASSEMBLER__ + __LINKER__ + 0)
COSMOPOLITAN_C_START_
/*───────────────────────────────────────────────────────────────────────────│─╗
cosmopolitan § characters » usas x3.4-1967
fourth age telecommunications */
extern const int8_t kHexToInt[256];
extern const uint8_t gperf_downcase[256];
@ -31,6 +32,36 @@ int toupper(int);
int hextoint(int);
int cescapec(int);
/*───────────────────────────────────────────────────────────────────────────│─╗
cosmopolitan § characters » thompson-pike encoding
fifth age telecommunications
0123456789abcdef
0 Control
1§
2 !"#$%&'()*+,-./┐
3 0123456789:;<=>?
4 @ABCDEFGHIJKLMNOASA x3.4-1967
5 PQRSTUVWXYZ[\]^_
6 `abcdefghijklmno
7pqrstuvwxyz{|}~
8ÇüéâäàåçêëèïîìÄÅ
9 ÉæÆôöòûùÿÖÜ¢£¥ƒThompson-Pike Continuation
a á¡óúñѪº¿¬½¼¡«» (not really characters)
b
c1 Continuation will follow
d
eαßΓπΣσμτΦΘΩδφε2 Continuations will follow
f±÷°·²λ
5 Continuations follow (and is negative)
5 Continuations follow (note: -1=λ)
4 Continuations follow
3 Continuations follow */
#define INVALID_CODEPOINT 0xfffd
int iswalnum(wint_t);
int iswalpha(wint_t);
int iswblank(wint_t);
@ -47,6 +78,10 @@ int iswseparator(wint_t);
wint_t towlower(wint_t);
wint_t towupper(wint_t);
/*───────────────────────────────────────────────────────────────────────────│─╗
cosmopolitan § strings
*/
void bzero(void *, size_t) memcpyesque;
void *memset(void *, int, size_t) memcpyesque;
void *memmove(void *, const void *, size_t) memcpyesque;
@ -171,6 +206,10 @@ bool _istext(const void *, size_t) libcesque;
bool _isutf8(const void *, size_t) libcesque;
bool _escapedos(char16_t *, unsigned, const char16_t *, unsigned) libcesque;
/*───────────────────────────────────────────────────────────────────────────│─╗
cosmopolitan § strings » multibyte
*/
typedef unsigned mbstate_t;
axdx_t tprecode8to16(char16_t *, size_t, const char *);
@ -217,6 +256,10 @@ typedef const int *wctrans_t;
wctrans_t wctrans(const char *);
wint_t towctrans(wint_t, wctrans_t);
/*───────────────────────────────────────────────────────────────────────────│─╗
cosmopolitan § strings » system
*/
char *strsignal(int) returnsnonnull libcesque;
char *strerror(int) returnsnonnull dontthrow nocallback;
char *strerrno(int) nosideeffect libcesque;