Merge pull request #9 from xexyl/updates

This commit is contained in:
Landon Curt Noll authored and GitHub committed 2023-02-22 13:44:12 -08:00
commit 77e4046c6d
5 files changed
+23 -16

No files matched your search

+2 -6
View File
@@ -445,7 +445,7 @@ ALT_TARGET= ${PROG}.orig
all: ${DATA} ${TARGET} all: ${DATA} ${TARGET}
@${TRUE} @${TRUE}
.PHONY: alt data everything clean clobber nuke dist_clean \ .PHONY: data everything clean clobber nuke dist_clean \
install build love haste waste make easter_egg \ install build love haste waste make easter_egg \
supernova deep_magic magic charon pluto supernova deep_magic magic charon pluto
@@ -454,10 +454,6 @@ ${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LIBS} ${CC} ${CFLAGS} $< -o $@ ${LIBS}
-${LN} $@ a.out -${LN} $@ a.out
# alternative executable
#
alt: ${DATA} ${ALT_TARGET}
@${TRUE}
${PROG}.orig: ${PROG}.orig.c ${PROG}.orig: ${PROG}.orig.c
@echo "NOTE: The original source may not compile using modern compilers." @echo "NOTE: The original source may not compile using modern compilers."
@@ -475,7 +471,7 @@ data: ${DATA}
# utility rules # utility rules
############### ###############
# #
everything: all alt everything: all
clean: clean:
${RM} -f ${OBJ} ${ALT_OBJ} ${RM} -f ${OBJ} ${ALT_OBJ}
-2
View File
@@ -6,8 +6,6 @@ Jan Stein
make all make all
NOTE: The original entry may be built with "make alt".
Judges' comments: Judges' comments:
> NOTE: to avoid problems with news and mail, the single line was split > NOTE: to avoid problems with news and mail, the single line was split
-3
View File
@@ -1,3 +0,0 @@
typedef char*z;O;o;_=33303285;main(b,Z)z Z;{b=(b>=0||(main(b+1,Z+1),*Z=O%(o=(_%
25))+'0',O/=o,_/=25))&&(b<1||(O=time(&b)%0250600,main(~5,*(z*)Z),write(1,*(z*)Z
,9)));}
+1 -1
View File
@@ -24,7 +24,7 @@ structured programmers. This program takes goto statements to their
logical conclusion. The layout and choice of names are classic. logical conclusion. The layout and choice of names are classic.
We consider this to be a beautiful counter-example for Frank Rubin's We consider this to be a beautiful counter-example for Frank Rubin's
letter to ACM form titled: *"GOTO Considered Harmful" Considered Harmful*. letter to ACM form titled: _"'GOTO Considered Harmful' Considered Harmful"_.
See the Communications of the ACM, March 1987, Page 195-196. See the Communications of the ACM, March 1987, Page 195-196.
NOTE: With older compilers you can try the alt version like: `make alt`. NOTE: With older compilers you can try the alt version like: `make alt`.
+20 -4
View File
@@ -12,12 +12,28 @@ Panorama City, CA 91402 USA
## Judges' comments: ## Judges' comments:
### Try: ### Try:
lwall | bc | lwall
input: x*x ./wall | bc | ./wall
input: c^2
and input the following:
x*x
c^2
m*m
### Also try: ### Also try:
lwall | bc and lwall | cat
./wall | bc
./wall | cat
and enter some input like:
x*x
2^x
quit # for the cat version
What we found amazing was how the flow of control was transferred What we found amazing was how the flow of control was transferred
between subroutines. Careful inspection will show that the array of between subroutines. Careful inspection will show that the array of