Some changes in the way, types and type strings are handled.

Check for and honour const in several places: Assignment to const is flagged
with an error. Const data is placed in the rodata segment.


git-svn-id: svn://svn.cc65.org/cc65/trunk@252 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2000-08-01 18:45:08 +00:00
parent 5ee8618510
commit 85417b6d1b
11 changed files with 310 additions and 229 deletions

View File

@@ -135,6 +135,7 @@ static char* ErrMsg [ERR_COUNT-1] = {
"Illegal hex digit",
"Illegal character constant",
"Illegal modifier",
"Illegal type qualifier",
"Illegal storage class",
"Illegal segment name: `%s'",
"Division by zero",
@@ -150,6 +151,8 @@ static char* ErrMsg [ERR_COUNT-1] = {
"__fastcall__ is not allowed for C functions",
"Variable has unknown size",
"Unknown identifier: `%s'",
"Duplicate qualifier: `%s'",
"Assignment to const",
};