Add a port to the GCW Zero, contributed by David Knight.
Untested since I don't have the hardware. git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2080 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
@@ -59,8 +59,7 @@ void Load_INI_clear_string(char * str, byte keep_comments)
|
||||
// Suppression d'un espace ou d'un tab:
|
||||
memmove(str+index,str+index+1,strlen(str+index));
|
||||
}
|
||||
else
|
||||
if (!keep_comments && ((str[index]==';') || (str[index]=='#')))
|
||||
else if (!keep_comments && ((str[index]==';') || (str[index]=='#')))
|
||||
{
|
||||
// Comment
|
||||
str[index]='\0';
|
||||
@@ -75,8 +74,9 @@ void Load_INI_clear_string(char * str, byte keep_comments)
|
||||
if (!equal_found)
|
||||
{
|
||||
// Passage en majuscule d'un caractère:
|
||||
|
||||
#ifndef GCWZERO //this causes gcw to crash
|
||||
str[index]=toupper((int)str[index]);
|
||||
#endif
|
||||
}
|
||||
index++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user