-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcode.h
37 lines (33 loc) · 1.61 KB
/
code.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef CODE_XS
#define CODE_XS(X) \
X(CODE_OKAY , "" ) \
X(CODE_ERROR_BUILDER_REALLOC, "error builder realloc") \
X(CODE_ERROR_NO_TITLE , "error no title" ) \
X(CODE_ERROR_TITLE_REDEF , "error title twice" ) \
X(CODE_ERROR_REPEATED_PP , "error repeated pp" ) \
X(CODE_ERROR_HANGING_TEXT , "error hanging text" ) \
X(CODE_ERROR_MOVIE_UNDEFINED, "error movie undefined") \
X(CODE_ERRO_TITLE_HEAD , "erro title head" ) \
X(CODE_ERRO_LEVEL , "erro level" ) \
X(CODE_ERRO_TITLE , "erro title" ) \
X(CODE_ERROR_NO_SYMBOL_MOVIE, "error no symbol movie") \
X(CODE_ERROR_NO_TAG_MOVIE , "error no tag movie" ) \
X(CODE_ERROR_NO_AUT_MOVIE , "error no authority movie") \
X(CODE_ERROR_NO_YEAR , "error no year" ) \
X(CODE_ERROR_NO_MOVIE_NAME , "error no movie_name" ) \
X(CODE_ERROR_MOVIE_ALREADY_DEFINED, "error movie already defined") \
X(CODE_ENOMEM , "error enomem" ) \
X(CODE_ERROR_NO_QUOTED , "error incomplete quot") \
X(CODE_EMPTY_STRING , "string is empty" ) \
X(CODE_OLD , "tried to add old file") \
X(CODE_ERROR_TRAILING , "error trailing" ) \
X(CODE_ERROR_INVALID_CMD , "error unknown cmd" ) \
\
X(CODE_NO_UPGRADE , "bro I don't even have TLS" ) \
X(CODE_BAD_REQUEST , "bro..." ) \
X(CODE_NOT_IMPLEMENTED, "I don't know how to proceed.") \
X(CODE_NOT_FOUND , "no such page (yet?)" )
#include "expand.h"
enum code { CODE_XS(AS_COMMA_FIRST) };
char const * code_msg(enum code code);
#endif