4 Commits
Author SHA1 Message Date
Cody Boone Ferguson 6ac32f659e Remove 80 column limitation in 1992/westley
Because most people have much wider terminals nowadays and since not all
can be resized I have changed the code a bit so that every 80 iterations
(in the final loop) a newline is printed. This way as long as the
terminal is at least 80 columns the program will show the map correctly.
The alt version has been updated for this as well.

The Makefile now does not require one to run 'make whereami' to get the
link: one simply needs to run 'make' or 'make all' or 'make everything'.
For the alt program (the author provided one that I put into alt code
that is strictly for the US) running make alt or make everything will do
the same only it's whereami.alt.

The bugs.md has been updated noting that the terminal must be AT LEAST
80 columns. The README.md file has not been updated which means
referring to the bugs.md has not been done yet either. The Makefile note
about it requiring a terminal that wraps at 80 columns has been changed
to note that it needs a terminal that is at least 80 columns. The note
has been moved to after making the link (actually not a symlink but
perhaps it should be).
2023-11-07 06:13:46 -08:00
Cody Boone Ferguson e2a8f813dc Fix both original and alt code for 1992/westley
For both check args.

For alt move main()'s code to new function as some versions of clang do
not allow four args. Instead main() has two args now, the traditional
argc and argv, and the other two are passed 0.
2023-10-30 05:55:07 -07:00
Cody Boone Ferguson dfabb616f2 Change INABIAF status in 1992/westley
It was an error to fix the segfault without enough args in 1992/westley
as it does not in fact affect the usability of the program and that's
the only time a segfault should be fixed except by anyone but the author
themselves.

This commit required also changing the alt code (that I added based on
the author's remarks) as well as the README.md, bugs.md and
thanks-for-fixes.md.
2023-06-10 07:24:02 -07:00
Cody Boone Ferguson b6431931e1 Add & fix author provided alt code for 1992/westley
I fixed the segfault that was in the main entry and I made it work for
clang as well.

Also fixed the README.md file (formatting etc.).
2023-03-29 12:10:12 -07:00