Merge pull request #9 from xexyl/updates
This commit is contained in:
5 files changed
+23
-16
No files matched your search
+2
-6
@@ -445,7 +445,7 @@ ALT_TARGET= ${PROG}.orig
|
||||
all: ${DATA} ${TARGET}
|
||||
@${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 \
|
||||
supernova deep_magic magic charon pluto
|
||||
|
||||
@@ -454,10 +454,6 @@ ${PROG}: ${PROG}.c
|
||||
${CC} ${CFLAGS} $< -o $@ ${LIBS}
|
||||
-${LN} $@ a.out
|
||||
|
||||
# alternative executable
|
||||
#
|
||||
alt: ${DATA} ${ALT_TARGET}
|
||||
@${TRUE}
|
||||
|
||||
${PROG}.orig: ${PROG}.orig.c
|
||||
@echo "NOTE: The original source may not compile using modern compilers."
|
||||
@@ -475,7 +471,7 @@ data: ${DATA}
|
||||
# utility rules
|
||||
###############
|
||||
#
|
||||
everything: all alt
|
||||
everything: all
|
||||
|
||||
clean:
|
||||
${RM} -f ${OBJ} ${ALT_OBJ}
|
||||
|
||||
@@ -6,8 +6,6 @@ Jan Stein
|
||||
|
||||
make all
|
||||
|
||||
NOTE: The original entry may be built with "make alt".
|
||||
|
||||
Judges' comments:
|
||||
|
||||
> NOTE: to avoid problems with news and mail, the single line was split
|
||||
|
||||
@@ -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)));}
|
||||
@@ -24,7 +24,7 @@ structured programmers. This program takes goto statements to their
|
||||
logical conclusion. The layout and choice of names are classic.
|
||||
|
||||
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.
|
||||
|
||||
NOTE: With older compilers you can try the alt version like: `make alt`.
|
||||
|
||||
+20
-4
@@ -12,12 +12,28 @@ Panorama City, CA 91402 USA
|
||||
## Judges' comments:
|
||||
|
||||
### Try:
|
||||
lwall | bc | lwall
|
||||
input: x*x
|
||||
input: c^2
|
||||
|
||||
./wall | bc | ./wall
|
||||
|
||||
and input the following:
|
||||
|
||||
x*x
|
||||
c^2
|
||||
m*m
|
||||
|
||||
### 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
|
||||
between subroutines. Careful inspection will show that the array of
|
||||
|
||||
Reference in new issue
Block a user