Get GCC to mostly build with Cosmo

This commit is contained in:
Justine Tunney 2023-06-09 06:41:34 -07:00
parent 2eb7148474
commit 9b55dbe417
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
54 changed files with 113 additions and 132 deletions

View file

@ -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);