aboutsummaryrefslogtreecommitdiffstats
path: root/src/crt.h
diff options
context:
space:
mode:
authorjames <>2008-02-06 11:30:45 +0000
committerjames <>2008-02-06 11:30:45 +0000
commit8e3109cc4dc4d969084fe455c549f9422d73b5c0 (patch)
treee2899c29b3b4c1fe4a0a8332a588908ea4f76521 /src/crt.h
parent3a09196a5ad4026f0b366f8950418b0f1803ddc2 (diff)
downloadsympathy-8e3109cc4dc4d969084fe455c549f9422d73b5c0.tar.gz
sympathy-8e3109cc4dc4d969084fe455c549f9422d73b5c0.tar.bz2
sympathy-8e3109cc4dc4d969084fe455c549f9422d73b5c0.zip
*** empty log message ***
Diffstat (limited to 'src/crt.h')
-rw-r--r--src/crt.h32
1 files changed, 20 insertions, 12 deletions
diff --git a/src/crt.h b/src/crt.h
index ca3fc00..002f67f 100644
--- a/src/crt.h
+++ b/src/crt.h
@@ -12,6 +12,9 @@
/*
* $Log$
+ * Revision 1.3 2008/02/06 11:30:37 james
+ * *** empty log message ***
+ *
* Revision 1.2 2008/02/04 20:23:55 james
* *** empty log message ***
*
@@ -36,26 +39,31 @@
#define CRT_ATTR_BLINK 0x4
#define CRT_ATTR_BOLD 0x8
-typedef struct {
- uint8_t chr;
- uint8_t attr;
+typedef struct
+{
+ uint8_t chr;
+ uint8_t attr;
} CRT_CA;
-typedef struct {
- int x;
- int y;
+typedef struct
+{
+ int x;
+ int y;
} CRT_Pos;
-typedef struct {
- CRT_CA screen[CRT_CELS];
- CRT_Pos pos;
- int hide_cursor;
+typedef struct
+{
+ CRT_CA screen[CRT_CELS];
+ CRT_Pos pos;
+ int hide_cursor;
} CRT;
-static inline crt_ca_cmp(CRT_CA a,CRT_CA b) {
- return memcmp(&a,&b,sizeof(a));
+static inline
+crt_ca_cmp (CRT_CA a, CRT_CA b)
+{
+ return memcmp (&a, &b, sizeof (a));
}
#endif /* __CRT_H__ */