ref: 7104ef7c8cf505cc5be1c2c5e28a745b929af1b3
dir: /fns.h/
#define HZ2MS(hz) (1000/(hz)) /* * alloc */ void *emalloc(ulong); void *erealloc(void*, ulong); Image *eallocimage(Display*, Rectangle, ulong, int, ulong); /* * util */ char *cell2coords(Point2); Point2 coords2cell(char*); int gettile(Map*, Point2); void settile(Map*, Point2, int); void settiles(Map*, Point2, int, int, int); void fprintmap(int, Map*); int shiplen(int);