Fix 1994/horton/Makefile and README.md
The alt code was being compiled with 'all' rather than 'alt'. The README.md file also has had format updates including referring to the alt code as well as the gtface.c. This should complete 1994/horton.
This commit is contained in:
1 parent
4ba4dde279
commit
0df21af4c4
3 files changed
+31
-6
No files matched your search
@@ -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
@@ -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
@@ -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]))
|
||||
|
||||
Reference in new issue
Block a user