From 2786a26d3c2d5bac38668d54f2abe662ec37c053 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Sat, 18 Mar 2023 06:43:24 -0700 Subject: [PATCH] Fix 1993/jonth With a mis-feature (I guess) of the C pre-processor that no longer works the entry no longer compiled. It needs #define to define (imagine that! :-) macros. --- 1993/jonth/README.md | 6 ++++-- 1993/jonth/jonth.c | 36 ++++++++++++++++++------------------ 2 files changed, 22 insertions(+), 20 deletions(-) diff --git a/1993/jonth/README.md b/1993/jonth/README.md index 3cf7a4015..35ba7a668 100644 --- a/1993/jonth/README.md +++ b/1993/jonth/README.md @@ -10,7 +10,9 @@ make all -NOTE: this entry might not compile with modern systems. + +[Cody Boone Ferguson](/winners.html#Cody_Boone_Ferguson) fixed this so that it +will work with modern systems. Thank you Cody for your assistance! ### To run @@ -34,7 +36,7 @@ This program is also an example of data abstraction. The X array is after initialization hidden by the well defined macros t, u and F. This program is highly portable as it runs on a "Notebook" size SPARC. -This program will not work on machines with sizeof(int)!=sizeof(void *). +This program will not work on machines with `sizeof(int)!=sizeof(void *)`. Copyright (c) 1993, Landon Curt Noll & Larry Bassel. All Rights Reserved. Permission for personal, educational or non-profit use is diff --git a/1993/jonth/jonth.c b/1993/jonth/jonth.c index dc69e10ff..d24933566 100644 --- a/1993/jonth/jonth.c +++ b/1993/jonth/jonth.c @@ -1,22 +1,22 @@ #include - G long i,j - K case - R return 0 - S( x,y) for(x=0; x