mirror of
https://github.com/cathugger/mkp224o.git
synced 2025-04-28 09:38:06 +00:00
more tweaks
This commit is contained in:
parent
d9e4e12bdd
commit
bc19497f88
1 changed files with 11 additions and 10 deletions
21
main.c
21
main.c
|
@ -481,7 +481,7 @@ VEC_STRUCT(threadvec, pthread_t);
|
||||||
|
|
||||||
int main(int argc,char **argv)
|
int main(int argc,char **argv)
|
||||||
{
|
{
|
||||||
char *outfile = 0;
|
const char *outfile = 0;
|
||||||
const char *arg;
|
const char *arg;
|
||||||
int ignoreargs = 0;
|
int ignoreargs = 0;
|
||||||
int dirnameflag = 0;
|
int dirnameflag = 0;
|
||||||
|
@ -622,7 +622,16 @@ int main(int argc,char **argv)
|
||||||
if (numargit)
|
if (numargit)
|
||||||
goto nextarg;
|
goto nextarg;
|
||||||
}
|
}
|
||||||
else filters_add(arg);
|
else
|
||||||
|
filters_add(arg);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (outfile) {
|
||||||
|
fout = fopen(outfile,"w");
|
||||||
|
if (!fout) {
|
||||||
|
perror("failed to open output file");
|
||||||
|
exit(Q_FAILOPENOUTPUT);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
filters_prepare();
|
filters_prepare();
|
||||||
|
@ -641,14 +650,6 @@ int main(int argc,char **argv)
|
||||||
fprintf(stderr,"WARNING: -N switch will produce bogus results because we can't know filter width. reconfigure with --enable-besort and recompile.\n");
|
fprintf(stderr,"WARNING: -N switch will produce bogus results because we can't know filter width. reconfigure with --enable-besort and recompile.\n");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (outfile) {
|
|
||||||
fout = fopen(outfile,"w");
|
|
||||||
if (!fout) {
|
|
||||||
perror("failed to open output file");
|
|
||||||
exit(Q_FAILOPENOUTPUT);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (workdir)
|
if (workdir)
|
||||||
createdir(workdir,1);
|
createdir(workdir,1);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue