From: Groepaz (groepaz_at_gmx.net)
Date: 2003-09-30 22:15:50
On Tuesday 30 September 2003 21:19, Adam Dunkels wrote: > On Tue, 2003-09-30 at 21:11, Ullrich von Bassewitz wrote: > > Hi! > > > > On Tue, Sep 30, 2003 at 09:02:15PM +0200, Adam Dunkels wrote: > > > While we're on the subject: can the charmap directive be used to turn > > > the PETSCII translation on and off in an easier way than to have > > > #charmap(0x00, 0x00), #charmap(0x01, 0x01), etc? > > > > No, currently not. You need it for the web server? > > Yep :-), but also for a telnet server (remote login to Contiki :-) and > for some other stuff. The web server currently uses a Perl script which > translates a file with all used protocol strings into a .c file that > looks something like this: > > const char http_content_type[15] = > /* "content-type: " */ > {0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2d, 0x74, 0x79, 0x70, 0x65, > 0x3a, 0x20, }; > > But generating am include file full of #pragma charmap(c, c) for every c > [0-255] is no problem for me :-) mmmh cant you simply put the data in question into a seperate C file, and then compile this file with -t none ? that should give you no character translation (or is that done in the linker?!? i dont think so?! :)) gpz ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo_at_musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.
This archive was generated by hypermail 2.1.3 : 2003-09-30 22:21:03 CEST