Get 1989 entries to compile
There were some which cannot be compiled under clang. One entry we used a patch from Yusuke Endoh to get the entry to compile; thank you Yusuke for your assistance! Another one we used a patch from Yusuke (thank you!) but I further fixed it so that it would work with clang. It had to be done: IOCCC Tetris has to work! This was done by changing the environment arg to main() to be a char * in main() itself rather than a char **. Using a char ** in main() third arg got it to compile but only one key worked with clang so I changed it to be not the third argument but a regular char * in main(). **a (third arg) evaluated correctly but *a[1] and onward was actually part of the environment. Again IOCCC Tetris has to work! I also fixed fubar to work which took a few tweaks. README.md files were also updated.
This commit is contained in:
1 parent
b6be01bdc6
commit
9d63c37f49
23 files changed
+353
-280
No files matched your search
+23
-17
@@ -1,4 +1,4 @@
|
||||
Best one liner:
|
||||
## Best one liner:
|
||||
|
||||
David Van Brackle
|
||||
Department of Computer Science
|
||||
@@ -7,31 +7,37 @@ Best one liner:
|
||||
32816
|
||||
USA
|
||||
|
||||
Judges notes:
|
||||
|
||||
This program computes all proper subsets of the set of
|
||||
arguments passed to it. Each subset is printed with one
|
||||
element on each line, followed by a line of ten dashes.
|
||||
## To build:
|
||||
|
||||
Try:
|
||||
make all
|
||||
|
||||
vanb the rug gary lent
|
||||
vanb unix is better than os/2
|
||||
## Try:
|
||||
|
||||
Selected notes from the author:
|
||||
./vanb the rug gary lent
|
||||
./vanb unix is better than os/2
|
||||
|
||||
The program has the following charming and possibly
|
||||
non-portable features:
|
||||
## Judges' comments:
|
||||
|
||||
* It has no local or global variables,
|
||||
only the command-line parameters.
|
||||
This program computes all proper subsets of the set of
|
||||
arguments passed to it. Each subset is printed with one
|
||||
element on each line, followed by a line of ten dashes.
|
||||
|
||||
* It calls main recursively.
|
||||
|
||||
* It alters the command-line parameters.
|
||||
|
||||
* It uses the fact that if the high bit is set in a character
|
||||
variable, the value is negative.
|
||||
## Selected notes from the author:
|
||||
|
||||
The program has the following charming and possibly
|
||||
non-portable features:
|
||||
|
||||
* It has no local or global variables, only the command-line parameters.
|
||||
|
||||
* It calls main recursively.
|
||||
|
||||
* It alters the command-line parameters.
|
||||
|
||||
* It uses the fact that if the high bit is set in a character variable, the
|
||||
value is negative.
|
||||
|
||||
Copyright (c) 1989, Landon Curt Noll & Larry Bassel.
|
||||
All Rights Reserved. Permission for personal, educational or non-profit use is
|
||||
|
||||
Reference in new issue
Block a user