Updates to 2001/herrmann2

Added herrmann2.alt.c. This is for a new try command to show a feature
of the entry. It can generate the original code so the try command does
this, redirecting stdout to a file (herrmann2.orig.c) and then does a
diff on the two files, to show how they're the same.

The make alt rule was fixed so it doesn't compile with herrmann2.c but
rather herrmann2.alt.c though I'm not even sure why that was defined at
all except to say that it must have been something I forgot to change
after fixing it properly.

Updated .gitignore to add herrmann2.orig.c.

Further format fixes in README.md.
This commit is contained in:
Cody Boone Ferguson committed 2023-05-23 04:32:26 -07:00
1 parent d0620ec428
commit 3fb5945632
4 files changed
+62 -9

No files matched your search

+3 -3
View File
@@ -114,8 +114,8 @@ OBJ= ${PROG}.o
DATA= herrmann2.cup herrmann2.ioccc
TARGET= ${PROG}
#
ALT_OBJ=
ALT_TARGET=
ALT_OBJ= ${PROG}.alt.o
ALT_TARGET= ${PROG}.alt
#################
@@ -137,7 +137,7 @@ ${PROG}: ${PROG}.c
alt: data ${ALT_TARGET}
@${TRUE}
${ALT_TARGET}: herrmann2.c
${ALT_TARGET}: herrmann2.alt.c
${CC} ${CFLAGS} $< -o $@ ${LIBS}
# data files