Finished the conversion to pure C.
[selector.git] / selector.c
index 82d7116..b757357 100644 (file)
@@ -25,8 +25,7 @@
 // To use it as a super-history-search for bash:
 // selector -q -b -i -d -v -w -l ${HISTSIZE} <(history)
 
-// #include <fstream>
-// #include <iostream>
+#define _GNU_SOURCE
 
 #include <stdio.h>
 #include <stdlib.h>
@@ -794,7 +793,7 @@ int main(int argc, char **argv) {
   }
 
   if(show_help || error) {
-    /* fprintf(stderr, "Selector version %s-R%s\n", VERSION, REVISION_NUMBER); */
+    fprintf(stderr, "Selector version %s-R%s\n", VERSION, REVISION_NUMBER);
     fprintf(stderr, "Written by Francois Fleuret <francois@fleuret.org>.\n");
     fprintf(stderr, "Usage: %s [options] [<filename1> [<filename2> ...]]\n", argv[0]);
     fprintf(stderr, "\n");