common.h

changeset 33
fd35f6cb5f28
parent 32
d11a034aabfd
child 34
0a9a5902beaa
--- a/common.h	Mon Jul 16 16:15:16 2012 +0300
+++ b/common.h	Tue Jul 17 20:35:43 2012 +0300
@@ -54,7 +54,7 @@
 
 // On Windows, files are case-insensitive
 #if (defined(WIN32) || defined(_WIN32) || defined(__WIN32)) && !defined(__CYGWIN__)
-	#define FILE_CASEINSENSITIVE 0
+	#define FILE_CASEINSENSITIVE
 #endif
 
 // Where is the parser at?
@@ -107,4 +107,9 @@
 	return r;
 }
 
+// Whitespace check
+inline bool IsCharWhitespace (char c) {
+	return (c <= 32 || c == 127 || c == 255);
+}
+
 #endif // __COMMON_H__
\ No newline at end of file

mercurial