| 32 #include <stdlib.h> |
32 #include <stdlib.h> |
| 33 #include <ctype.h> |
33 #include <ctype.h> |
| 34 #include <string.h> |
34 #include <string.h> |
| 35 #include <sys/time.h> |
35 #include <sys/time.h> |
| 36 #include <time.h> |
36 #include <time.h> |
| 37 |
|
| 38 enum { |
|
| 39 pgn_no_error = 0, |
|
| 40 pgn_error_missing_quote, |
|
| 41 pgn_error_missing_bracket, |
|
| 42 pgn_error_missing_brace, |
|
| 43 pgn_error_missing_dot, |
|
| 44 pgn_error_move_syntax, |
|
| 45 pgn_error_move_semantics, |
|
| 46 pgn_error_result_syntax, |
|
| 47 pgn_error_result_mismatch, |
|
| 48 pgn_error_unexpected_eof, |
|
| 49 }; |
|
| 50 |
37 |
| 51 static const char* pgn_error_strings[] = { |
38 static const char* pgn_error_strings[] = { |
| 52 "No Error.", |
39 "No Error.", |
| 53 "Tag values must be enclosed in double-quotes.", |
40 "Tag values must be enclosed in double-quotes.", |
| 54 "Missing closing brace '}' for comment.", |
41 "Missing closing brace '}' for comment.", |