From a979195d7bee8a1353f8372f3896b7dfa9568e50 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Mon, 13 Nov 2023 08:40:56 -0800 Subject: [PATCH] Format/typo check 1998/bas1 The Makefile now has -Wno-implicit-int. Running 'make all' will copy 'bas1' to 'bemazing' (what the author calls the program). The README.md file has been format/typo checked. --- 1998/bas1/.gitignore | 1 + 1998/bas1/Makefile | 8 ++++++-- 1998/bas1/README.md | 18 ++++++++++-------- 3 files changed, 17 insertions(+), 10 deletions(-) diff --git a/1998/bas1/.gitignore b/1998/bas1/.gitignore index f0c8d3ee5..ce02bca67 100644 --- a/1998/bas1/.gitignore +++ b/1998/bas1/.gitignore @@ -1,3 +1,4 @@ bas1 bas1.orig +bemazing prog.orig diff --git a/1998/bas1/Makefile b/1998/bas1/Makefile index 3a72d116f..d1765ed1e 100644 --- a/1998/bas1/Makefile +++ b/1998/bas1/Makefile @@ -40,7 +40,7 @@ include ../../var.mk # CSILENCE= -Wno-bitwise-conditional-parentheses -Wno-bitwise-op-parentheses \ -Wno-empty-body -Wno-invalid-source-encoding -Wno-main -Wno-parentheses \ - -Wno-shift-op-parentheses -Wno-deprecated-non-prototype + -Wno-shift-op-parentheses -Wno-deprecated-non-prototype -Wno-implicit-int # Common C compiler warning flags # @@ -114,7 +114,7 @@ PROG= ${ENTRY} # OBJ= ${PROG}.o DATA= -TARGET= ${PROG} +TARGET= ${PROG} bemazing # ALT_OBJ= ALT_TARGET= @@ -135,6 +135,10 @@ all: data ${TARGET} ${PROG}: ${PROG}.c ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} +bemazing: ${PROG} + ${RM} -f $@ + ${CP} $< $@ + # alternative executable # alt: data ${ALT_TARGET} diff --git a/1998/bas1/README.md b/1998/bas1/README.md index afd9ae665..a5593639c 100644 --- a/1998/bas1/README.md +++ b/1998/bas1/README.md @@ -10,19 +10,19 @@ make all If `lpr` on your system can print PostScript: ```sh -./bas1 | gunzip | lpr +./bemazing | gunzip | lpr ``` else, while in X Window System, ```sh -./bas1 | gunzip | gv - +./bemazing | gunzip | gv - ``` or: ```sh -./bas1 | gunzip | gs -sDEVICE=pgmraw -sOutputFile='|xv -' - +./bemazing | gunzip | gs -sDEVICE=pgmraw -sOutputFile='|xv -' - ``` @@ -47,19 +47,21 @@ creates a 3D maze of beams. Try to go from the entrance (the unfinished beam in one corner) to the exit (the unfinished beam in the opposite corner) or vice versa. -For maximum portability, `Bemazing` is not tied to any window system, -but creates postscript. The picture it makes will fit on either A4 or -letter size paper. +For maximum portability, `Bemazing` is not tied to any window system, but +creates postscript output. The picture it makes will fit on either A4 or letter +size paper. In addition, because postscript is rather verbose, `Bemazing` creates -the postscript in gzip format, in order to save precious bits on your -hard disk for the latest version of GNU Emacs (after all, you wouldn't +the postscript in `gzip(1)` format, in order to save precious bits on your +hard disk for the latest version of [GNU +Emacs](https://www.gnu.org/software/emacs/) (after all, you wouldn't want to use an editor without a psychoanalyze-pinhead function, now would you). Again for maximum portability, `Bemazing` will take special care that the binary output will not contain any newline or return characters that may get weird treatment on systems that do not use the One True Line Separator. + ### NOTES Be sure to view the source with something that can display characters