From f27438b24811eea6727d79764fe71e8155efc800 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Fri, 7 Jul 2023 07:00:09 -0700 Subject: [PATCH] Further fix 1984/decot for clang (for linux) Although my change of not requiring -traditional-cpp worked in macOS it turns out one change had to be made for clang in linux which has now been done. --- 1984/decot/decot.c | 2 +- thanks-for-fixes.md | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/1984/decot/decot.c b/1984/decot/decot.c index 10101a4e8..2c4471f88 100644 --- a/1984/decot/decot.c +++ b/1984/decot/decot.c @@ -20,7 +20,7 @@ _O: while (!(k['a'] <<= - dup)) { /*/*\*/ while(b = 3, i); { k['a'] = b,i; _0:if(b&&(int)k+ -sin(signal) / * ((main) (((struct tag *)b)-> xO)));/*} +sin(signal) / * ((main) (*((struct tag *)b)-> xO)));/*} ; } diff --git a/thanks-for-fixes.md b/thanks-for-fixes.md index 52ab8e447..7b7e32c6e 100644 --- a/thanks-for-fixes.md +++ b/thanks-for-fixes.md @@ -64,8 +64,10 @@ Scovell](https://web.archive.org/web/20070120220721/https://thomasscovell.com/ta Cody fixed this to not require `-traditional-cpp` which not all compilers support (clang does not support it for example). Clang is also more strict about the args' types in `main()` and this was also a problem that Cody fixed, making -it work with both clang and gcc. For the original code with the gcc fix -described below, see the alternate code section in the README.md file. +it work with both clang and gcc - in macOS. It was then noticed that with clang +in linux it did not work so this had to be further fixed which Cody also did. +For the original code with the gcc fix (noted below), see the alternate code +section in the README.md file. Originally Yusuke supplied a patch so that this entry would compile with gcc - but not clang - or at least some versions.