diff lwasm/input.c @ 252:201b2774cb0e

Fix warning about isalpha in input.c on windows Removed reliance in isalpha for detecting absolute paths on windows since the heuristic is clear enough and the allowed drive letters are not locale dependent.
author William Astle <lost@l-w.ca>
date Fri, 25 Jan 2013 23:48:46 -0700
parents 891bab942b5a
children 4051bc09da78
line wrap: on
line diff
--- a/lwasm/input.c	Fri Jan 25 22:43:10 2013 -0700
+++ b/lwasm/input.c	Fri Jan 25 23:48:46 2013 -0700
@@ -93,7 +93,7 @@
 		return 0;
 	if (s[1] != ':')
 		return 0;
-	if (isalpha(s[0]))
+	if ((s[0] >= 'A' && s[0] <= 'Z') || (s[0] >= 'a' && s[0] <= 'A'))
 		return 1;
 	return 0;
 #else