X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2FSDCC.lex;h=4f9b51887143ffac7c794b995ac355ef74005628;hb=e4686e809bb3f1922a4fe850adc00c503a72ad24;hp=d1214ac0826cac4331a8e707b9c204e30396c6f1;hpb=98a8cc0a546d822058cccec0ddb8d8498ea69b7e;p=fw%2Fsdcc diff --git a/src/SDCC.lex b/src/SDCC.lex index d1214ac0..4f9b5188 100644 --- a/src/SDCC.lex +++ b/src/SDCC.lex @@ -122,6 +122,8 @@ _?"_asm" { "eeprom" { count(); TKEYWORDSDCC(EEPROM); } "__eeprom" { count(); TKEYWORD(EEPROM); } "float" { count(); return(FLOAT); } +"fixed16x16" { count(); TKEYWORDSDCC(FIXED16X16); } +"__fixed16x16" { count(); TKEYWORD(FIXED16X16); } "flash" { count(); TKEYWORDSDCC(CODE); } "__flash" { count(); TKEYWORD(CODE); } "for" { count(); return(FOR); } @@ -282,7 +284,7 @@ static int checkCurrFile (char *s) /* get the line number */ lNum = strtol(s, &tptr, 10); - if (tptr == s || !isspace(*tptr)) + if (tptr == s || !isspace((unsigned char)*tptr)) return 0; s = tptr; @@ -781,16 +783,16 @@ static int process_pragma(char *s) s += PRAGMA_LEN; /* look for the directive */ - while(isspace(*s)) + while(isspace((unsigned char)*s)) s++; cp = s; /* look for the end of the directive */ - while ((!isspace(*s)) && (*s != '\n')) + while ((!isspace((unsigned char)*s)) && (*s != '\n')) s++ ; /* skip separating whitespace */ - while (isspace(*s) && (*s != '\n')) + while (isspace((unsigned char)*s) && (*s != '\n')) s++; /* First give the port a chance */