Add second arg to main() in 1998/bas1

This commit is contained in:
Cody Boone Ferguson committed 2023-11-25 10:23:41 -08:00
1 parent 6db290e89e
commit 16bb6ae2f2
2 files changed
+11 -1

No files matched your search

+1 -1
View File
@@ -23,7 +23,7 @@ char r[]="C#S3K+[;G'W7OB/_? ?
[48][3]={ { { 2} } } ; void**V,*D,*F[32][48];
void*Q(void**O){ return*O?(*O=Q(*O)):O; } U(
O){return E+=(O/=2)-1?U((A=A/2^57525273+(A&
1^O&1)*9583591<<5,O)),0:O,16; } main(O){ A
1^O&1)*9583591<<5,O)),0:O,16; } main(O,S)char**S;{ A
=O?time(D):953351751; z I=0; I<26; ++I){z
N=I/2; N<30+I/2; ++N){ z M=0; M<3; ++M){
p Z=O)z; (B=I+Z*!!M) <26&&N+Z*(M!=2)-B/
+10
View File
@@ -1996,6 +1996,16 @@ they do have page up and page down but this gives a default for those who don't
have them like with Macs.
## [1998/bas1](1998/bas1/bas1.c) ([README.md](1998/bas1/README.md]))
Cody, out of an abundance of caution, added a second arg to `main()` as some
versions of clang whine about the number of args on top of what type they are
In particular some versions claim that they only allow 0, 2 or 3 args. It
appears that they do allow 1 but for instance 4 is not allowed. However as it's
quite possible they will 'fix' this defect it would be better to have this not
be a problem at such a time.
## [1998/bas2](1998/bas2/bas2.c) ([README.md](1998/bas2/README.md]))
Cody added the [try.sh](1998/bas2/try.sh) script which runs some default actions