Len = strlen (SVal);
/* Translate into target charset and emit */
- EmitData ((unsigned char*) TgtTranslateBuf (SVal, Len), Len);
+ TgtTranslateBuf (SVal, Len);
+ EmitData ((unsigned char*) SVal, Len);
NextTok ();
if (Tok == TOK_COMMA) {
NextTok ();
if (Tok == TOK_STRCON) {
/* A string, translate into target charset and emit */
unsigned Len = strlen (SVal);
- EmitData ((unsigned char*) TgtTranslateBuf (SVal, Len), Len);
+ TgtTranslateBuf (SVal, Len);
+ EmitData ((unsigned char*) SVal, Len);
NextTok ();
} else {
EmitByte (Expression ());
-char* TgtTranslateBuf (char* Buf, unsigned Len)
+void TgtTranslateBuf (void* Buf, unsigned Len)
/* Translate a buffer of the given length from the source character set into
* the target system character set.
*/
/* Translate */
if (Tab) {
unsigned char* B = (unsigned char*)Buf;
- while (Len--) {
- *B = Tab[*B];
- ++B;
- }
+ while (Len--) {
+ *B = Tab[*B];
+ ++B;
+ }
}
-
- /* Return the argument string */
- return Buf;
}
* system character set.
*/
-char* TgtTranslateBuf (char* Buf, unsigned Len);
+void TgtTranslateBuf (void* Buf, unsigned Len);
/* Translate a buffer of the given length from the source character set into
* the target system character set.
*/