switch (error) {
case TTT_ERROR_NONE:
return "ERROT NONE\n";
- case TTT_ERROR_NONAMESET:
+ case TTT_ERROR_NO_NAME_SET:
return "ERROR NONAMESET\n";
- case TTT_ERROR_INVALIDNAME:
+ case TTT_ERROR_INVALID_NAME:
return "ERROR INVALIDNAME\n";
case TTT_ERROR_COMMAND:
return "ERROR COMMAND\n";
case TTT_ERROR_SYNTAX:
return "ERROR SYNTAX\n";
- case TTT_ERROR_NOTNUMBER:
+ case TTT_ERROR_NOT_NUMBER:
return "ERROR NOTNUMBER\n";
- case TTT_ERROR_NOTGRID:
+ case TTT_ERROR_NOT_GRID:
return "ERROR NOTGRID\n";
- case TTT_ERROR_NOUSER:
+ case TTT_ERROR_NO_USER:
return "ERROR NOUSER\n";
- case TTT_ERROR_NOTINGAME:
+ case TTT_ERROR_NOT_IN_GAME:
return "ERROR_NOTINGAME\n";
- case TTT_ERROR_NOTPLAYING:
+ case TTT_ERROR_NOT_PLAYING:
return "ERROR_NOTPLAYING\n";
- case TTT_ERROR_NOTYOURTURN:
+ case TTT_ERROR_NOT_YOUR_TURN:
return "ERROR NOTYOURTURN\n";
+ /* Not an actual protocol errror, so this should never happen. */
+ case TTT_ERROR_QUIT_REQUESTED:
+ ASSERT_NOT_REACHED;
+ break;
}
ASSERT_NOT_REACHED;