projects
/
selector.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c66ed21
)
Automatic commit
author
Francois Fleuret
<francois@fleuret.org>
Thu, 12 Mar 2009 15:53:52 +0000
(16:53 +0100)
committer
Francois Fleuret
<francois@fleuret.org>
Thu, 12 Mar 2009 15:53:52 +0000
(16:53 +0100)
selector.cc
patch
|
blob
|
history
diff --git
a/selector.cc
b/selector.cc
index
0865015
..
2664dd7
100644
(file)
--- a/
selector.cc
+++ b/
selector.cc
@@
-41,6
+41,8
@@
using namespace std;
using namespace std;
+#define VERSION "1.0"
+
// Yeah, global variables!
int buffer_size = 1024;
// Yeah, global variables!
int buffer_size = 1024;
@@
-331,7
+333,11
@@
int main(int argc, char **argv) {
}
else {
}
else {
- cerr << argv[0]
+ cerr << "Selector version " << VERSION
+ << endl
+ << "Written by Francois Fleuret <francois@fleuret.org>"
+ << endl
+ << argv[0]
<< " [-h]"
<< " [-b]"
<< " [-v]"
<< " [-h]"
<< " [-b]"
<< " [-v]"
@@
-356,7
+362,7
@@
int main(int argc, char **argv) {
ifstream file(input_filename);
if(file.fail()) {
ifstream file(input_filename);
if(file.fail()) {
- cerr << "Can not open
\"" << input_filename << "\""
<< endl;
+ cerr << "Can not open
" << input_filename
<< endl;
return 1;
}
return 1;
}