scriptreader.cxx

changeset 19
66993500719f
parent 12
1bdbfcca2fc6
child 20
d7b13805d1e0
--- a/scriptreader.cxx	Sat Jul 14 17:39:43 2012 +0300
+++ b/scriptreader.cxx	Sat Jul 14 18:03:37 2012 +0300
@@ -45,7 +45,7 @@
 #include "common.h"
 #include "scriptreader.h"
 
-bool IsDelimeter (char c) {
+static bool IsWhitespace (char c) {
 	// These characters are invisible, thus considered whitespace
 	if (c <= 32 || c == 127 || c == 255)
 		return true;
@@ -111,7 +111,7 @@
 			break;
 		}
 		
-		if (IsDelimeter (c)) {
+		if (IsWhitespace (c)) {
 			// Don't break if we haven't gathered anything yet.
 			if (tmp.len())
 				break;
@@ -120,7 +120,8 @@
 		}
 	}
 	
-	// If we got nothing here, read failed.
+	// If we got nothing here, read failed. This should
+	// only hapen in the case of EOF.
 	if (!tmp.len()) {
 		token = "";
 		return false;

mercurial