/*=====================================================================*/
/*    serrano/prgm/project/bigloo/bdb/blib/color.h                     */
/*    -------------------------------------------------------------    */
/*    Author      :  Manuel Serrano                                    */
/*    Creation    :  Thu Apr  6 10:02:57 2000                          */
/*    Last change :  Mon Aug 14 16:08:07 2000 (serrano)                */
/*    Copyright   :  2000 Manuel Serrano                               */
/*    -------------------------------------------------------------    */
/*    Color description for heap dumping                               */
/*=====================================================================*/
#ifndef HEAP_COLOR
#define HEAP_COLOR

/*---------------------------------------------------------------------*/
/*    Standard colors                                                  */
/*---------------------------------------------------------------------*/
#define COLOR0 "#ffffff"
#define COLOR1 "#ff0000"
#define COLOR2 "#6a5acd"
#define COLOR3 "#ffc125"
#define COLOR4 "#008b00"
#define COLOR5 "#ff00ff"
#define COLOR6 "#007fff"
#define COLOR7 "#00dd00"
#define COLOR8 "#be55d7"
#define COLOR9 "#ffba08"
#define COLOR10 "#7924cf"
#define COLOR11 "#51ff9e"
#define COLOR12 "#ff3030"
#define COLOR13 "c71486"
#define COLOR14 "#ff34b6"
#define COLOR15 "#efd3ef"
#define COLOR16 "#ff7d00"
#define COLOR17 "#b6ef38"
#define COLOR18 "#6959cf"
#define COLOR19 "#d72096"
#define COLOR20 "#ff8271"
#define COLOR21 "#00ddd0"
#define COLOR22 "#00dde0"
#define COLOR23 "#00ddf0"
#define COLOR24 "#10dd00"
#define COLOR25 "#20dd00"
#define COLOR26 "#30dd00"
#define COLOR27 "#40dd00"
#define COLOR28 "#50dd00"
#define COLOR29 "#60dd00"
#define COLOR30 "#70dd00"
#define COLOR31 "#80dd00"

#define INVISIBLE_CHAR_COLOR '-'
#define CHAR_COLOR1 '!'
#define CHAR_COLOR2 '@'
#define CHAR_COLOR3 '#'
#define CHAR_COLOR4 '$'
#define CHAR_COLOR5 '*'
#define CHAR_COLOR6 '^'
#define CHAR_COLOR7 '&'
#define CHAR_COLOR8 'a'
#define CHAR_COLOR9 'b'
#define CHAR_COLOR10 'c'
#define CHAR_COLOR11 'd'
#define CHAR_COLOR12 'e'
#define CHAR_COLOR13 'f'
#define CHAR_COLOR14 'g'
#define CHAR_COLOR15 'h'
#define CHAR_COLOR16 'i'
#define CHAR_COLOR17 'j'
#define CHAR_COLOR18 'k'
#define CHAR_COLOR19 'l'
#define CHAR_COLOR20 'm'
#define CHAR_COLOR21 'n'
#define CHAR_COLOR22 'o'
#define CHAR_COLOR23 'p'
#define CHAR_COLOR24 'q'
#define CHAR_COLOR25 'r'
#define CHAR_COLOR26 's'
#define CHAR_COLOR27 't'
#define CHAR_COLOR28 'u'
#define CHAR_COLOR29 'v'
#define CHAR_COLOR30 'w'
#define CHAR_COLOR31 'x'

#define ROOT_CHAR      CHAR_COLOR2
#define LEAK_CHAR      CHAR_COLOR1
#define LEAK_ROOT_CHAR CHAR_COLOR3

#define MISC_TYPE_CHAR CHAR_COLOR7

static char *string_colors[] = {
   COLOR0,
   COLOR1,
   COLOR2,
   COLOR3,
   COLOR4,
   COLOR5,
   COLOR6,
   COLOR7,
   COLOR8,
   COLOR9,
   COLOR10,
   COLOR11,
   COLOR12,
   COLOR13,
   COLOR14,
   COLOR15,
   COLOR16,
   COLOR17,
   COLOR18,
   COLOR19,
   COLOR20,
   COLOR21,
   COLOR22,
   COLOR23,
   COLOR24,
   COLOR25,
   COLOR26,
   COLOR27,
   COLOR28,
   COLOR29,
   COLOR30,
   COLOR31
};

static char char_colors[] = {
   INVISIBLE_CHAR_COLOR,
   CHAR_COLOR1,
   CHAR_COLOR2,
   CHAR_COLOR3,
   CHAR_COLOR4,
   CHAR_COLOR5,
   CHAR_COLOR6,
   CHAR_COLOR7,
   CHAR_COLOR8,
   CHAR_COLOR9,
   CHAR_COLOR10,
   CHAR_COLOR11,
   CHAR_COLOR12,
   CHAR_COLOR13,
   CHAR_COLOR14,
   CHAR_COLOR15,
   CHAR_COLOR16,
   CHAR_COLOR17,
   CHAR_COLOR18,
   CHAR_COLOR19,
   CHAR_COLOR20,
   CHAR_COLOR21,
   CHAR_COLOR22,
   CHAR_COLOR23,
   CHAR_COLOR24,
   CHAR_COLOR25,
   CHAR_COLOR26,
   CHAR_COLOR27,
   CHAR_COLOR28,
   CHAR_COLOR29,
   CHAR_COLOR30,
   CHAR_COLOR31
};
#endif
