Sync tool code to BuildTools project r1783.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9623 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -87,7 +87,7 @@ Returns:
|
||||
//
|
||||
// Remove leading whitespace
|
||||
//
|
||||
for (Pos = String; isspace (*Pos); Pos++) {
|
||||
for (Pos = String; isspace ((int)*Pos); Pos++) {
|
||||
}
|
||||
if (Pos != String) {
|
||||
memmove (String, Pos, strlen (Pos) + 1);
|
||||
@ -114,7 +114,7 @@ Returns:
|
||||
// Remove trailing whitespace
|
||||
//
|
||||
for (Pos = String + strlen (String);
|
||||
((Pos - 1) >= String) && (isspace (*(Pos - 1)));
|
||||
((Pos - 1) >= String) && (isspace ((int)*(Pos - 1)));
|
||||
Pos--
|
||||
) {
|
||||
}
|
||||
@ -160,12 +160,12 @@ Returns:
|
||||
Output = NewStringList ();
|
||||
|
||||
for (Pos = String, Item = 0; Pos < EndOfString; Item++) {
|
||||
while (isspace (*Pos)) {
|
||||
while (isspace ((int)*Pos)) {
|
||||
Pos++;
|
||||
}
|
||||
|
||||
for (EndOfSubString=Pos;
|
||||
(*EndOfSubString != '\0') && !isspace (*EndOfSubString);
|
||||
(*EndOfSubString != '\0') && !isspace ((int)*EndOfSubString);
|
||||
EndOfSubString++
|
||||
) {
|
||||
}
|
||||
|
Reference in New Issue
Block a user