From 14610ab707e720395b3ce5546ecbdffe69d3d69a Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Sun, 17 Dec 2023 11:24:03 -0800 Subject: [PATCH] Remove 1987/hines alt code - had no purpose It just was a different #include that used to work. The functionality is the same. --- 1987/hines/README.md | 12 ------------ 1987/hines/hines.alt.c | 19 ------------------- 2 files changed, 31 deletions(-) delete mode 100644 1987/hines/hines.alt.c diff --git a/1987/hines/README.md b/1987/hines/README.md index e5e70038d..c841b0be7 100644 --- a/1987/hines/README.md +++ b/1987/hines/README.md @@ -19,18 +19,6 @@ make all ``` -## Alternate code: - -An alternate version of this entry is in [hines.alt.c](hines.alt.c). With older -compilers you can try the alt version: - -```sh -make alt -``` - -Use `hines.alt` as you would `hines` above. - - ## Judges' remarks: This program was designed to maximize the bother function for diff --git a/1987/hines/hines.alt.c b/1987/hines/hines.alt.c deleted file mode 100644 index 9b6beea39..000000000 --- a/1987/hines/hines.alt.c +++ /dev/null @@ -1,19 +0,0 @@ -#include -#include -main(togo,toog) -int togo; -char *toog[]; -{char *ogto, tgoo[80];FILE *ogot; int oogt=0, ootg, otog=79, -ottg=1;if ( togo== ottg) goto gogo; goto goog; ggot: -if ( fgets( tgoo, otog, ogot)) goto gtgo; goto gott; -gtot: exit(); ogtg: ++oogt; goto ogoo; togg: if ( ootg > 0) -goto oggt; goto ggot; ogog: if ( !ogot) goto gogo; -goto ggto; gtto: printf( "%d goto \'s\n", oogt); goto -gtot; oggt: if ( !memcmp( ogto, "goto", 4)) goto otgg; -goto gooo; gogo: exit( ottg); tggo: ootg= strlen(tgoo); -goto tgog; oogo: --ootg; goto togg; gooo: ++ogto; goto -oogo; gott: fclose( ogot); goto gtto; otgg: ogto= ogto +3; -goto ogtg; tgog: ootg-=4;goto togg; gtgo: ogto= tgoo; -goto tggo; ogoo: ootg-=3;goto gooo; goog: ogot= fopen( -toog[ ottg], "r"); goto ogog; ggto: ogto= tgoo; goto -ggot;}