fix Makefile and README.md for 2000/schneiderwent

NOTE: This program does not compile.
This commit is contained in:
Landon Curt Noll committed 2023-03-15 14:15:10 -07:00
1 parent 000823d86b
commit 1717b46c94
2 files changed
+42 -34

No files matched your search

+4 -6
View File
@@ -75,8 +75,8 @@ CWARN= -Wall -Wextra -pedantic ${CSILENCE}
# Compiler standard # Compiler standard
# #
#CSTD= #CSTD=
CSTD= -ansi #CSTD= -ansi
#CSTD= -std=gnu99 CSTD= -std=gnu99
# Compiler bit architecture # Compiler bit architecture
# #
@@ -101,7 +101,7 @@ CINCLUDE=
#CINCLUDE= -include stdlib.h #CINCLUDE= -include stdlib.h
#CINCLUDE= -include stdio.h #CINCLUDE= -include stdio.h
#CINCLUDE= -include stdlib.h -include stdio.h #CINCLUDE= -include stdlib.h -include stdio.h
#CINCLUDE= -I ${X11_INCDIR} #CINCLUDE= -I ${X11_INCDIR} -I ${X11_INCDIR}/X11
#CINCLUDE= `${SDL2_CONFIG} --cflags` #CINCLUDE= `${SDL2_CONFIG} --cflags`
# Optimization # Optimization
@@ -138,8 +138,7 @@ CC= cc
# #
ifeq ($(CC),clang) ifeq ($(CC),clang)
# #
CSILENCE+= -Wno-missing-variable-declarations -Wno-poison-system-directories \ CSILENCE+= -Wno-missing-variable-declarations -Wno-poison-system-directories
-Wno-shorten-64-to-32 -Wno-sign-conversion
# #
CWARN+= -Weverything CWARN+= -Weverything
# #
@@ -324,4 +323,3 @@ pluto: charon
@echo "dwarf is a type of planet" @echo "dwarf is a type of planet"
@echo "therefore, $@ is a planet" @echo "therefore, $@ is a planet"
@echo "having lots of planets is good feature because supernovae can help ${MAKE} a lot of them" @echo "having lots of planets is good feature because supernovae can help ${MAKE} a lot of them"
+38 -28
View File
@@ -1,47 +1,57 @@
Most Timely Output: # Most Timely Output:
Craig Schneiderwent Craig Schneiderwent
WI, USA WI, USA
## To build: # To build:
make all ```sh
make
```
### To run ### To run:
./schneiderwent schneiderwent.data ```sh
./schneiderwent datafile
```
## Judges' comments ### Try:
Very nice play by the rules and portable text obfuscation. ```sh
This far surpasses old tricks like adding or subtracting 1 ./schneiderwent schneiderwent.data
from every character in a C string. ```
Translating the messages into your language of preference while ## Judges' comments:
keeping the program portable between different encodings
(Chinese, Japanese, Russian - anyone?) may be an entertaining task.
## Author's comments Very nice play by the rules and portable text obfuscation.
This far surpasses old tricks like adding or subtracting 1
from every character in a C string.
This entry displays the current time to the console, for example: Translating the messages into your language of preference while
keeping the program portable between different encodings
(Chinese, Japanese, Russian - anyone?) may be an entertaining task.
## Author's comments:
This entry displays the current time to the console, for example:
it's just after ten 'til 6 in the evening it's just after ten 'til 6 in the evening
FWIW, none of the compilers with which this entry was tested issued FWIW, none of the compilers with which this entry was tested issued
any warnings or errors in compiling the source for this entry. No any warnings or errors in compiling the source for this entry. No
doubt lint will complain about the goto statements. doubt lint will complain about the goto statements.
The schneiderwent.data file consists of the values used by multiple The schneiderwent.data file consists of the values used by multiple
table lookups. This is simply good program design, separating table lookups. This is simply good program design, separating
these values from the source code allows changing the behavior of these values from the source code allows changing the behavior of
the application without recompiling. the application without recompiling.
Having learned COBOL at an early age, the pthreads of my thought Having learned COBOL at an early age, the pthreads of my thought
processes tend to be translated into code in a verbose manner. Some processes tend to be translated into code in a verbose manner. Some
of the #defines in this entry's code are to mitigate this personal of the #defines in this entry's code are to mitigate this personal
deficiency. deficiency.
Obfuscation in this entry consists of: Obfuscation in this entry consists of:
> printfing console messages stored as EBCDIC character values - this > printfing console messages stored as EBCDIC character values - this
is not an attempt at encryption, but rather at cross platform is not an attempt at encryption, but rather at cross platform