Minor fixes in 2020/burton

In the check_be.sh script the default expected prog_be to be in the path
but that's not likely so make it ./prog_be instead.

Updated README.md to change prog.be to be prog_be and also add a note
about it segfaulting without an argument at the judges' comments, close
to the top.

The Makefile also warns on the entry segfaulting on no argument. This
way the viewers can have a warning. I will look at doing this with other
entries that might segfault too but later on.

I also added some example invocations to highlight something Dave Burton
mentioned in his remarks. Of course if he's against this I have no
problem there but I think it enhances the README.
This commit is contained in:
Cody Boone Ferguson committed 2023-02-19 07:11:21 -08:00
1 parent aac3522e25
commit 8cb2cc6b7f
3 files changed
+17 -5

No files matched your search

+2
View File
@@ -436,9 +436,11 @@ all: ${TARGET} ${DATA}
@${TRUE}
prog: prog.c
@echo "NOTE: this program will segfault without an argument."
${CC} ${CFLAGS} -DB=${B} -DI=${I} -DT=${T} -DS=${S} $< -o $@ ${LIBS}
prog_be: prog.c
@echo "NOTE: this program will segfault without an argument."
${CC} ${CFLAGS} -DB=${_B} -DI=${_I} -DT=${_T} -DS=${_S} $< -o $@ ${LIBS}
check: check.sh