Fix assumption that EOF==-1 in 2015/schweikhardt

The author stated EOF must be -1 but this is, as the author even noted,
not guaranteed by the standard (it just has to be a value < 0).

But rather than add C pre-processor directives to force EOF to be -1
(preferred over changing EOF to -1 in the code) the Makefile does (after
${CFLAGS}) -UEOF -DEOF=-1 so as to not have to modify the code any.

A few fixes in the README.md file.

This should complete this entry, leaving just (I think) 2015/endoh1.
This commit is contained in:
Cody Boone Ferguson committed 2023-12-10 05:25:02 -08:00
1 parent 0335c04e15
commit 3a1c9da50a
3 files changed
+15 -3

No files matched your search

+1 -1
View File
@@ -129,7 +129,7 @@ all: data ${TARGET}
sandwich supernova deep_magic magic charon pluto
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
${CC} ${CFLAGS} -UEOF -DEOF=-1 $< -o $@ ${LDFLAGS}
# alternative executable
#