Make 1987/westley more symmetrical after fix

With the compilation fix of the code some symmetry was unfortunately
destroyed. To try and keep it as close as possible to the original I had
just commented out the code. But looking at it again today it occurred
to me that I can make it look more symmetrical by removing the commented
out code and then formatting the code a bit differently (another cast
was removed to do this). It is not any less authentic but it now has
more symmetry which was an important part of the entry's layout.
This commit is contained in:
Cody Boone Ferguson committed 2023-10-18 05:24:45 -07:00
1 parent 0d4b60eeee
commit 7be723e0ad
2 files changed
+8 -3

No files matched your search

+2 -2
View File
@@ -26,11 +26,11 @@
,LACEDx0 = 0xDECAL, ,LACEDx0 = 0xDECAL,
rof ; for rof ; for
(;(int) (tni);) (;(int) (tni);)
/* (int)*/(tni) (tni)
= reviled ; deliver = = reviled ; deliver =
redivider redivider
; ;
for ((int)(tni)++,++reviled;reviled* *deliver;deliver++,++/*(int)*/(tni)) rof for ((tni)++,++reviled;reviled**deliver;deliver++,++(tni)) rof
= =
(int) -1- (tni) (int) -1- (tni)
;reviled--;--deliver; ;reviled--;--deliver;
+6 -1
View File
@@ -307,7 +307,12 @@ the code can refer to `gets()` instead.
Cody fixed this for modern systems. The problem was `'assignment to cast is Cody fixed this for modern systems. The problem was `'assignment to cast is
illegal, lvalue casts are not supported'`. For the original file see the illegal, lvalue casts are not supported'`. For the original file see the
README.md file. README.md file. Unfortunately this ruins some symmetry. To try and resolve this
as much as possible at first code was commented out but later on the commented
out code was removed and another part changed so that, although it has some code
no longer there, it has a closer match in symmetry and since the code was
commented out it's probably not a big deal to have it removed instead as it does
look more symmetrical now.
Cody also added to the Makefile `-include stdio.h` in the nowadays very Cody also added to the Makefile `-include stdio.h` in the nowadays very
unlikely(?) but nevertheless suggested case that `putchar()` is not available. unlikely(?) but nevertheless suggested case that `putchar()` is not available.