comparison audioDB.cpp @ 9:378c2483c926

Apparently, gengetopt only allows single dependencies between options. Make -I/--INSERT (single insert) depend on -f/--features, and -f/--features depend on -d/--database. Slightly better error message for one failure mode
author mas01cr
date Wed, 25 Jul 2007 16:06:21 +0000
parents 12be3560ff0f
children 3ab41608a474
comparison
equal deleted inserted replaced
8:12be3560ff0f 9:378c2483c926
462 if ((dbfid = open (dbName, O_RDWR)) < 0) 462 if ((dbfid = open (dbName, O_RDWR)) < 0)
463 error("Can't open database file:", dbName); 463 error("Can't open database file:", dbName);
464 464
465 // open the input file 465 // open the input file
466 if (inFile && (infid = open (inFile, O_RDONLY)) < 0) 466 if (inFile && (infid = open (inFile, O_RDONLY)) < 0)
467 error("can't open feature file for reading", inFile); 467 error("can't open input file for reading", inFile);
468 468
469 // find size of input file 469 // find size of input file
470 if (inFile && fstat (infid,&statbuf) < 0) 470 if (inFile && fstat (infid,&statbuf) < 0)
471 error("fstat error finding size of input"); 471 error("fstat error finding size of input");
472 472