Merge pull request #1075 from xexyl/1985-sicherman

This commit is contained in:
Landon Curt Noll authored and GitHub committed 2023-10-16 17:49:55 -07:00
commit 3063c4a840
2 files changed
+11 -8

No files matched your search

+3 -1
View File
@@ -32,7 +32,7 @@ Use `sicherman.alt` as you would `sicherman`.
This program abuses the C preprocessor so much that some `cpp`s fail to strip This program abuses the C preprocessor so much that some `cpp`s fail to strip
out all of the comments on the first pass! If you were able to understand out all of the comments on the first pass! If you were able to understand
[Decot's](/winners.html#Dave_Decot) [entry in 1984](/1984/decot/decot.c), you [Decot's](/winners.html#Dave_Decot) [entry in 1984](/1984/decot/README.md), you
will have a head start on this one. will have a head start on this one.
Be sure to run this program through lint! If your lint works Be sure to run this program through lint! If your lint works
@@ -44,7 +44,9 @@ on a line. Now enter the letters 'n' through 'z'. But to borrow a quote
from Richard Stallman: If you think you understand what this code from Richard Stallman: If you think you understand what this code
does, then you don't, so read it again! Explain why: does, then you don't, so read it again! Explain why:
```sh
./sicherman < sicherman.c | ./sicherman | diff - ./sicherman.c ./sicherman < sicherman.c | ./sicherman | diff - ./sicherman.c
```
results in diff reporting a difference on some machines. results in diff reporting a difference on some machines.
+8 -7
View File
@@ -178,14 +178,15 @@ that Cody added. See the README.md for details.
## [1985/sicherman](1985/sicherman/sicherman.c) ([README.md](1985/sicherman/README.md])) ## [1985/sicherman](1985/sicherman/sicherman.c) ([README.md](1985/sicherman/README.md]))
Cody fixed this _very twisted entry_ to not require `-traditional-cpp`. He'd Cody fixed this _very twisted entry_ to not require `-traditional-cpp`. Fixing
like to refer you to the original file in `-traditional-cpp` is, as noted earlier, very complicated, but Cody would like
[sicherman.alt.c](1985/sicherman/sicherman.alt.c) and he suggests that you then compare it to refer you to the original file
to [sicherman.c](1985/sicherman/sicherman.c) for some good old C-fashioned fun! [sicherman.orig.c](1985/sicherman/sicherman.orig.c) and he suggests that you
then compare it to [sicherman.c](1985/sicherman/sicherman.c) for some good old
C-fashioned fun!
Later on Cody improved the fix so that it looks much more like the original Later on Cody improved the fix so that it looks much more like the [original
entry which can be found in entry](1985/sicherman/sicherman.c).
[1985/sicherman/sicherman.orig.c](1985/sicherman/sicherman.orig.c).
## [1986/hague](1986/hague/hague.c) ([README.md](1986/hague/README.md])) ## [1986/hague](1986/hague/hague.c) ([README.md](1986/hague/README.md]))