From a3aca2ab67c1c1eeee4eeef941e41e1148c2b24b Mon Sep 17 00:00:00 2001 From: uz Date: Fri, 30 Jan 2009 16:30:27 +0000 Subject: [PATCH] Added special error messages for Groepaz. git-svn-id: svn://svn.cc65.org/cc65/trunk@3919 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/cc65/pragma.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) 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; }