X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=sympathy.git;a=blobdiff_plain;f=src%2Fcrt.h;h=410b390ff9e75eda4475eb63486d01b2f00aff14;hp=e73e891eb18e681f06557d832504a42cb5d11e51;hb=ecb64606aef408784023c0f6a1d9373d4e28f86e;hpb=3684640e6bdec97cb1b60a34d03e8cde63149215 diff --git a/src/crt.h b/src/crt.h index e73e891..410b390 100644 --- a/src/crt.h +++ b/src/crt.h @@ -12,6 +12,15 @@ /* * $Log$ + * Revision 1.8 2008/02/13 09:12:21 james + * *** empty log message *** + * + * Revision 1.7 2008/02/13 01:08:18 james + * *** empty log message *** + * + * Revision 1.6 2008/02/07 13:22:51 james + * *** empty log message *** + * * Revision 1.5 2008/02/07 12:41:06 james * *** empty log message *** * @@ -46,7 +55,7 @@ #define CRT_ATTR_BOLD 0x8 -#define CRT_COLOR_BLACK 0x0 +#define CRT_COLOR_BLACK 0x0 #define CRT_COLOR_RED 0x1 #define CRT_COLOR_GREEN 0x2 #define CRT_COLOR_YELLOW 0x3 @@ -86,7 +95,8 @@ typedef struct } CRT_Pos; -typedef struct { +typedef struct +{ CRT_Pos s; CRT_Pos e; int dir; @@ -107,4 +117,10 @@ crt_ca_cmp (CRT_CA a, CRT_CA b) return memcmp (&a, &b, sizeof (a)); } +static inline +crt_pos_cmp (CRT_Pos a, CRT_Pos b) +{ + return memcmp (&a, &b, sizeof (a)); +} + #endif /* __CRT_H__ */