From: Adam Dunkels (adam_at_sics.se)
Date: 2003-09-30 21:19:15
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 :-) Thanks, /adam -- Adam Dunkels <adam_at_sics.se> http://www.sics.se/~adam/ ---------------------------------------------------------------------- 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 21:21:15 CEST