From 843c5f66bbad455cfbda0d546f36f7b15f2621b1 Mon Sep 17 00:00:00 2001
From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com>
Date: Sat, 22 Jun 2024 13:40:00 -0700
Subject: [PATCH] Minor fixes in 1992/westley/index.html
I believe now that it is in good order except for a strange indentation
issue in the index.html file in some code blocks that presumably has to
be fixed with CSS.
The bugs file was also slightly updated.
---
1992/westley/README.md | 10 +++++-----
1992/westley/index.html | 10 +++++-----
bugs.html | 2 +-
bugs.md | 2 +-
4 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/1992/westley/README.md b/1992/westley/README.md
index 75f601fea..d604c4bda 100644
--- a/1992/westley/README.md
+++ b/1992/westley/README.md
@@ -43,7 +43,7 @@ described below, `whereami.alt`) directly.
## Alternate code:
-The author provided a version for the US which we added. To build:
+The author provided a version for the US which we added.
### Alternate build:
@@ -110,14 +110,14 @@ vertically. The map is a Mercator projection with equal spacing
of the latitudes, so the areas near the poles are very distorted.
Latitudes near the poles and Antarctica are not shown.
-The program requires the ASCII character set, `putchar()`, `atoi()`,
+The program requires the ASCII character set, `putchar(3)`, `atoi(3)`,
and a display that auto-wraps at 80 characters(!). If your display
does not work this way, you will have to massage the output;
for example, you can redirect it to a file and edit it with vi,
which will do auto-wrap for you.
Lint complains that `main()` returns a random value and I'm not
-checking the value that `putchar()` returns. Scandalous!
+checking the value that `putchar(3)` returns. Scandalous!
If you run it with fewer than 2 arguments, it will likely
give you an exception, as it will access arguments that
@@ -132,7 +132,7 @@ a string; the first character is how many `!`s are printed
(`'A'`=1, `'B'`=2, etc), the second character is how many `' '`s, the
third is how many `!`s, etc. ASCII characters less than `'A'`
print no characters but still change the polarity, so any map
-of `' '`s and `'!'`s is possible. This is done in the `putchar()`
+of `' '`s and `'!'`s is possible. This is done in the `putchar(3)`
argument as `33^l&1`, where `l` is the character `position+4`; if
`l` is odd, `' '` is printed, if `l` is even, `'!'` is printed.
@@ -148,7 +148,7 @@ are opposite because latitude is decreasing and longitude is
increasing as you go from upper left to lower right. The offset
is where the origin (latitude=0, longitude=0) is found.
-The position counting down to zero changes the `putchar()` from
+The position counting down to zero changes the `putchar(3)` from
printing (`'!'` or `' '`) to printing (`'"'` or `'#'`).
The `"H E L L O, W O R L D!"` string inside the data string
diff --git a/1992/westley/index.html b/1992/westley/index.html
index ed308c5b3..46e4214e1 100644
--- a/1992/westley/index.html
+++ b/1992/westley/index.html
@@ -419,7 +419,7 @@ described below, whereami.alt) directly.
./try.sh
The author provided a version for the US which we added. To build:
+The author provided a version for the US which we added.
make alt
The program requires the ASCII character set, putchar(), atoi(),
+
The program requires the ASCII character set, putchar(3), atoi(3),
and a display that auto-wraps at 80 characters(!). If your display
does not work this way, you will have to massage the output;
for example, you can redirect it to a file and edit it with vi,
which will do auto-wrap for you.
Lint complains that main() returns a random value and I’m not
-checking the value that putchar() returns. Scandalous!
putchar(3) returns. Scandalous!
If you run it with fewer than 2 arguments, it will likely give you an exception, as it will access arguments that don’t exist and characters before a string constant.
@@ -472,7 +472,7 @@ a string; the first character is how many!s are printed
('A'=1, 'B'=2, etc), the second character is how many ' 's, the
third is how many !s, etc. ASCII characters less than 'A'
print no characters but still change the polarity, so any map
-of ' 's and '!'s is possible. This is done in the putchar()
+of ' 's and '!'s is possible. This is done in the putchar(3)
argument as 33^l&1, where l is the character position+4; if
l is odd, ' ' is printed, if l is even, '!' is printed.
The position of latitude & longitude is changed into a single @@ -486,7 +486,7 @@ five degrees of change moves the location one character. The signs are opposite because latitude is decreasing and longitude is increasing as you go from upper left to lower right. The offset is where the origin (latitude=0, longitude=0) is found.
-The position counting down to zero changes the putchar() from
+
The position counting down to zero changes the putchar(3) from
printing ('!' or ' ') to printing ('"' or '#').
The "H E L L O, W O R L D!" string inside the data string
prints the line of blanks past Tierra del
diff --git a/bugs.html b/bugs.html
index 9f8a57222..582f9e077 100644
--- a/bugs.html
+++ b/bugs.html
@@ -1233,7 +1233,7 @@ for modern systems as it doesn’t work for gcc either, even before any changes.
This might be a misunderstanding or it might be that having 80 columns (resized)
does not count (though the output before the fix of the 80 column requirement
showed was correct when at 80-columns so it seems like this could be a bug if
-not a misunderstanding).