fix find_spell and create_spell to only create each spell once.

kill register_spell
make some critbit changes (need to transfer them upstream)
This commit is contained in:
Enno Rehling 2012-05-22 18:44:54 -07:00
parent e2a6bbbb72
commit f2643e79b6
1 changed files with 17 additions and 17 deletions

View File

@ -119,23 +119,23 @@ static int parse_args(int argc, char **argv, int *exitcode)
}
}
switch (verbosity) {
case 0:
log_stderr = 0;
break;
case 1:
log_stderr = LOG_CPERROR;
break;
case 2:
log_stderr = LOG_CPERROR|LOG_CPWARNING;
break;
case 3:
log_stderr = LOG_CPERROR|LOG_CPWARNING|LOG_CPDEBUG;
break;
default:
log_stderr = LOG_CPERROR|LOG_CPWARNING|LOG_CPDEBUG|LOG_CPINFO;
break;
}
switch (verbosity) {
case 0:
log_stderr = 0;
break;
case 1:
log_stderr = LOG_CPERROR;
break;
case 2:
log_stderr = LOG_CPERROR|LOG_CPWARNING;
break;
case 3:
log_stderr = LOG_CPERROR|LOG_CPWARNING|LOG_CPDEBUG;
break;
default:
log_stderr = LOG_CPERROR|LOG_CPWARNING|LOG_CPDEBUG|LOG_CPINFO;
break;
}
if (run_tests) {
*exitcode = RunAllTests();
return 1;