Fix number of args in main() in 2018/bellard

Out of an abundance of caution with clang defects / the ANSI C Committee
I have added a second arg to main() in case they decide to enforce the
rule that main() has 0, 2, 3 args.
This commit is contained in:
Cody Boone Ferguson committed 2023-12-15 03:42:44 -08:00
1 parent ef20467e12
commit 36f452de33
3 files changed
+12 -4

No files matched your search

+1 -1
View File
@@ -111,7 +111,7 @@ o[C?j*f+a:a*f+j]+=*i*(8-J)+i[1]*J+4>>3;
K(b){
putchar(b<0?0:b>255?255:b);
}
main(D){
main(D,char**V){
int a,l,L,M,g,N;
_setmode(0, 32768); _setmode(1, 32768);
s=D>1?256:1968;
+1 -1
View File
@@ -109,7 +109,7 @@ o[C?j*f+a:a*f+j]+=*i*(8-J)+i[1]*J+4>>3;
K(b){
putchar(b<0?0:b>255?255:b);
}
main(D){
main(int D,char**V){
int a,l,L,M,g,N;
s=D>1?256:1968;
Q();