aboutsummaryrefslogtreecommitdiffstats
path: root/src/crt.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/crt.h')
-rw-r--r--src/crt.h19
1 files changed, 13 insertions, 6 deletions
diff --git a/src/crt.h b/src/crt.h
index 68ecfd4..116332e 100644
--- a/src/crt.h
+++ b/src/crt.h
@@ -12,6 +12,9 @@
/*
* $Log$
+ * Revision 1.19 2012/06/22 10:22:24 james
+ * *** empty log message ***
+ *
* Revision 1.18 2008/03/10 11:49:33 james
* *** empty log message ***
*
@@ -111,25 +114,29 @@
#define CRT_COLOR_NORMAL CRT_MAKE_COLOR(CRT_FGCOLOR_NORMAL,CRT_BGCOLOR_NORMAL)
-typedef struct __attribute__ ((packed)) {
+typedef struct __attribute__ ((packed))
+{
uint32_t chr;
uint8_t attr;
uint8_t color;
} CRT_CA;
-typedef struct {
+typedef struct
+{
int x;
int y;
} CRT_Pos;
-typedef struct {
+typedef struct
+{
CRT_Pos s;
CRT_Pos e;
int dir;
} CRT_ScrollHint;
-typedef struct CRT_struct {
+typedef struct CRT_struct
+{
CRT_CA screen[CRT_CELS];
CRT_Pos pos;
int hide_cursor;
@@ -137,13 +144,13 @@ typedef struct CRT_struct {
} CRT;
-static inline
+static inline int
crt_ca_cmp (CRT_CA a, CRT_CA b)
{
return memcmp (&a, &b, sizeof (a));
}
-static inline
+static inline int
crt_pos_cmp (CRT_Pos a, CRT_Pos b)
{
return memcmp (&a, &b, sizeof (a));