4 #include <stdint.h> /* for uint8_t, uint16_t */
8 extern uint8_t yx_uint16_cmp(struct yx_uint16 * a, struct yx_uint16 * b)
10 if (a->y == b->y && a->x == b->x)
19 extern struct yx_uint16 mv_yx_in_dir(char d, struct yx_uint16 yx)
21 if (d == 'N' && yx.y > 0)
25 else if (d == 'E' && yx.x < UINT16_MAX)
29 else if (d == 'S' && yx.y < UINT16_MAX)
33 else if (d == 'W' && yx.x > 0)