On Wed, Dec 01, 2004 at 01:46:40PM +0100, MagerValp wrote: > How about a #pragma for translation of numeric escapes? That would > make it relatively painless to include petscii characters in those ^^^^^^^ ascii? > programs that need it. This would be difficult, because of the way, string literals are managed in cc65. Since not all string literals need translation (think about the asm() statement for example), so string literals are collected in something called the literal pool, and translated at the latest possible moment (when the pool is output to the file). For such a #pragma, the compiler would have to remember for all string literals, which offsets do contain characters that must remain as they are. Using the approach detailed in my last mail ("abuse" wide strings for untranslated literals) only minor changes are necessary. Regards Uz -- Ullrich von Bassewitz uz@musoftware.de ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo@musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.Received on Wed Dec 1 18:08:44 2004
This archive was generated by hypermail 2.1.8 : 2004-12-01 18:08:54 CET