Make all 1985 entries compile under linux
Unfortunately some entries will either not compile under macOS or not run correctly. We used a patch from Yusuke Endoh for 1985/applin/applin.c. Thank you Yusuke! This is actually the entry that does not work right under macOS but it does under linux. Update main README.md with links. Update a number of other README.md files with typos and other fixes and improvements (including fixing invocations and adding a 'Try:' section to match later year README files). Update various Makefiles to add notes and to make some entries compile (in some cases, those that require -traditional-cpp, they will not compile under clang and we note this). Update archive/archive-1985.tar.bz2. Why? Because the purpose of the archive/ files are for the original files and some of the files in there were not original. See the files 1985/lycklama/lycklama.orig.c and 1985/shapiro/shapiro.orig.c which in the tarball do not have the .orig added to the name.
This commit is contained in:
1 parent
3101acc915
commit
e4dbd8e6e2
12 files changed
+79
-22
No files matched your search
@@ -192,6 +192,7 @@ all: ${DATA} ${TARGET}
|
||||
supernova deep_magic magic charon pluto
|
||||
|
||||
${PROG}: ${PROG}.c
|
||||
@echo "NOTE: this does not work properly in macOS."
|
||||
${CC} ${CFLAGS} $< -o $@ ${LIBS}
|
||||
|
||||
# alternative executable
|
||||
|
||||
+13
-1
@@ -1,4 +1,4 @@
|
||||
# Best one liner
|
||||
# Best one liner
|
||||
|
||||
Jack Applin [with help from Robert Heckendorn]
|
||||
|
||||
@@ -6,11 +6,23 @@ Jack Applin [with help from Robert Heckendorn]
|
||||
|
||||
make all
|
||||
|
||||
## Try:
|
||||
|
||||
|
||||
./applin
|
||||
|
||||
|
||||
NOTE: Yusuke Endoh provided a patch to get this to not issue a bus error. Thank
|
||||
you Yusuke! We note that this entry does not work under macOS. Try it out and
|
||||
see for yourself what happens!
|
||||
|
||||
|
||||
## Judges' comments:
|
||||
|
||||
One liner programs are short but twisted. This "Hello, World" version
|
||||
certainly takes its time saying hello.
|
||||
|
||||
|
||||
Copyright (c) 1985, Landon Curt Noll & Larry Bassel.
|
||||
All Rights Reserved. Permission for personal, educational or non-profit use is
|
||||
granted provided this this copyright and notice are included in its entirety
|
||||
|
||||
@@ -1 +1 @@
|
||||
main(v,c)char**c;{for(v[c++]="Hello, world!\n)";(!!c)[*c]&&(v--||--c&&execlp(*c,*c,c[!!c]+!!c,!c));**c=!c)write(!!*c,*c,!!**c);}
|
||||
main(v,c)char**c;{for(v[c++]=strdup("Hello, world!\n");(!!c)[*c]&&(v--||--c&&execlp(*c,*c,c[!!c]+!!c,!c));**c=!c)write(!!*c,*c,!!**c);}
|
||||
Reference in new issue
Block a user