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) { switch (verbosity) {
case 0: case 0:
log_stderr = 0; log_stderr = 0;
break; break;
case 1: case 1:
log_stderr = LOG_CPERROR; log_stderr = LOG_CPERROR;
break; break;
case 2: case 2:
log_stderr = LOG_CPERROR|LOG_CPWARNING; log_stderr = LOG_CPERROR|LOG_CPWARNING;
break; break;
case 3: case 3:
log_stderr = LOG_CPERROR|LOG_CPWARNING|LOG_CPDEBUG; log_stderr = LOG_CPERROR|LOG_CPWARNING|LOG_CPDEBUG;
break; break;
default: default:
log_stderr = LOG_CPERROR|LOG_CPWARNING|LOG_CPDEBUG|LOG_CPINFO; log_stderr = LOG_CPERROR|LOG_CPWARNING|LOG_CPDEBUG|LOG_CPINFO;
break; break;
} }
if (run_tests) { if (run_tests) {
*exitcode = RunAllTests(); *exitcode = RunAllTests();
return 1; return 1;