From 3ca67b08ff753898a3acf38f07c6dc123e9cf7e6 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Sat, 11 Nov 2023 08:30:19 -0800 Subject: [PATCH] Format/typo check 1996/eldby + improve alt code The alt code that I added a while back had '#include's but to make it more like the original I added '-include ..' to the CINCLUDE in the Makefile. The README.md has been typo/format checked. --- 1996/eldby/Makefile | 2 +- 1996/eldby/README.md | 11 +++++++++-- 1996/eldby/eldby.alt.c | 2 -- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/1996/eldby/Makefile b/1996/eldby/Makefile index a8ff8da4a..2d9d86171 100644 --- a/1996/eldby/Makefile +++ b/1996/eldby/Makefile @@ -62,7 +62,7 @@ CDEFINE= -DZ=35000 # Include files that are needed to compile # -CINCLUDE= +CINCLUDE= -include stdio.h -include unistd.h # Optimization # diff --git a/1996/eldby/README.md b/1996/eldby/README.md index 3e0f70f6d..db5cab019 100644 --- a/1996/eldby/README.md +++ b/1996/eldby/README.md @@ -36,12 +36,19 @@ make CFLAGS+="-DZ=20000" clobber alt Besides the fact that modern systems make it impossible to see what this program does the rapid movement can be a problem for some people. It is for these reasons that we recommend you first try the alternate version as described -above. If however you wish to see the original version in modern systems, try: +above. + + +### Original build: + +If however you wish to see the original version in modern systems, try: ```sh make all ``` +### Original use: + Use `./eldby` as you would `./eldby.alt` above. @@ -55,7 +62,7 @@ in a very small chunk of code. This program shows flying spheres. The program eats CPU on lesser equipped systems. The program will run until termination. Terminal -must be vt100 or better with 80 columns and 24 rows or more. +must be VT100 or better with 80 columns and 24 rows or more. ## Copyright and CC BY-SA 4.0 License: diff --git a/1996/eldby/eldby.alt.c b/1996/eldby/eldby.alt.c index fc4c02289..843036935 100644 --- a/1996/eldby/eldby.alt.c +++ b/1996/eldby/eldby.alt.c @@ -1,5 +1,3 @@ -#include -#include float s=1944,x[5],y[5],z[5],r[5],j,h,a,b,d,e;int i=33,c,l,f=1;int g(){return f= (f*6478+1)%65346;}m(){x[i]=g()-l;y[i]=(g()-l)/4;r[i]=g()>>4;}main(){char t[1948 ]=" `MYmtw%FFlj%Jqig~%`jqig~Etsqnsj3stb",*p=t+3,*k="3tjlq9TX";l=s*20;while(i