Main function signature equivalency #66
Labels
area:compiler
Related to code compilation or type checking
kind:feature
New feature or request
status:help-wanted
Open for contributors
C17 standard's section 5.1.2.2.1 Program startup tells us that
The troubling clause here is "or equivalent". What is considered as an equivalent exactly?
I suppose that:
char*[]
andchar**
andchar[]*
or whatever is equivalentmain
as a function with empty parameter list is equivalentmain
asint main(...)
is not equivalentSo, say,
int main(int, char*[])
andint main(const int, const char * const *)
are allowed, whileint main(int, char*)
orint main(int, int*)
aren't.As of now, we only support
char*[]
and notchar**
for theargv
parameter, which should be fixed.The text was updated successfully, but these errors were encountered: