X-Git-Url: https://git.cworth.org/git?p=ttt;a=blobdiff_plain;f=src%2Fttt-error.h;h=eabe64c8785d519ba59fd394b9f7c3e855533d88;hp=a800ea6b8e512ddd62b4e32a6c6943ba493fc9dd;hb=82b903360548669988e41ffe055bc2215a28b404;hpb=f8bdcd97af8d0dcee79ab692fffb83dba5a5498a diff --git a/src/ttt-error.h b/src/ttt-error.h index a800ea6..eabe64c 100644 --- a/src/ttt-error.h +++ b/src/ttt-error.h @@ -26,16 +26,19 @@ typedef enum { TTT_ERROR_NONE, - TTT_ERROR_NONAMESET, - TTT_ERROR_INVALIDNAME, + TTT_ERROR_NO_NAME_SET, + TTT_ERROR_INVALID_NAME, TTT_ERROR_COMMAND, TTT_ERROR_SYNTAX, - TTT_ERROR_NOTNUMBER, - TTT_ERROR_NOTGRID, - TTT_ERROR_NOUSER, - TTT_ERROR_NOTINGAME, - TTT_ERROR_NOTPLAYING, - TTT_ERROR_NOTYOURTURN + TTT_ERROR_NOT_NUMBER, + TTT_ERROR_NOT_GRID, + TTT_ERROR_NO_USER, + TTT_ERROR_NOT_IN_GAME, + TTT_ERROR_NOT_PLAYING, + TTT_ERROR_NOT_YOUR_TURN, + + /* Here's a non-protocol pseudo-error used to implement QUIT. */ + TTT_ERROR_QUIT_REQUESTED } ttt_error_t; const char *