Re: EZColor and log files

From: George Greer (greerga@circlemud.org)
Date: 05/31/03


On Sat, 31 May 2003, Greg Buxton wrote:

>#define IS_COLOR_CHAR(c) (c == 'n' || c == 'R' || c == 'r' || c == 'Y'
>||\
>   c == 'y' || c == 'G' || c == 'g' || c == 'B' || c == 'b' || c == 'f'
>||\
>   c == 'M' || c == 'm' || c == 'W' || c == 'w' || c == 'D' || c == 'd'
>||\
>   c == 'C' || c == 'c' || c == '0')

Eyyaaah!

#define IS_COLOR_CHAR(c) strchr("nRrYyGgBbfMmWwDdCcO", c)

The same trick is used for AN() in utils.h

--
George Greer
greerga@circlemud.org

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   | Newbie List:  http://groups.yahoo.com/group/circle-newbies/   |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 06/26/03 PDT