Merge pull request #1350 from xexyl/horton1994

This commit is contained in:
Landon Curt Noll authored and GitHub committed 2023-11-10 12:22:58 -07:00
commit c4cb0193b5
3 files changed
+31 -6

No files matched your search

+3 -3
View File
@@ -114,10 +114,10 @@ PROG= ${ENTRY}
#
OBJ= ${PROG}.o
DATA= gtface.data
TARGET= ${PROG} gtface ${PROG}.alt
TARGET= ${PROG} gtface
#
ALT_OBJ= ${PROG}.alt.o
ALT_TARGET= ${PROG}.alt
ALT_OBJ= ${PROG}.alt.o gtface.o
ALT_TARGET= ${PROG}.alt gtface
#################
+22 -2
View File
@@ -14,22 +14,42 @@ make all
`A`, `B`, `C` and `D` are numeric arguments.
### Try:
```sh
./horton 3 2 1 0
```
Also try:
```sh
./gtface < gtface.data
```
## Alternate code:
This confuses cb greatly. See [horton.alt.c](horton.alt.c) for an unobfuscated/enhanced
version. To run this alternate version:
version.
### Alternate build:
```sh
make alt
```
### Alternate use:
```sh
./horton.alt A B C D
```
Use `horton.alt` as you would `horton` above.
Where A, B, C and D are like with `horton`.
## Judges' remarks:
+6 -1
View File
@@ -1760,7 +1760,12 @@ bugs.md](/bugs.md#1994-dodsond2) for more details.
Cody fixed this to check that four args were specified. With the use of the C
pre-processor macro and inclusion of stdlib.h in the Makefile the layout of the
source is exactly the same column width and no additional lines were added.
source is exactly the same column width and no additional lines were added. This
was done during one of the times where this was changed to bug status, for
better or worse.
Cody also fixed the Makefile which was causing alt code to be compiled when it
shouldn't be.
## [1994/ldb](1994/ldb/ldb.c) ([README.md](1994/ldb/README.md]))