Two coverage imprivenents, one by recognizing dead code.

This commit is contained in:
Eric S. Raymond 2017-07-16 05:33:43 -04:00
parent 9eda1f424d
commit 9b585f40d8
4 changed files with 125 additions and 15 deletions

3
main.c
View file

@ -1103,7 +1103,6 @@ Lclearobj:
if (!get_command_input(&command))
return false;
Lclosecheck:
++game.turns;
if (closecheck()) {
@ -1194,8 +1193,6 @@ Lookup:
return true;
case GO_TOP:
continue; /* back to top of main interpreter loop */
case GO_CHECKFOO:
goto Lclosecheck;
case GO_LOOKUP:
goto Lookup;
case GO_WORD2: