X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;f=folding.cc;h=92b623061c97e6151515c536616b930b2d7c6ad3;hb=3742a88173bc958488370aefb7035426d3650e1d;hp=c5929555450a7430d874ef73700bfb683e83dbb5;hpb=ccc2785ee823c934edcededc5c6448e4f9488f8b;p=folded-ctf.git diff --git a/folding.cc b/folding.cc index c592955..92b6230 100644 --- a/folding.cc +++ b/folding.cc @@ -12,7 +12,9 @@ // You should have received a copy of the GNU General Public License // // along with this program. If not, see . // // // -// Written by Francois Fleuret, (C) IDIAP // +// Written by Francois Fleuret // +// (C) Idiap Research Institute // +// // // Contact for comments & bug reports // /////////////////////////////////////////////////////////////////////////// @@ -48,8 +50,6 @@ void check(bool condition, const char *message) { ////////////////////////////////////////////////////////////////////// int main(int argc, char **argv) { - char *new_argv[argc]; - int new_argc = 0; #ifdef DEBUG cout << endl; @@ -59,7 +59,11 @@ int main(int argc, char **argv) { cout << endl; #endif + char *new_argv[argc]; + int new_argc = 0; + cout << "-- ARGUMENTS ---------------------------------------------------------" << endl; + for(int i = 0; i < argc; i++) cout << (i > 0 ? " " : "") << argv[i] << (i < argc - 1 ? " \\" : "") << endl; @@ -178,8 +182,6 @@ int main(int argc, char **argv) { } } - ////////////////////////////////////////////////////////////////////// - else if(strcmp(new_argv[c], "sequence-test-detector") == 0) { cout << "-- SEQUENCE TEST DETECTOR --------------------------------------------" << endl; @@ -216,8 +218,6 @@ int main(int argc, char **argv) { detector->write(&out); } - ////////////////////////////////////////////////////////////////////// - else if(strcmp(new_argv[c], "read-detector") == 0) { cout << "-- READ DETECTOR -----------------------------------------------------" << endl;