fix Makefile and README.md for 2019/ciura
This commit is contained in:
1 parent
6966681c1e
commit
de558ba195
2 files changed
+27
-19
No files matched your search
+2
-2
@@ -101,8 +101,8 @@ CINCLUDE=
|
|||||||
#CINCLUDE= -include stdlib.h
|
#CINCLUDE= -include stdlib.h
|
||||||
#CINCLUDE= -include stdio.h
|
#CINCLUDE= -include stdio.h
|
||||||
#CINCLUDE= -include stdlib.h -include stdio.h
|
#CINCLUDE= -include stdlib.h -include stdio.h
|
||||||
#CINCLUDE= -I ${X11_INCDIR}
|
#CINCLUDE= -I ${X11_INCDIR} -I ${X11_INCDIR}/X11
|
||||||
#CINCLUDE= -I ${HOMEBREW_PREFIX}/include/SDL2
|
#CINCLUDE= `${SDL2_CONFIG} --cflags`
|
||||||
|
|
||||||
# Optimization
|
# Optimization
|
||||||
#
|
#
|
||||||
|
|||||||
+25
-17
@@ -1,29 +1,35 @@
|
|||||||
# Most alphabetic
|
# Most alphabetic
|
||||||
|
|
||||||
Marcin Ciura
|
Marcin Ciura
|
||||||
Twitter: @mciura
|
Twitter: @mciura
|
||||||
|
|
||||||
## To build:
|
# To build:
|
||||||
|
|
||||||
make all
|
```sh
|
||||||
|
make
|
||||||
|
```
|
||||||
|
|
||||||
### To run
|
### To run:
|
||||||
|
|
||||||
./getwords.sh en | grep .. | ./prog string
|
```sh
|
||||||
|
./getwords.sh en | grep .. | ./prog string
|
||||||
|
```
|
||||||
|
|
||||||
### Try:
|
### Try:
|
||||||
|
|
||||||
./getwords.sh en | grep .. | ./prog aeiouvwxyz
|
```sh
|
||||||
|
./getwords.sh en | grep .. | ./prog aeiouvwxyz
|
||||||
|
|
||||||
./getwords.sh en | grep .. | ./prog aeiouhjklmnvwxyz
|
./getwords.sh en | grep .. | ./prog aeiouhjklmnvwxyz
|
||||||
|
|
||||||
./getwords.sh en | grep .. | ./prog mrjocktvquizphdbagsfewlynx
|
./getwords.sh en | grep .. | ./prog mrjocktvquizphdbagsfewlynx
|
||||||
|
|
||||||
./en.sh
|
./en.sh
|
||||||
|
|
||||||
./fr.sh
|
./fr.sh
|
||||||
|
|
||||||
./ru.sh
|
./ru.sh
|
||||||
|
```
|
||||||
|
|
||||||
### Alternate code
|
### Alternate code
|
||||||
|
|
||||||
@@ -32,11 +38,13 @@ See the Author's comments for more information.
|
|||||||
|
|
||||||
To compile this alternate version:
|
To compile this alternate version:
|
||||||
|
|
||||||
make alt
|
```sh
|
||||||
|
make alt
|
||||||
|
```
|
||||||
|
|
||||||
Use `prog.alt` as you would `prog` above.
|
Use `prog.alt` as you would `prog` above.
|
||||||
|
|
||||||
### Selected Judges Remarks:
|
## Judges' comments:
|
||||||
|
|
||||||
A few letters, one at a time, with no repeats.
|
A few letters, one at a time, with no repeats.
|
||||||
How many different ways can this be done?
|
How many different ways can this be done?
|
||||||
@@ -49,6 +57,7 @@ Speaking of jumping, can you rewrite the code to
|
|||||||
remove all of the goto jumps in this code?
|
remove all of the goto jumps in this code?
|
||||||
|
|
||||||
## Author's comments:
|
## Author's comments:
|
||||||
|
|
||||||
### What is this? <a name="wit"></a>
|
### What is this? <a name="wit"></a>
|
||||||
|
|
||||||
This entry reads from standard input a list of words in any language
|
This entry reads from standard input a list of words in any language
|
||||||
@@ -167,11 +176,10 @@ With the supplied `Makefile`, both `gcc` and `clang` compile
|
|||||||
compilation with `gcc -std=c90`, add `-Wno-format` to
|
compilation with `gcc -std=c90`, add `-Wno-format` to
|
||||||
`CSILENCE` in `Makefile`.
|
`CSILENCE` in `Makefile`.
|
||||||
|
|
||||||
--------------------------------------------------------------------------------
|
## Copyright:
|
||||||
<!--
|
|
||||||
(c) Copyright 1984-2019, [Leo Broukhis, Simon Cooper, Landon Curt Noll][judges] - All rights reserved
|
(c) Copyright 1984-2019, [Leo Broukhis, Simon Cooper, Landon Curt Noll][judges] - All rights reserved
|
||||||
This work is licensed under a [Creative Commons Attribution-ShareAlike 3.0 Unported License][cc].
|
This work is licensed under a [Creative Commons Attribution-ShareAlike 3.0 Unported License][cc].
|
||||||
|
|
||||||
[judges]: http://www.ioccc.org/judges.html
|
[judges]: http://www.ioccc.org/judges.html
|
||||||
[cc]: http://creativecommons.org/licenses/by-sa/3.0/
|
[cc]: http://creativecommons.org/licenses/by-sa/3.0/
|
||||||
-->
|
|
||||||
Reference in new issue
Block a user