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.
This commit is contained in:
Cody Boone Ferguson committed 2023-11-13 08:42:21 -08:00
1 parent d742eb23e7
commit a979195d7b
3 files changed
+17 -10

No files matched your search

+1
View File
@@ -1,3 +1,4 @@
bas1 bas1
bas1.orig bas1.orig
bemazing
prog.orig prog.orig
+6 -2
View File
@@ -40,7 +40,7 @@ include ../../var.mk
# #
CSILENCE= -Wno-bitwise-conditional-parentheses -Wno-bitwise-op-parentheses \ CSILENCE= -Wno-bitwise-conditional-parentheses -Wno-bitwise-op-parentheses \
-Wno-empty-body -Wno-invalid-source-encoding -Wno-main -Wno-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 # Common C compiler warning flags
# #
@@ -114,7 +114,7 @@ PROG= ${ENTRY}
# #
OBJ= ${PROG}.o OBJ= ${PROG}.o
DATA= DATA=
TARGET= ${PROG} TARGET= ${PROG} bemazing
# #
ALT_OBJ= ALT_OBJ=
ALT_TARGET= ALT_TARGET=
@@ -135,6 +135,10 @@ all: data ${TARGET}
${PROG}: ${PROG}.c ${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
bemazing: ${PROG}
${RM} -f $@
${CP} $< $@
# alternative executable # alternative executable
# #
alt: data ${ALT_TARGET} alt: data ${ALT_TARGET}
+10 -8
View File
@@ -10,19 +10,19 @@ make all
If `lpr` on your system can print PostScript: If `lpr` on your system can print PostScript:
```sh ```sh
./bas1 | gunzip | lpr ./bemazing | gunzip | lpr
``` ```
else, while in X Window System, else, while in X Window System,
```sh ```sh
./bas1 | gunzip | gv - ./bemazing | gunzip | gv -
``` ```
or: or:
```sh ```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 unfinished beam in one corner) to the exit (the unfinished beam in the
opposite corner) or vice versa. opposite corner) or vice versa.
For maximum portability, `Bemazing` is not tied to any window system, For maximum portability, `Bemazing` is not tied to any window system, but
but creates postscript. The picture it makes will fit on either A4 or creates postscript output. The picture it makes will fit on either A4 or letter
letter size paper. size paper.
In addition, because postscript is rather verbose, `Bemazing` creates In addition, because postscript is rather verbose, `Bemazing` creates
the postscript in gzip format, in order to save precious bits on your the postscript in `gzip(1)` format, in order to save precious bits on your
hard disk for the latest version of GNU Emacs (after all, you wouldn't 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 want to use an editor without a psychoanalyze-pinhead function, now
would you). Again for maximum portability, `Bemazing` will take special would you). Again for maximum portability, `Bemazing` will take special
care that the binary output will not contain any newline or return 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 characters that may get weird treatment on systems that do not use the
One True Line Separator. One True Line Separator.
### NOTES ### NOTES
Be sure to view the source with something that can display characters Be sure to view the source with something that can display characters