comparison lwasm/input.c @ 279:4051bc09da78

Fix absolute path handling on Windows Actually recognize lower case drive letters. Lower case letters include the range 'a' ... 'z', not 'a' ... 'A', the latter containing zero members as the test was previously implemented.
author William Astle <lost@l-w.ca>
date Tue, 16 Jul 2013 17:04:45 -0600
parents 201b2774cb0e
children d791d47afc48
comparison
equal deleted inserted replaced
278:95c941799c8e 279:4051bc09da78
91 // check for drive letter stuff 91 // check for drive letter stuff
92 if (!s[0] || !s[1]) 92 if (!s[0] || !s[1])
93 return 0; 93 return 0;
94 if (s[1] != ':') 94 if (s[1] != ':')
95 return 0; 95 return 0;
96 if ((s[0] >= 'A' && s[0] <= 'Z') || (s[0] >= 'a' && s[0] <= 'A')) 96 if ((s[0] >= 'A' && s[0] <= 'Z') || (s[0] >= 'a' && s[0] <= 'z'))
97 return 1; 97 return 1;
98 return 0; 98 return 0;
99 #else 99 #else
100 /* this is suitable for unix-like systems */ 100 /* this is suitable for unix-like systems */
101 if (s[0] == '/') 101 if (s[0] == '/')