diff --git a/src/common/tgttrans.c b/src/common/tgttrans.c index c184f0dfb..dff5238e1 100644 --- a/src/common/tgttrans.c +++ b/src/common/tgttrans.c @@ -1,12 +1,12 @@ /*****************************************************************************/ /* */ -/* tgttrans.c */ +/* tgttrans.c */ /* */ -/* Character set translation */ +/* Character set translation */ /* */ /* */ /* */ -/* (C) 2000-2011, Ullrich von Bassewitz */ +/* (C) 2000-2012, Ullrich von Bassewitz */ /* Roemerstrasse 52 */ /* D-70794 Filderstadt */ /* EMail: uz@cc65.org */ @@ -96,24 +96,6 @@ int TgtTranslateChar (int C) -char* TgtTranslateStr (char* S) -/* Translate a complete string from the source character set into the target - * system character set. - */ -{ - /* Translate */ - unsigned char* T = (unsigned char*)S; - while (*T) { - *T = Tab[*T]; - ++T; - } - - /* Return the argument string */ - return S; -} - - - void TgtTranslateBuf (void* Buf, unsigned Len) /* Translate a buffer of the given length from the source character set into * the target system character set. diff --git a/src/common/tgttrans.h b/src/common/tgttrans.h index 51bf8ebbb..6a54cfc4a 100644 --- a/src/common/tgttrans.h +++ b/src/common/tgttrans.h @@ -6,10 +6,10 @@ /* */ /* */ /* */ -/* (C) 2000-2008 Ullrich von Bassewitz */ -/* Roemerstrasse 52 */ -/* D-70794 Filderstadt */ -/* EMail: uz@cc65.org */ +/* (C) 2000-2012, Ullrich von Bassewitz */ +/* Roemerstrasse 52 */ +/* D-70794 Filderstadt */ +/* EMail: uz@cc65.org */ /* */ /* */ /* This software is provided 'as-is', without any expressed or implied */ @@ -34,7 +34,7 @@ #ifndef TGTTRANS_H -#define TGTTRANS_H +#define TGTTRANS_H @@ -57,18 +57,13 @@ int TgtTranslateChar (int C); * system character set. */ -char* TgtTranslateStr (char* S); -/* Translate a complete string from the source character set into the target - * system character set. - */ - void TgtTranslateBuf (void* Buf, unsigned Len); /* Translate a buffer of the given length from the source character set into * the target system character set. */ void TgtTranslateStrBuf (StrBuf* Buf); -/* Translate a string buffer from the source character set into the target +/* Translate a string buffer from the source character set into the target * system character set. */