mirror of
https://github.com/FraMecca/Buridans_donkey.git
synced 2024-03-20 11:20:15 +01:00
release 0.0.1
This commit is contained in:
parent
dc13e4a770
commit
aa8d506f94
3 changed files with 35 additions and 6 deletions
26
.gitignore
vendored
Normal file
26
.gitignore
vendored
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
asino
|
||||||
|
.gdb_history
|
||||||
|
# Compiled Object files
|
||||||
|
*.o
|
||||||
|
*.obj
|
||||||
|
|
||||||
|
# Compiled Dynamic libraries
|
||||||
|
*.so
|
||||||
|
*.dylib
|
||||||
|
*.dll
|
||||||
|
|
||||||
|
# Compiled Static libraries
|
||||||
|
*.a
|
||||||
|
*.lib
|
||||||
|
|
||||||
|
# Executables
|
||||||
|
*.exe
|
||||||
|
|
||||||
|
# DUB
|
||||||
|
.dub
|
||||||
|
docs.json
|
||||||
|
__dummy.html
|
||||||
|
docs/
|
||||||
|
|
||||||
|
# Code coverage
|
||||||
|
*.lst
|
5
Makefile
Normal file
5
Makefile
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
asino:
|
||||||
|
ldc2 -O2 asino.d
|
||||||
|
|
||||||
|
clean: asino.o
|
||||||
|
rm asino.o
|
10
asino.d
10
asino.d
|
@ -21,12 +21,11 @@ extern(C)
|
||||||
int poll(pollfd *fds, int nfds, int timeout);
|
int poll(pollfd *fds, int nfds, int timeout);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
enum VERSION = "0.0.1";
|
||||||
string versionSt = "...a man, being just as hungry as thirsty,
|
string versionSt = "...a man, being just as hungry as thirsty,
|
||||||
and placed in between food and drink,
|
and placed in between food and drink,
|
||||||
must necessarily remain where he is and starve to death
|
must necessarily remain where he is and starve to death
|
||||||
|
Aristole\n\n"~"asino "~VERSION;
|
||||||
Aristole";
|
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
main (string[] args)
|
main (string[] args)
|
||||||
|
@ -51,9 +50,8 @@ main (string[] args)
|
||||||
}
|
}
|
||||||
|
|
||||||
string[] lines = void;
|
string[] lines = void;
|
||||||
writeln(isaTTY());
|
if(isaTTY()){
|
||||||
if(isaTTY()){
|
// read stdin, ignore cli args
|
||||||
// read stdin, ignore cli args
|
|
||||||
auto p = stdin.byLineCopy(No.keepTerminator).array();
|
auto p = stdin.byLineCopy(No.keepTerminator).array();
|
||||||
writeln(p[2]);
|
writeln(p[2]);
|
||||||
lines = p;
|
lines = p;
|
||||||
|
|
Loading…
Reference in a new issue