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.
This commit is contained in:
Cody Boone Ferguson committed 2023-07-07 07:00:09 -07:00
1 parent ed04ae0a9e
commit f27438b248
2 files changed
+5 -3

No files matched your search

+1 -1
View File
@@ -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)));/*}
;
}
+4 -2
View File
@@ -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.