]> jfr.im git - solanum.git/blobdiff - include/match.h
ircd: rewrite SOCKET_ERROR as I_SOCKET_ERROR
[solanum.git] / include / match.h
index 85e8f1cce571f8bfd2a93cd70ae4d8c95bc01f55..c49e12e9fc55460206843e7e231a2400dc110bab 100644 (file)
@@ -81,11 +81,11 @@ extern char *canonize(char *);
 /*
  * character macros
  */
-extern const unsigned char ToLowerTab[];
-#define ToLower(c) (ToLowerTab[(unsigned char)(c)])
+extern const unsigned char irctolower_tab[];
+#define irctolower(c) (irctolower_tab[(unsigned char)(c)])
 
-extern const unsigned char ToUpperTab[];
-#define ToUpper(c) (ToUpperTab[(unsigned char)(c)])
+extern const unsigned char irctoupper_tab[];
+#define irctoupper(c) (irctoupper_tab[(unsigned char)(c)])
 
 extern const unsigned int CharAttrs[];
 
@@ -143,7 +143,7 @@ static inline void irccasecanon(char *str)
 {
         while (*str)
         {
-                *str = ToUpper(*str);
+                *str = irctoupper(*str);
                 str++;
         }
         return;