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:
Justine Tunney 2023-07-09 10:10:34 -07:00
parent 42ba9901e4
commit d3cf9d4ef1
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
3 changed files with 77 additions and 5 deletions

View file

@ -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++) {