From 09a38e4a6115efb41feab9638600e59435ed0ad4 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Thu, 26 Oct 2023 08:50:26 -0700 Subject: [PATCH] Fix alt code headers in 1989/ovdluhe/README.md --- 1989/ovdluhe/Makefile | 2 +- 1989/ovdluhe/README.md | 16 ++++++++++++++-- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/1989/ovdluhe/Makefile b/1989/ovdluhe/Makefile index 30326a98e..1534720b8 100644 --- a/1989/ovdluhe/Makefile +++ b/1989/ovdluhe/Makefile @@ -41,7 +41,7 @@ include ../../var.mk CSILENCE= -Wno-char-subscripts -Wno-constant-conversion -Wno-empty-body \ -Wno-implicit-function-declaration -Wno-parentheses -Wno-unsequenced \ -Wno-unused-variable -Wno-strict-prototypes \ - -Wno-extra-semi -Wno-non-literal-null-conversion + -Wno-extra-semi -Wno-non-literal-null-conversion -Wno-implicit-int # Common C compiler warning flags # diff --git a/1989/ovdluhe/README.md b/1989/ovdluhe/README.md index db6a83b04..d4bca6376 100644 --- a/1989/ovdluhe/README.md +++ b/1989/ovdluhe/README.md @@ -38,13 +38,25 @@ by chance or is killed. ## Alternate code: The author suggested that one varies the definition of `P` from 2 through 10. As -it's a `#define` it's easy to set up. To use try: +it's a `#define` it's easy to set up. + + +### Alternate build: + ```sh make CFLAGS="-DP=9" clobber alt ``` -Use `ovdluhe.alt` as you would `ovdluhe`. +You do not have to define `P` but if you do you can replace the value with +whatever you wish, as long as it's an int. + + +### Alternate use: + +```sh +./ovdluhe.alt +``` ## Judges' remarks: