Updates and improvements to 2001/westley
There are a number of improvements in this commit but first: added missing file status to bugs.md and also note on gets() being used (but see below). Format fixes in README.md. As for improvements the following things were done. Move the 'try' commands to new script westley.sh. It includes additional commands and shows what each one is before executing it. Added westley.sort.c which is based on the author's suggestion of sort -b which always sorts the input. This was actually westley3.c in the try section but this has been removed or replaced. Added westley.punch.c which is also based on the author's comments - it shows the punch card always. This was also added to westley.sh. Why did I name it westley.punch.c ? Besides the fact it shows punch cards there's a silly remark/joke in the README.md about it that answers it. :-) These updates seem worthy of Brian Westley's final entry and a most wondrous entry at that!
This commit is contained in:
1 parent
b894b0abc9
commit
56e7dc3e88
7 files changed
+213
-57
No files matched your search
@@ -63,7 +63,7 @@ CDEFINE=
|
||||
|
||||
# Include files that are needed to compile
|
||||
#
|
||||
CINCLUDE=
|
||||
CINCLUDE= -include stdio.h
|
||||
|
||||
# Optimization
|
||||
#
|
||||
@@ -113,7 +113,7 @@ PROG= ${ENTRY}
|
||||
#
|
||||
OBJ= ${PROG}.o
|
||||
DATA=
|
||||
TARGET= ${PROG}
|
||||
TARGET= ${PROG} ${PROG}.sort ${PROG}.punch
|
||||
#
|
||||
ALT_OBJ= ${PROG}.alt.o
|
||||
ALT_TARGET= ${PROG}.alt
|
||||
@@ -143,6 +143,10 @@ westley2: westley2.c
|
||||
westley3: westley3.c
|
||||
${CC} ${CFLAGS} $< -o $@ ${LIBS}
|
||||
|
||||
${PROG}.sort: ${PROG}.sort.c
|
||||
${CC} ${CFLAGS} $< -o $@ ${LIBS}
|
||||
|
||||
|
||||
# alternative executable
|
||||
#
|
||||
alt: data ${ALT_TARGET}
|
||||
|
||||
Reference in new issue
Block a user