]> git.mdlowis.com Git - projs/tide.git/commitdiff
minor cleanup
authorMichael D. Lowis <mike.lowis@gentex.com>
Thu, 10 Nov 2016 15:57:56 +0000 (10:57 -0500)
committerMichael D. Lowis <mike.lowis@gentex.com>
Thu, 10 Nov 2016 15:57:56 +0000 (10:57 -0500)
inc/X.h
inc/stdc.h
inc/utf.h

diff --git a/inc/X.h b/inc/X.h
index 02c64af2de4ef2c2cd616b95b2eb521c9ab0fa8d..8a492955997fc303eabf7b2ed9f094e5014dbfe8 100644 (file)
--- a/inc/X.h
+++ b/inc/X.h
@@ -7,12 +7,12 @@ typedef enum {
 } MouseAct;
 
 typedef enum {
-        MOUSE_BTN_LEFT = 0,
-        MOUSE_BTN_MIDDLE,
-        MOUSE_BTN_RIGHT,
-        MOUSE_BTN_WHEELUP,
-        MOUSE_BTN_WHEELDOWN,
-        MOUSE_BTN_NONE
+    MOUSE_BTN_LEFT = 0,
+    MOUSE_BTN_MIDDLE,
+    MOUSE_BTN_RIGHT,
+    MOUSE_BTN_WHEELUP,
+    MOUSE_BTN_WHEELDOWN,
+    MOUSE_BTN_NONE
 } MouseBtn;
 
 typedef struct {
index 3a12993127fb6b7cc835d3f995455f9ec99979e0..29b8947211a8bf1861d5f61576b45b493a7d8555 100644 (file)
@@ -46,12 +46,6 @@ typedef intptr_t  intptr;
  *****************************************************************************/
 void die(const char* msgfmt, ...);
 
-//static char* estrdup(const char *s) {
-//    char* ns = (char*)emalloc(strlen(s) + 1);
-//    strcpy(ns,s);
-//    return ns;
-//}
-
 /* Option Parsing
  *
  * This following macros implement a simple POSIX-style option parsing strategy.
index 465b8b41d3c4d53d7412bc4d8c3656f056ac0046..82ad5a8a7745f3ce8176a76eaad5c9578b0c957d 100644 (file)
--- a/inc/utf.h
+++ b/inc/utf.h
@@ -1,9 +1,11 @@
-#define UTF_MAX   6u           /* maximum number of bytes that make up a rune */
-#define RUNE_SELF 0x80         /* byte values larger than this are *not* ascii */
-#define RUNE_ERR  0xFFFD       /* rune value representing an error */
-#define RUNE_MAX  0x10FFFF     /* Maximum decodable rune value */
-#define RUNE_EOF  UINT32_MAX   /* rune value representing end of file */
-#define RUNE_CRLF UINT32_MAX-1 /* rune value representing a \r\n sequence */
+enum {
+    UTF_MAX   = 6u,           /* maximum number of bytes that make up a rune */
+    RUNE_SELF = 0x80,         /* byte values larger than this are *not* ascii */
+    RUNE_ERR  = 0xFFFD,       /* rune value representing an error */
+    RUNE_MAX  = 0x10FFFF,     /* Maximum decodable rune value */
+    RUNE_EOF  = UINT32_MAX,   /* rune value representing end of file */
+    RUNE_CRLF = UINT32_MAX-1, /* rune value representing a \r\n sequence */
+};
 
 /* Represents a unicode code point */
 typedef uint32_t Rune;