changeset 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 0e4a9b21ad7b
children ed1009bce533
files lwasm/input.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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