home
·
contact
·
privacy
projects
/
plomrogue
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Use enum instead of define for directions in yx_uint16 library.
[plomrogue]
/
src
/
yx_uint16.h
1
#ifndef YX_UINT16_H
2
#define YX_UINT16_H
3
4
#include <stdint.h>
5
6
enum dir {
7
NORTH = 1,
8
EAST = 2,
9
SOUTH = 3,
10
WEST = 4 };
11
12
struct yx_uint16 {
13
uint16_t y;
14
uint16_t x; };
15
16
extern char yx_uint16_cmp (struct yx_uint16, struct yx_uint16);
17
extern struct yx_uint16 mv_yx_in_dir (enum dir, struct yx_uint16);
18
19
#endif