From: uz Date: Fri, 30 Jan 2009 16:30:27 +0000 (+0000) Subject: Added special error messages for Groepaz. X-Git-Tag: V2.13.0rc1~336 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a3aca2ab67c1c1eeee4eeef941e41e1148c2b24b;p=cc65 Added special error messages for Groepaz. git-svn-id: svn://svn.cc65.org/cc65/trunk@3919 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/cc65/pragma.c b/src/cc65/pragma.c index c12000c5a..cfcac04ea 100644 --- a/src/cc65/pragma.c +++ b/src/cc65/pragma.c @@ -238,7 +238,12 @@ static void CharMapPragma (StrBuf* B) return; } if (Index < 1 || Index > 255) { - Error ("Character index out of range"); + if (Index == 0) { + /* For groepaz */ + Error ("Remapping 0 is not allowed"); + } else { + Error ("Character index out of range"); + } return; } @@ -255,7 +260,12 @@ static void CharMapPragma (StrBuf* B) return; } if (C < 1 || C > 255) { - Error ("Character code out of range"); + if (C == 0) { + /* For groepaz */ + Error ("Remapping 0 is not allowed"); + } else { + Error ("Character code out of range"); + } return; }