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:
Landon Curt Noll committed 2023-06-05 15:43:54 -07:00
1 parent 985dd9fc1a
commit ff1ce1521a
5 files changed
+33 -7

No files matched your search

+1
View File
@@ -1 +1,2 @@
anonymous anonymous
anonymous.alt
+10 -5
View File
@@ -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}
+18
View File
@@ -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:
+2
View File
@@ -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);}
+2 -2
View File
@@ -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);}