scandsp/src/optparser.cxx
// ==========================================================================
// Parse the given file, gathering the configuration directives into cfgs.
// If any irregularity is detected, returns nonzero:
//       1 -> warning
//       2 -> error   (Don't use the cfgs.)
// and sets message with a diagnostic that the caller should pass along.
//
Parse the given file, gathering the configuration directives into cfgs.
If any irregularity is detected, returns nonzero:
1 -> warning
2 -> error   (Don't use the cfgs.)
and sets message with a diagnostic that the caller should pass along.
Parse the given file gathering the configuration directives into cfgs . If any irregularity is detected returns nonzero : 1 - > warning 2 - > error ( Don ' t use the cfgs . ) and sets message with a diagnostic that the caller should pass along .
int optparse(const char *fn, vector<string> &cfgs, string &message)
{
    OptParser op;
    return op.parse(fn, cfgs, message);
}
int optparse ( const char * fn , vector < string > & cfgs , string & message ) { OptParser op ; return op . parse ( fn , cfgs , message ) ; }
Parse the given file, gathering the configuration directives into cfgs.
Parse the given file gathering the configuration directives into cfgs .