tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] Clarification about log message in commit 48df89e10e


From: Michael Matz
Subject: Re: [Tinycc-devel] Clarification about log message in commit 48df89e10e
Date: Mon, 19 Apr 2021 17:57:04 +0200 (CEST)
User-agent: Alpine 2.21 (LSU 202 2017-01-01)

Hello,

On Mon, 19 Apr 2021, Michael Matz wrote:

I'm not sure what "this" refers to here, but we basically need to accept any of these forms of decls and defs of main:

int main();
int main() { ... }
void main();
void main() { ... }

Gah! And of course also the ones with void (which does declare a prototype even outside of a function def, then, and hence must match a definition if there's a separate one):

int main(void);
int main(void) { ... }
void main(void);
void main(void) { ... }

int main(int argc, char *argv[]);
int main(int argc, char *argv[]) { ... }
void main(int argc, char *argv[]);
void main(int argc, char *argv[]) { ... }


Ciao,
Michael.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]