| 6 | #include "utils.h" |
| 7 | |
| 8 | void assertion(int condition, char * message) |
| 9 | { |
| 10 | if (condition == 0) |
| 11 | { |
| 12 | fprintf(stderr, "error: %s.\n", message); |
| 13 | exit(1); |
| 14 | } |
| 15 | } |
| 16 | |
| 17 | unsigned long UTF16ReadChar(const unsigned short *str, int len, int *posn) |
| 18 | { |