mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-06 22:43:34 +00:00
Fix ctype.h and wctype.h
This commit is contained in:
parent
e7be5a5e2b
commit
7ebaff34c6
180 changed files with 264 additions and 92 deletions
|
@ -17,6 +17,7 @@
|
|||
// PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
#include "istream.h"
|
||||
#include "libc/ctype.h"
|
||||
#include "libc/fmt/conv.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/str/str.h"
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
// PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
#include "istringstream.h"
|
||||
#include "libc/ctype.h"
|
||||
#include "libc/fmt/conv.h"
|
||||
#include "libc/str/str.h"
|
||||
|
||||
|
|
|
@ -60,6 +60,7 @@ Contact: antirez@gmail.com");
|
|||
#include "libc/calls/calls.h"
|
||||
#include "libc/calls/termios.h"
|
||||
#include "libc/calls/weirdtypes.h"
|
||||
#include "libc/ctype.h"
|
||||
#include "libc/errno.h"
|
||||
#include "libc/log/log.h"
|
||||
#include "libc/mem/alg.h"
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
#include "libc/calls/struct/sigaction.h"
|
||||
#include "libc/calls/struct/sigset.h"
|
||||
#include "libc/calls/termios.h"
|
||||
#include "libc/ctype.h"
|
||||
#include "libc/errno.h"
|
||||
#include "libc/log/check.h"
|
||||
#include "libc/log/log.h"
|
||||
|
|
|
@ -119,6 +119,7 @@
|
|||
#include "libc/calls/struct/stat.h"
|
||||
#include "libc/calls/struct/tms.h"
|
||||
#include "libc/calls/termios.h"
|
||||
#include "libc/ctype.h"
|
||||
#include "libc/dce.h"
|
||||
#include "libc/errno.h"
|
||||
#include "libc/fmt/conv.h"
|
||||
|
@ -11142,7 +11143,9 @@ static void exitreset() {
|
|||
inps4 = 0;
|
||||
}
|
||||
/* from expand.c: */
|
||||
{ ifsfree(); }
|
||||
{
|
||||
ifsfree();
|
||||
}
|
||||
/* from redir.c: */
|
||||
{
|
||||
/*
|
||||
|
@ -11165,9 +11168,13 @@ static void forkreset() {
|
|||
}
|
||||
}
|
||||
/* from main.c: */
|
||||
{ handler = &main_handler; }
|
||||
{
|
||||
handler = &main_handler;
|
||||
}
|
||||
/* from redir.c: */
|
||||
{ redirlist = NULL; }
|
||||
{
|
||||
redirlist = NULL;
|
||||
}
|
||||
/* from trap.c: */
|
||||
{
|
||||
char **tp;
|
||||
|
@ -11198,7 +11205,9 @@ static void reset() {
|
|||
popallfiles();
|
||||
}
|
||||
/* from var.c: */
|
||||
{ unwindlocalvars(0); }
|
||||
{
|
||||
unwindlocalvars(0);
|
||||
}
|
||||
}
|
||||
|
||||
static void calcsize(union node *n) {
|
||||
|
|
|
@ -30,6 +30,7 @@
|
|||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/calls/weirdtypes.h"
|
||||
#include "libc/ctype.h"
|
||||
#include "libc/errno.h"
|
||||
#include "libc/log/bsd.h"
|
||||
#include "libc/mem/mem.h"
|
||||
|
|
|
@ -20,15 +20,16 @@
|
|||
#include "libc/calls/internal.h"
|
||||
#include "libc/calls/sig.internal.h"
|
||||
#include "libc/calls/state.internal.h"
|
||||
#include "libc/intrin/fds.h"
|
||||
#include "libc/calls/struct/iovec.h"
|
||||
#include "libc/calls/struct/sigset.internal.h"
|
||||
#include "libc/calls/syscall_support-nt.internal.h"
|
||||
#include "libc/cosmo.h"
|
||||
#include "libc/ctype.h"
|
||||
#include "libc/errno.h"
|
||||
#include "libc/fmt/itoa.h"
|
||||
#include "libc/intrin/describeflags.h"
|
||||
#include "libc/intrin/dll.h"
|
||||
#include "libc/intrin/fds.h"
|
||||
#include "libc/intrin/nomultics.h"
|
||||
#include "libc/intrin/strace.h"
|
||||
#include "libc/intrin/weaken.h"
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/calls/struct/sigset.internal.h"
|
||||
#include "libc/calls/syscall_support-nt.internal.h"
|
||||
#include "libc/ctype.h"
|
||||
#include "libc/intrin/strace.h"
|
||||
#include "libc/mem/alloca.h"
|
||||
#include "libc/nt/createfile.h"
|
||||
|
|
26
libc/ctype.h
Normal file
26
libc/ctype.h
Normal file
|
@ -0,0 +1,26 @@
|
|||
#ifndef COSMOPOLITAN_CTYPE_H_
|
||||
#define COSMOPOLITAN_CTYPE_H_
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
#define _tolower(u) (0040 | (u))
|
||||
#define _toupper(u) (0137 & (u))
|
||||
|
||||
int isascii(int) libcesque;
|
||||
int isspace(int) libcesque;
|
||||
int isalpha(int) libcesque;
|
||||
int isdigit(int) libcesque;
|
||||
int isalnum(int) libcesque;
|
||||
int isxdigit(int) libcesque;
|
||||
int isprint(int) libcesque;
|
||||
int islower(int) libcesque;
|
||||
int isupper(int) libcesque;
|
||||
int isblank(int) libcesque;
|
||||
int iscntrl(int) libcesque;
|
||||
int isgraph(int) libcesque;
|
||||
int tolower(int) libcesque;
|
||||
int ispunct(int) libcesque;
|
||||
int toupper(int) libcesque;
|
||||
int toascii(int) libcesque;
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* COSMOPOLITAN_CTYPE_H_ */
|
|
@ -16,6 +16,7 @@
|
|||
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
|
||||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/ctype.h"
|
||||
#include "libc/fmt/conv.h"
|
||||
#include "libc/str/str.h"
|
||||
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
|
||||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/ctype.h"
|
||||
#include "libc/fmt/conv.h"
|
||||
#include "libc/str/str.h"
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_FMT_STRTOL_H_
|
||||
#define COSMOPOLITAN_LIBC_FMT_STRTOL_H_
|
||||
#include "libc/ctype.h"
|
||||
#include "libc/errno.h"
|
||||
#include "libc/str/str.h"
|
||||
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
|
||||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/ctype.h"
|
||||
#include "libc/fmt/conv.h"
|
||||
#include "libc/stdckdint.h"
|
||||
#include "libc/str/str.h"
|
||||
|
|
|
@ -65,6 +65,7 @@
|
|||
#include "libc/thread/tls.h"
|
||||
#include "libc/thread/tls2.internal.h"
|
||||
#include "libc/vga/vga.internal.h"
|
||||
#include "libc/wctype.h"
|
||||
|
||||
#define STACK_ERROR "kprintf error: stack is about to overflow\n"
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef _CTYPE_H
|
||||
#define _CTYPE_H
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/ctype.h"
|
||||
#endif /* _CTYPE_H */
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
#ifndef _WCTYPE_H
|
||||
#define _WCTYPE_H
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/fmt/conv.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/wctype.h"
|
||||
#endif /* _WCTYPE_H */
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
#include "libc/calls/calls.h"
|
||||
#include "libc/calls/struct/stat.h"
|
||||
#include "libc/calls/struct/timespec.h"
|
||||
#include "libc/ctype.h"
|
||||
#include "libc/dce.h"
|
||||
#include "libc/errno.h"
|
||||
#include "libc/fmt/conv.h"
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
│ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. │
|
||||
│ │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/ctype.h"
|
||||
#include "libc/fmt/conv.h"
|
||||
#include "libc/sock/sock.h"
|
||||
#include "libc/sock/struct/sockaddr.h"
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
|
||||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/ctype.h"
|
||||
#include "libc/macros.internal.h"
|
||||
#include "libc/sock/internal.h"
|
||||
#include "libc/sock/sock.h"
|
||||
|
|
|
@ -39,6 +39,7 @@
|
|||
│ THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/assert.h"
|
||||
#include "libc/ctype.h"
|
||||
#include "libc/errno.h"
|
||||
#include "libc/fmt/conv.h"
|
||||
#include "libc/fmt/divmod10.internal.h"
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
#include "libc/calls/calls.h"
|
||||
#include "libc/calls/struct/sigaction.h"
|
||||
#include "libc/calls/termios.h"
|
||||
#include "libc/ctype.h"
|
||||
#include "libc/errno.h"
|
||||
#include "libc/paths.h"
|
||||
#include "libc/str/str.h"
|
||||
|
|
|
@ -1,11 +1,10 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_STDIO_H_
|
||||
#define COSMOPOLITAN_LIBC_STDIO_H_
|
||||
|
||||
#define EOF -1 /* end of file */
|
||||
#define WEOF -1u /* end of file (multibyte) */
|
||||
#define _IOFBF 0 /* fully buffered */
|
||||
#define _IOLBF 1 /* line buffered */
|
||||
#define _IONBF 2 /* no buffering */
|
||||
#define EOF -1 /* end of file */
|
||||
#define _IOFBF 0 /* fully buffered */
|
||||
#define _IOLBF 1 /* line buffered */
|
||||
#define _IONBF 2 /* no buffering */
|
||||
|
||||
#define L_tmpnam 20
|
||||
#define L_ctermid 20
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
|
||||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/ctype.h"
|
||||
|
||||
/**
|
||||
* Returns nonzero if c is lower, alpha, or digit.
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
|
||||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/ctype.h"
|
||||
|
||||
/**
|
||||
* Returns nonzero if c is upper or lower.
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
|
||||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/ctype.h"
|
||||
|
||||
/**
|
||||
* Returns nonzero if c is ascii.
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
|
||||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/ctype.h"
|
||||
|
||||
/**
|
||||
* Returns nonzero if c is space or tab.
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
|
||||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/ctype.h"
|
||||
|
||||
/**
|
||||
* Returns nonzero if c is C0 ASCII control code or DEL.
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
|
||||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/ctype.h"
|
||||
|
||||
/**
|
||||
* Returns nonzero if c is decimal digit.
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
|
||||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/ctype.h"
|
||||
|
||||
/**
|
||||
* Returns nonzero if c is printable ascii that isn't space.
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
|
||||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/ctype.h"
|
||||
|
||||
/**
|
||||
* Returns nonzero if c is lowercase alpha ascii character.
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
|
||||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/ctype.h"
|
||||
|
||||
/**
|
||||
* Returns nonzero if c is printable ascii including space.
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
|
||||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/ctype.h"
|
||||
|
||||
/**
|
||||
* Returns nonzero if ``c ∈ !"#$%&'()*+,-./:;<=>?@[\]^_`{|}~``
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
|
||||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/ctype.h"
|
||||
|
||||
/**
|
||||
* Returns nonzero if c is space, \t, \r, \n, \f, or \v.
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
|
||||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/ctype.h"
|
||||
|
||||
/**
|
||||
* Returns nonzero if c is uppercase alpha ascii character.
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
|
||||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/wctype.h"
|
||||
|
||||
/**
|
||||
* Returns nonzero if c is lower, alpha, or digit.
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
|
||||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/wctype.h"
|
||||
|
||||
/**
|
||||
* Returns nonzero if c is alphabetical.
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
|
||||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/wctype.h"
|
||||
|
||||
/**
|
||||
* Returns nonzero if c is space or tab.
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
|
||||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/wctype.h"
|
||||
|
||||
/**
|
||||
* Returns nonzero if c is C0 or C1 control code.
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/macros.internal.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/wctype.h"
|
||||
|
||||
typedef int (*isw_f)(wint_t);
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
|
||||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/wctype.h"
|
||||
|
||||
/**
|
||||
* Returns nonzero if c is decimal digit.
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
|
||||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/wctype.h"
|
||||
|
||||
/**
|
||||
* Returns nonzero if c is printable and not a space.
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
|
||||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/wctype.h"
|
||||
|
||||
/**
|
||||
* Returns nonzero if c is lowercase letter.
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
|
||||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/wctype.h"
|
||||
|
||||
/**
|
||||
* Returns nonzero if c is printable.
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
|
||||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/wctype.h"
|
||||
|
||||
/**
|
||||
* Returns nonzero if c is punctuation mark.
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
|
||||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/wctype.h"
|
||||
|
||||
static const unsigned short kCodes[][2] = {
|
||||
{0x00aa, 0x00aa}, /* 1x English */
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
|
||||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/wctype.h"
|
||||
|
||||
/**
|
||||
* Returns nonzero if c is space character.
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
|
||||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/wctype.h"
|
||||
|
||||
/**
|
||||
* Returns nonzero if c is uppercase letter.
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
|
||||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/wctype.h"
|
||||
|
||||
/**
|
||||
* Returns nonzero if c is ascii hex digit.
|
||||
|
|
|
@ -16,10 +16,7 @@
|
|||
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
|
||||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/assert.h"
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/limits.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/ctype.h"
|
||||
|
||||
/**
|
||||
* Returns true if c is hexadecimal digit.
|
||||
|
|
|
@ -3,9 +3,6 @@
|
|||
|
||||
#define INVALID_CODEPOINT 0xfffd
|
||||
|
||||
#define _tolower(u) (0040 | (u))
|
||||
#define _toupper(u) (0137 & (u))
|
||||
|
||||
#ifdef _COSMO_SOURCE
|
||||
#define chomp _chomp
|
||||
#define chomp16 _chomp16
|
||||
|
@ -20,42 +17,13 @@
|
|||
#define wcsstartswith _wcsstartswith
|
||||
#endif /* _COSMO_SOURCE */
|
||||
|
||||
#ifndef WEOF
|
||||
#define WEOF -1u
|
||||
#endif
|
||||
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
int isascii(int) libcesque;
|
||||
int isspace(int) libcesque;
|
||||
int isalpha(int) libcesque;
|
||||
int isdigit(int) libcesque;
|
||||
int isalnum(int) libcesque;
|
||||
int isxdigit(int) libcesque;
|
||||
int isprint(int) libcesque;
|
||||
int islower(int) libcesque;
|
||||
int isupper(int) libcesque;
|
||||
int isblank(int) libcesque;
|
||||
int iscntrl(int) libcesque;
|
||||
int isgraph(int) libcesque;
|
||||
int tolower(int) libcesque;
|
||||
int ispunct(int) libcesque;
|
||||
int toupper(int) libcesque;
|
||||
int toascii(int) libcesque;
|
||||
|
||||
int iswalnum(wint_t) libcesque;
|
||||
int iswalpha(wint_t) libcesque;
|
||||
int iswblank(wint_t) libcesque;
|
||||
int iswcntrl(wint_t) libcesque;
|
||||
int iswdigit(wint_t) libcesque;
|
||||
int iswgraph(wint_t) libcesque;
|
||||
int iswlower(wint_t) libcesque;
|
||||
int iswspace(wint_t) libcesque;
|
||||
int iswupper(wint_t) libcesque;
|
||||
int iswxdigit(wint_t) libcesque;
|
||||
int iswpunct(wint_t) libcesque;
|
||||
int iswprint(wint_t) libcesque;
|
||||
int iswseparator(wint_t) libcesque;
|
||||
wint_t towlower(wint_t) libcesque;
|
||||
wint_t towupper(wint_t) libcesque;
|
||||
|
||||
void *memset(void *, int, size_t) memcpyesque;
|
||||
void *memmove(void *, const void *, size_t) memcpyesque;
|
||||
void *memcpy(void *restrict, const void *restrict, size_t) memcpyesque;
|
||||
|
@ -157,14 +125,6 @@ int wctomb(char *, wchar_t) libcesque;
|
|||
int wctob(wint_t) libcesque;
|
||||
wint_t btowc(int) libcesque;
|
||||
|
||||
typedef unsigned wctype_t;
|
||||
wctype_t wctype(const char *) strlenesque;
|
||||
pureconst int iswctype(wint_t, wctype_t) libcesque;
|
||||
|
||||
typedef const int *wctrans_t;
|
||||
wctrans_t wctrans(const char *) libcesque;
|
||||
wint_t towctrans(wint_t, wctrans_t) libcesque;
|
||||
|
||||
int getsubopt(char **, char *const *, char **) libcesque paramsnonnull();
|
||||
char *strsignal(int) returnsnonnull libcesque;
|
||||
char *strerror(int) returnsnonnull dontthrow dontcallback;
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/wctype.h"
|
||||
|
||||
/**
|
||||
* Compares NUL-terminated UCS-2 strings case-insensitively.
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/wctype.h"
|
||||
|
||||
/**
|
||||
* Compares NUL-terminated UCS-2 strings case-insensitively w/ limit.
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
│ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. │
|
||||
│ │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/ctype.h"
|
||||
#include "libc/str/str.h"
|
||||
__static_yoink("musl_libc_notice");
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
|
||||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/wctype.h"
|
||||
|
||||
wint_t towctrans(wint_t c, wctrans_t t) {
|
||||
if (t == (wctrans_t)1)
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/wctype.h"
|
||||
|
||||
/**
|
||||
* Compares NUL-terminated wide strings case-insensitively.
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/wctype.h"
|
||||
|
||||
/**
|
||||
* Compares NUL-terminated wide strings case-insensitively w/ limit.
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/wctype.h"
|
||||
|
||||
wctrans_t wctrans(const char *s) {
|
||||
if (!strcmp(s, "toupper"))
|
||||
|
|
|
@ -16,9 +16,9 @@
|
|||
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
|
||||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/wctype.h"
|
||||
#include "libc/macros.internal.h"
|
||||
#include "libc/serialize.h"
|
||||
#include "libc/str/str.h"
|
||||
|
||||
static const char kWcTypeNames[][8] = {
|
||||
"alnum", //
|
||||
|
|
|
@ -17,9 +17,9 @@
|
|||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/intrin/likely.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/str/unicode.h"
|
||||
#include "libc/str/wcwidth_osx.internal.h"
|
||||
#include "libc/wctype.h"
|
||||
|
||||
/**
|
||||
* Returns cell width of monospace character.
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/atomic.h"
|
||||
#include "libc/ctype.h"
|
||||
#include "libc/fmt/itoa.h"
|
||||
#include "libc/fmt/magnumstrs.internal.h"
|
||||
#include "libc/intrin/atomic.h"
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
|
||||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/ctype.h"
|
||||
#include "libc/intrin/atomic.h"
|
||||
#include "libc/serialize.h"
|
||||
#include "libc/str/str.h"
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
|
||||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/ctype.h"
|
||||
#include "libc/fmt/bing.internal.h"
|
||||
#include "libc/fmt/itoa.h"
|
||||
#include "libc/intrin/directmap.h"
|
||||
|
|
35
libc/wctype.h
Normal file
35
libc/wctype.h
Normal file
|
@ -0,0 +1,35 @@
|
|||
#ifndef COSMOPOLITAN_WCTYPE_H_
|
||||
#define COSMOPOLITAN_WCTYPE_H_
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
#ifndef WEOF
|
||||
#define WEOF -1u
|
||||
#endif
|
||||
|
||||
typedef unsigned wctype_t;
|
||||
typedef const int *wctrans_t;
|
||||
|
||||
int iswalnum(wint_t) libcesque;
|
||||
int iswalpha(wint_t) libcesque;
|
||||
int iswblank(wint_t) libcesque;
|
||||
int iswcntrl(wint_t) libcesque;
|
||||
int iswdigit(wint_t) libcesque;
|
||||
int iswgraph(wint_t) libcesque;
|
||||
int iswlower(wint_t) libcesque;
|
||||
int iswspace(wint_t) libcesque;
|
||||
int iswupper(wint_t) libcesque;
|
||||
int iswxdigit(wint_t) libcesque;
|
||||
int iswpunct(wint_t) libcesque;
|
||||
int iswprint(wint_t) libcesque;
|
||||
int iswseparator(wint_t) libcesque;
|
||||
wint_t towlower(wint_t) libcesque;
|
||||
wint_t towupper(wint_t) libcesque;
|
||||
|
||||
wctype_t wctype(const char *) strlenesque;
|
||||
pureconst int iswctype(wint_t, wctype_t) libcesque;
|
||||
|
||||
wctrans_t wctrans(const char *) libcesque;
|
||||
wint_t towctrans(wint_t, wctrans_t) libcesque;
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* COSMOPOLITAN_WCTYPE_H_ */
|
|
@ -16,6 +16,7 @@
|
|||
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
|
||||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/ctype.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "net/http/http.h"
|
||||
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
|
||||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/ctype.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "net/http/ip.h"
|
||||
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
|
||||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/ctype.h"
|
||||
#include "libc/stdckdint.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "net/http/http.h"
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
|
||||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/ctype.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "net/http/http.h"
|
||||
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/assert.h"
|
||||
#include "libc/ctype.h"
|
||||
#include "libc/limits.h"
|
||||
#include "libc/mem/alg.h"
|
||||
#include "libc/mem/arraylist.internal.h"
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
|
||||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/ctype.h"
|
||||
#include "libc/stdckdint.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "net/http/ip.h"
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
#include "libc/calls/struct/sigset.h"
|
||||
#include "libc/calls/struct/sigset.internal.h"
|
||||
#include "libc/calls/struct/timespec.h"
|
||||
#include "libc/ctype.h"
|
||||
#include "libc/dce.h"
|
||||
#include "libc/errno.h"
|
||||
#include "libc/fmt/conv.h"
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
#include "libc/calls/struct/sysinfo.h"
|
||||
#include "libc/calls/struct/timespec.h"
|
||||
#include "libc/calls/struct/timeval.h"
|
||||
#include "libc/ctype.h"
|
||||
#include "libc/dce.h"
|
||||
#include "libc/errno.h"
|
||||
#include "libc/fmt/conv.h"
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/ctype.h"
|
||||
#include "libc/dce.h"
|
||||
#include "libc/errno.h"
|
||||
#include "libc/fmt/libgen.h"
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
#include "libc/atomic.h"
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/calls/struct/sigaction.h"
|
||||
#include "libc/ctype.h"
|
||||
#include "libc/dce.h"
|
||||
#include "libc/errno.h"
|
||||
#include "libc/runtime/runtime.h"
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/assert.h"
|
||||
#include "libc/ctype.h"
|
||||
#include "libc/dce.h"
|
||||
#include "libc/macros.internal.h"
|
||||
#include "libc/mem/gc.h"
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
#include "libc/str/str.h"
|
||||
#include "libc/testlib/ezbench.h"
|
||||
#include "libc/testlib/testlib.h"
|
||||
#include "libc/wctype.h"
|
||||
|
||||
TEST(iswupper, test) {
|
||||
EXPECT_TRUE(iswupper(L'𝐵'));
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "tool/build/lib/interner.h"
|
||||
#include "libc/ctype.h"
|
||||
#include "libc/mem/gc.h"
|
||||
#include "libc/mem/mem.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
|
|
1
third_party/chibicc/as.c
vendored
1
third_party/chibicc/as.c
vendored
|
@ -38,6 +38,7 @@
|
|||
#include "third_party/chibicc/file.h"
|
||||
#include "third_party/gdtoa/gdtoa.h"
|
||||
#include "libc/serialize.h"
|
||||
#include "libc/ctype.h"
|
||||
#include "tool/build/lib/elfwriter.h"
|
||||
|
||||
#define OSZ 0x66
|
||||
|
|
1
third_party/chibicc/asm.c
vendored
1
third_party/chibicc/asm.c
vendored
|
@ -18,6 +18,7 @@
|
|||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/intrin/bsf.h"
|
||||
#include "libc/intrin/bsr.h"
|
||||
#include "libc/ctype.h"
|
||||
#include "third_party/chibicc/chibicc.h"
|
||||
|
||||
#define PRECIOUS 0b1111000000101000 // bx,bp,r12-r15
|
||||
|
|
1
third_party/chibicc/tokenize.c
vendored
1
third_party/chibicc/tokenize.c
vendored
|
@ -5,6 +5,7 @@
|
|||
#include "libc/str/tab.internal.h"
|
||||
#include "third_party/chibicc/chibicc.h"
|
||||
#include "third_party/chibicc/file.h"
|
||||
#include "libc/ctype.h"
|
||||
#include "third_party/chibicc/kw.h"
|
||||
|
||||
// Input file
|
||||
|
|
1
third_party/ctags/args.c
vendored
1
third_party/ctags/args.c
vendored
|
@ -13,6 +13,7 @@
|
|||
#include "libc/str/str.h"
|
||||
#include "third_party/ctags/args.h"
|
||||
#include "third_party/ctags/debug.h"
|
||||
#include "libc/ctype.h"
|
||||
#include "third_party/ctags/routines.h"
|
||||
|
||||
/*
|
||||
|
|
1
third_party/ctags/asm.c
vendored
1
third_party/ctags/asm.c
vendored
|
@ -13,6 +13,7 @@
|
|||
/*
|
||||
* INCLUDE FILES
|
||||
*/
|
||||
#include "libc/ctype.h"
|
||||
#include "third_party/ctags/general.h" /* must always come first */
|
||||
|
||||
#include "libc/mem/alg.h"
|
||||
|
|
1
third_party/ctags/asp.c
vendored
1
third_party/ctags/asp.c
vendored
|
@ -13,6 +13,7 @@
|
|||
/*
|
||||
* INCLUDE FILES
|
||||
*/
|
||||
#include "libc/ctype.h"
|
||||
#include "third_party/ctags/general.h" /* must always come first */
|
||||
|
||||
#include "libc/mem/alg.h"
|
||||
|
|
1
third_party/ctags/awk.c
vendored
1
third_party/ctags/awk.c
vendored
|
@ -12,6 +12,7 @@
|
|||
/*
|
||||
* INCLUDE FILES
|
||||
*/
|
||||
#include "libc/ctype.h"
|
||||
#include "third_party/ctags/general.h" /* must always come first */
|
||||
|
||||
#include "libc/mem/alg.h"
|
||||
|
|
1
third_party/ctags/basic.c
vendored
1
third_party/ctags/basic.c
vendored
|
@ -15,6 +15,7 @@
|
|||
/*
|
||||
* INCLUDE FILES
|
||||
*/
|
||||
#include "libc/ctype.h"
|
||||
#include "third_party/ctags/general.h" /* must always come first */
|
||||
|
||||
#include "libc/mem/alg.h"
|
||||
|
|
1
third_party/ctags/beta.c
vendored
1
third_party/ctags/beta.c
vendored
|
@ -15,6 +15,7 @@
|
|||
/*
|
||||
* INCLUDE FILES
|
||||
*/
|
||||
#include "libc/ctype.h"
|
||||
#include "third_party/ctags/general.h" /* must always come first */
|
||||
|
||||
#include "libc/mem/alg.h"
|
||||
|
|
1
third_party/ctags/eiffel.c
vendored
1
third_party/ctags/eiffel.c
vendored
|
@ -14,6 +14,7 @@
|
|||
* INCLUDE FILES
|
||||
*/
|
||||
#include "libc/fmt/conv.h"
|
||||
#include "libc/ctype.h"
|
||||
#include "third_party/ctags/general.h" /* must always come first */
|
||||
|
||||
#ifdef TYPE_REFERENCE_TOOL
|
||||
|
|
1
third_party/ctags/entry.c
vendored
1
third_party/ctags/entry.c
vendored
|
@ -13,6 +13,7 @@
|
|||
* INCLUDE FILES
|
||||
*/
|
||||
#include "libc/runtime/runtime.h"
|
||||
#include "libc/ctype.h"
|
||||
#include "third_party/ctags/general.h" /* must always come first */
|
||||
|
||||
#include "libc/mem/alg.h"
|
||||
|
|
1
third_party/ctags/erlang.c
vendored
1
third_party/ctags/erlang.c
vendored
|
@ -13,6 +13,7 @@
|
|||
/*
|
||||
* INCLUDE FILES
|
||||
*/
|
||||
#include "libc/ctype.h"
|
||||
#include "third_party/ctags/general.h" /* must always come first */
|
||||
|
||||
#include "libc/mem/alg.h"
|
||||
|
|
2
third_party/ctags/flex.c
vendored
2
third_party/ctags/flex.c
vendored
|
@ -22,6 +22,8 @@
|
|||
#include "third_party/ctags/general.h" /* must always come first */
|
||||
#include "libc/str/str.h" /* to define isalpha () */
|
||||
#include "libc/runtime/runtime.h"
|
||||
#include "libc/ctype.h"
|
||||
|
||||
#ifdef DEBUG
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/stdio/dprintf.h"
|
||||
|
|
1
third_party/ctags/general.h
vendored
1
third_party/ctags/general.h
vendored
|
@ -11,6 +11,7 @@
|
|||
#ifndef _GENERAL_H
|
||||
#define _GENERAL_H
|
||||
#include "third_party/ctags/config.h"
|
||||
#include "libc/ctype.h"
|
||||
|
||||
/* Define standard error destination
|
||||
*/
|
||||
|
|
1
third_party/ctags/get.c
vendored
1
third_party/ctags/get.c
vendored
|
@ -13,6 +13,7 @@
|
|||
/*
|
||||
* INCLUDE FILES
|
||||
*/
|
||||
#include "libc/ctype.h"
|
||||
#include "third_party/ctags/general.h" /* must always come first */
|
||||
|
||||
#include "libc/mem/alg.h"
|
||||
|
|
1
third_party/ctags/go.c
vendored
1
third_party/ctags/go.c
vendored
|
@ -2,6 +2,7 @@
|
|||
* INCLUDE FILES
|
||||
*/
|
||||
#include "third_party/ctags/general.h" /* must always come first */
|
||||
#include "libc/ctype.h"
|
||||
#include "libc/runtime/runtime.h"
|
||||
|
||||
#include "third_party/ctags/debug.h"
|
||||
|
|
2
third_party/ctags/jscript.c
vendored
2
third_party/ctags/jscript.c
vendored
|
@ -21,6 +21,8 @@
|
|||
#include "third_party/ctags/general.h" /* must always come first */
|
||||
#include "libc/str/str.h" /* to define isalpha () */
|
||||
#include "libc/runtime/runtime.h"
|
||||
#include "libc/ctype.h"
|
||||
|
||||
#ifdef DEBUG
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/stdio/dprintf.h"
|
||||
|
|
1
third_party/ctags/lisp.c
vendored
1
third_party/ctags/lisp.c
vendored
|
@ -12,6 +12,7 @@
|
|||
/*
|
||||
* INCLUDE FILES
|
||||
*/
|
||||
#include "libc/ctype.h"
|
||||
#include "third_party/ctags/general.h" /* must always come first */
|
||||
|
||||
#include "third_party/ctags/parse.h"
|
||||
|
|
1
third_party/ctags/lregex.c
vendored
1
third_party/ctags/lregex.c
vendored
|
@ -16,6 +16,7 @@
|
|||
/*
|
||||
* INCLUDE FILES
|
||||
*/
|
||||
#include "libc/ctype.h"
|
||||
#include "third_party/ctags/general.h" /* must always come first */
|
||||
|
||||
#include "libc/mem/alg.h"
|
||||
|
|
1
third_party/ctags/lua.c
vendored
1
third_party/ctags/lua.c
vendored
|
@ -12,6 +12,7 @@
|
|||
/*
|
||||
* INCLUDE FILES
|
||||
*/
|
||||
#include "libc/ctype.h"
|
||||
#include "third_party/ctags/general.h" /* must always come first */
|
||||
|
||||
#include "libc/mem/alg.h"
|
||||
|
|
1
third_party/ctags/make.c
vendored
1
third_party/ctags/make.c
vendored
|
@ -12,6 +12,7 @@
|
|||
/*
|
||||
* INCLUDE FILES
|
||||
*/
|
||||
#include "libc/ctype.h"
|
||||
#include "third_party/ctags/general.h" /* must always come first */
|
||||
|
||||
#include "libc/mem/alg.h"
|
||||
|
|
1
third_party/ctags/parse.c
vendored
1
third_party/ctags/parse.c
vendored
|
@ -13,6 +13,7 @@
|
|||
/*
|
||||
* INCLUDE FILES
|
||||
*/
|
||||
#include "libc/ctype.h"
|
||||
#include "third_party/ctags/general.h" /* must always come first */
|
||||
|
||||
#include "libc/mem/alg.h"
|
||||
|
|
1
third_party/ctags/pascal.c
vendored
1
third_party/ctags/pascal.c
vendored
|
@ -13,6 +13,7 @@
|
|||
/*
|
||||
* INCLUDE FILES
|
||||
*/
|
||||
#include "libc/ctype.h"
|
||||
#include "third_party/ctags/general.h" /* must always come first */
|
||||
|
||||
#include "libc/mem/alg.h"
|
||||
|
|
1
third_party/ctags/perl.c
vendored
1
third_party/ctags/perl.c
vendored
|
@ -13,6 +13,7 @@
|
|||
/*
|
||||
* INCLUDE FILES
|
||||
*/
|
||||
#include "libc/ctype.h"
|
||||
#include "third_party/ctags/general.h" /* must always come first */
|
||||
|
||||
#include "libc/mem/alg.h"
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue