restore original source as alt source to 1984/anonymous
By request, the original code was restored as 1984/anonymous/anonymous.alt.c to show the original code that was turned into the tattoo.
This commit is contained in:
1 parent
985dd9fc1a
commit
ff1ce1521a
5 files changed
+35
-9
No files matched your search
@@ -1 +1,2 @@
|
|||||||
anonymous
|
anonymous
|
||||||
|
anonymous.alt
|
||||||
+10
-5
@@ -39,7 +39,8 @@ include ../../var.mk
|
|||||||
# Common C compiler warnings to silence
|
# Common C compiler warnings to silence
|
||||||
#
|
#
|
||||||
CSILENCE= -Wno-error -Wno-implicit-function-declaration -Wno-implicit-int \
|
CSILENCE= -Wno-error -Wno-implicit-function-declaration -Wno-implicit-int \
|
||||||
-Wno-return-type -Wno-string-plus-int -Wno-unsequenced
|
-Wno-return-type -Wno-string-plus-int -Wno-unsequenced \
|
||||||
|
-Wno-deprecated-non-prototype -Wno-void-pointer-to-int-cast
|
||||||
|
|
||||||
# Common C compiler warning flags
|
# Common C compiler warning flags
|
||||||
#
|
#
|
||||||
@@ -85,7 +86,8 @@ CC= cc
|
|||||||
ifeq ($(CC),clang)
|
ifeq ($(CC),clang)
|
||||||
#
|
#
|
||||||
CSILENCE+= -Wno-poison-system-directories -Wno-shadow -Wno-missing-prototypes \
|
CSILENCE+= -Wno-poison-system-directories -Wno-shadow -Wno-missing-prototypes \
|
||||||
-Wno-strict-prototypes -Wno-missing-variable-declarations -Wno-pedantic
|
-Wno-strict-prototypes -Wno-missing-variable-declarations -Wno-pedantic \
|
||||||
|
-Wno-void-pointer-to-int-cast
|
||||||
#
|
#
|
||||||
CWARN+= -Weverything
|
CWARN+= -Weverything
|
||||||
#
|
#
|
||||||
@@ -113,8 +115,8 @@ OBJ= ${PROG}.o
|
|||||||
DATA=
|
DATA=
|
||||||
TARGET= ${PROG}
|
TARGET= ${PROG}
|
||||||
#
|
#
|
||||||
ALT_OBJ=
|
ALT_OBJ= ${PROG}.alt.o
|
||||||
ALT_TARGET=
|
ALT_TARGET= ${PROG}.alt
|
||||||
|
|
||||||
|
|
||||||
#################
|
#################
|
||||||
@@ -129,7 +131,6 @@ all: data ${TARGET}
|
|||||||
supernova deep_magic magic charon pluto
|
supernova deep_magic magic charon pluto
|
||||||
|
|
||||||
${PROG}: ${PROG}.c
|
${PROG}: ${PROG}.c
|
||||||
@echo "NOTE: This entry most likely will not work under macOS."
|
|
||||||
${CC} ${CFLAGS} $< -o $@ ${LIBS}
|
${CC} ${CFLAGS} $< -o $@ ${LIBS}
|
||||||
|
|
||||||
# alternative executable
|
# alternative executable
|
||||||
@@ -137,6 +138,10 @@ ${PROG}: ${PROG}.c
|
|||||||
alt: data ${ALT_TARGET}
|
alt: data ${ALT_TARGET}
|
||||||
@${TRUE}
|
@${TRUE}
|
||||||
|
|
||||||
|
${ALT_TARGET}: ${PROG}.alt.c
|
||||||
|
@echo "NOTE: This entry may not work on some systems."
|
||||||
|
${CC} ${CFLAGS} $< -o $@ ${LIBS}
|
||||||
|
|
||||||
# data files
|
# data files
|
||||||
#
|
#
|
||||||
data: ${DATA}
|
data: ${DATA}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# Dishonorable mention
|
# Dishonorable mention
|
||||||
|
|
||||||
Anonymous
|
Anonymous
|
||||||
|
|
||||||
|
|
||||||
## To build:
|
## To build:
|
||||||
@@ -21,6 +21,24 @@ it once did. Instead the second arg is a `void *`. In the `read()` function
|
|||||||
(which actually calls `write(2)`) the `i` (which is the `void *`) has to be cast
|
(which actually calls `write(2)`) the `i` (which is the `void *`) has to be cast
|
||||||
to an `int`. This solves the problem. Thank you Cody for your assistance!
|
to an `int`. This solves the problem. Thank you Cody for your assistance!
|
||||||
|
|
||||||
|
### Alternate code:
|
||||||
|
|
||||||
|
The original version of this entry was added, by request,
|
||||||
|
in order to show the code that was turned into the [tattoo]
|
||||||
|
(https://web.archive.org/web/20070120220721/https://thomasscovell.com/tattoo.php).
|
||||||
|
|
||||||
|
#### To build:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
make alt
|
||||||
|
```
|
||||||
|
|
||||||
|
#### To run:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
echo NOTE: This entry may not work on some systems.
|
||||||
|
./anonymous.alt
|
||||||
|
```
|
||||||
|
|
||||||
## Judges' remarks:
|
## Judges' remarks:
|
||||||
|
|
||||||
@@ -34,7 +52,7 @@ program. What reads like a read may be written like a write!
|
|||||||
In 2005 someone by the name of Thomas Scovell got a tattoo of this entry. See
|
In 2005 someone by the name of Thomas Scovell got a tattoo of this entry. See
|
||||||
his [web
|
his [web
|
||||||
page](https://web.archive.org/web/20070120220721/https://thomasscovell.com/tattoo.php)
|
page](https://web.archive.org/web/20070120220721/https://thomasscovell.com/tattoo.php)
|
||||||
for more information on the tattoo. This is what it looks like:
|
for more information on the tattoo. This is what it looks like:
|
||||||
|
|
||||||
|
|
||||||

|

|
||||||
|
|||||||
@@ -0,0 +1,2 @@
|
|||||||
|
int i;main(){for(;i["]<i;++i){--i;}"];read('-'-'-',i+++"hell\
|
||||||
|
o, world!\n",'/'/'/'));}read(j,i,p){write(j/p+p,i---j,i/i);}
|
||||||
@@ -1,2 +1,2 @@
|
|||||||
i;main(){for(;i["]<i;++i){--i;}"];read('-'-'-',i+++"hell\
|
i;main(){for(;i["]<i;++i){--i;}"];read('-'-'-',i+++"hello, world!\\
|
||||||
o, world!\n",'/'/'/'));}read(j,i,p)void*i;{write(j/p+p,i---j,(int)i/(int)i);}
|
n",'/'/'/'));}read(j,i,p)void*i;{write(j/p+p,i---j,(int)i/(int)i);}
|
||||||
Reference in new issue
Block a user