mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-08 04:08:32 +00:00
Get GCC to mostly build with Cosmo
This commit is contained in:
parent
2eb7148474
commit
9b55dbe417
54 changed files with 113 additions and 132 deletions
|
@ -27,7 +27,7 @@ static inline pureconst bool IsControl(int c) {
|
|||
return (0 <= c && c <= 0x1F) || (0x7F <= c && c <= 0x9F);
|
||||
}
|
||||
|
||||
static noinstrument pureconst inline int ToUpper(int c) {
|
||||
static dontinstrument pureconst inline int ToUpper(int c) {
|
||||
return 'a' <= c && c <= 'z' ? 'A' - 'a' + c : c;
|
||||
}
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
static int Read1(int);
|
||||
static int Read2(int);
|
||||
|
||||
noinstrument int ReadSpaces(int fd) {
|
||||
dontinstrument int ReadSpaces(int fd) {
|
||||
size_t n;
|
||||
ssize_t rc;
|
||||
for (;;) {
|
||||
|
@ -64,13 +64,13 @@ noinstrument int ReadSpaces(int fd) {
|
|||
}
|
||||
}
|
||||
|
||||
noinstrument int ReadByte(int fd) {
|
||||
dontinstrument int ReadByte(int fd) {
|
||||
int c;
|
||||
if ((c = g_buffer[fd][bp[fd]++] & 255)) return c;
|
||||
return ReadSpaces(fd);
|
||||
}
|
||||
|
||||
noinstrument int ReadChar(int fd) {
|
||||
dontinstrument int ReadChar(int fd) {
|
||||
int b, a = dx;
|
||||
for (;;) {
|
||||
dx = ReadByte(fd);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue