]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - quakedef.h
more loading screen improvements (weighting for different content types; don't update...
[xonotic/darkplaces.git] / quakedef.h
index 3ddf1c737e4c861c529fe735156b2a9ae33643b0..6dc94ef159eb20005bccdb46b9e4070a87b8cd25 100644 (file)
@@ -354,5 +354,12 @@ void Sys_Shared_Init(void);
 // debug protocol exploits.
 #define DEMOMSG_CLIENT_TO_SERVER 0x80000000
 
+// In Quake, any char in 0..32 counts as whitespace
+//#define ISWHITESPACE(ch) ((unsigned char) ch <= (unsigned char) ' ')
+#define ISWHITESPACE(ch) (!(ch) || (ch) == ' ' || (ch) == '\t' || (ch) == '\r' || (ch) == '\n')
+
+// This also includes extended characters, and ALL control chars
+#define ISWHITESPACEORCONTROL(ch) ((signed char) (ch) <= (signed char) ' ')
+
 #endif