Fix how 1993/lmfjyh alt code is built
In the case that the original entry fails to compile (if you don't have gcc < 2.3.3 this will happen) the alt code will automatically be built. One can still manually compile the alt code, of course, but this way one can at least use the entry. Note that in the case the alt code is automatically compiled it is compiled to the lmfjyh just like what I did with 1985/sicherman. This was discussed after I did the 1985/sicherman (which will compile anyway after my fixes unless a compiler objects to main() having only one arg).
This commit is contained in:
1 parent
d7e1572878
commit
59eb89e402
3 files changed
+18
-5
No files matched your search
@@ -136,8 +136,9 @@ ${PROG}: ${PROG}.c
|
||||
${CP} lmfjyh.c \"\;main\(\)\{puts\(\"Hello\ World!\"\)\;\}char\*C=\".c
|
||||
${CC} ${CFLAGS} \
|
||||
\"\;main\(\)\{puts\(\"Hello\ World!\"\)\;\}char\*C=\".c -o $@ ${LDFLAGS} || \
|
||||
${RM} -f \"\;main\(\)\{puts\(\"Hello\ World!\"\)\;\}char\*C=\".c
|
||||
${RM} -f \"\;main\(\)\{puts\(\"Hello\ World!\"\)\;\}char\*C=\".c
|
||||
${RM} -f \"\;main\(\)\{puts\(\"Hello\ World!\"\)\;\}char\*C=\".c
|
||||
${CC} ${CFLAGS} ${PROG}.alt.c -o $@ ${LDFLAGS}
|
||||
|
||||
# alternative executable
|
||||
#
|
||||
|
||||
+10
-1
@@ -22,6 +22,10 @@ alternate version for [those of
|
||||
us](https://www.collinsdictionary.com/dictionary/english/everyone) with gcc >=
|
||||
2.3.3. See [Alternate code](#alternate-code) section below for more details.
|
||||
|
||||
However, there is an another version that will be compiled in case this fails.
|
||||
This should happen automatically. See [Alternate code](#alternate-code) below
|
||||
for more details on it.
|
||||
|
||||
|
||||
### Bugs and (Mis)features:
|
||||
|
||||
@@ -47,10 +51,14 @@ If you have gcc < 2.3.3 (i.e. the entry can compile):
|
||||
|
||||
This version does what the code did but in a way that will work with modern
|
||||
compilers. We'd like to say there's something special about it but there isn't.
|
||||
Nonetheless it will be compiled in case the original entry fails to compile
|
||||
(which will happen unless you have gcc < 2.3.3.
|
||||
|
||||
|
||||
### Alternate build:
|
||||
|
||||
Should you wish to build this version manually:
|
||||
|
||||
```sh
|
||||
make alt
|
||||
```
|
||||
@@ -59,7 +67,8 @@ make alt
|
||||
### Alternate use:
|
||||
|
||||
Use `lmfjyh.alt` as you would `lmfjyh` above. Note that other code could also be
|
||||
done with this bug; see the author's remarks for more details.
|
||||
done with the bug that the entry abuses but that would have to be manually
|
||||
programmed for this version; see the author's remarks for more details.
|
||||
|
||||
|
||||
## Judges' remarks:
|
||||
|
||||
Reference in new issue
Block a user