39 #include <sys/unistd.h>
41 #include <sys/resource.h>
43 #define SetFOpt(V) V = strtod(OptArg, &EndPtr);\
44 if ( ! EndPtr || *EndPtr != '\00' ) break;\
46 #define SetIOpt(V) V = strtol(OptArg, &EndPtr, 10);\
47 if ( ! EndPtr || *EndPtr != '\00' ) break;\
51 int main(
int Argc,
char *Argv[])
67 getrlimit(RLIMIT_STACK, &RL);
69 RL.rlim_cur =
Max(RL.rlim_cur, 20 * 1024 * 1024);
71 if ( RL.rlim_max > 0 )
73 RL.rlim_cur =
Min(RL.rlim_max, RL.rlim_cur);
76 setrlimit(RLIMIT_STACK, &RL);
81 if ( Argc > 2 && ! strcmp(Argv[Argc-2],
"-o") )
83 Of = fopen(Argv[Argc-1],
"w");
98 while ( (o =
ProcessOption(Argc, Argv,
"f+bpv+t+sm+c+S+I+ru+egX+wh")) )
102 fprintf(
Of, T_OptHeader);
114 case 'b':
BOOST =
true;
115 fprintf(
Of, T_OptBoost);
120 fprintf(
Of, T_OptProbThresh);
135 fprintf(
Of, T_OptSubsets);
143 fprintf(
Of, T_OptCF,
CF);
147 case 'r':
RULES =
true;
148 fprintf(
Of, T_OptRules);
166 fprintf(
Of, T_OptNoCosts);
170 fprintf(
Of, T_OptWinnow);
174 fprintf(
Of, T_OptNoGlobal);
188 fprintf(
Of, T_UnregnizedOpt,
190 ( ! OptArg || OptArg == Option+2 ?
"" : OptArg ));
191 fprintf(
Of, T_SummaryOpts);
193 fprintf(
Of, T_ListOpts);
200 fprintf(
Of, T_UBWarn);
240 fprintf(
Of, T_CWtAtt);
256 fprintf(
Of,
"%s", (
AttExIn == -1 ? T_AttributesOut : T_AttributesIn ));