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:
Adrien Destugues
2015-02-10 20:13:57 +00:00
parent 5e26436c48
commit 61c8dca353
10 changed files with 142 additions and 16 deletions

View File

@@ -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++;
}