mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-07 11:48:30 +00:00
Use long
as implicit type in chibicc
This makes it possible to write 64-bit C without headers and prototypes.
This commit is contained in:
parent
42ba9901e4
commit
d3cf9d4ef1
3 changed files with 77 additions and 5 deletions
2
third_party/chibicc/chibicc.c
vendored
2
third_party/chibicc/chibicc.c
vendored
|
@ -689,7 +689,9 @@ static void OnCtrlC(int sig, siginfo_t *si, void *ctx) {
|
|||
}
|
||||
|
||||
int chibicc(int argc, char **argv) {
|
||||
#ifndef NDEBUG
|
||||
ShowCrashReports();
|
||||
#endif
|
||||
atexit(chibicc_cleanup);
|
||||
sigaction(SIGINT, &(struct sigaction){.sa_sigaction = OnCtrlC}, NULL);
|
||||
for (int i = 1; i < argc; i++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue