home *** CD-ROM | disk | FTP | other *** search
/ Dream 52 / Amiga_Dream_52.iso / Linux / Divers / lynx2.8.1dev.10.tar.gz / lynx2.8.1dev.10.tar / lynx2-8 / src / LYReadCFG.h < prev    next >
C/C++ Source or Header  |  1998-03-25  |  1KB  |  50 lines

  1. #ifndef LYREADCFG_H
  2. #define LYREADCFG_H
  3.  
  4. #ifndef LYSTRUCTS_H
  5. #include <LYStructs.h>
  6. #endif /* LYSTRUCTS_H */
  7.  
  8. #if defined(USE_COLOR_STYLE) || defined(USE_COLOR_TABLE)
  9.  
  10. #define DEFAULT_COLOR -1
  11. #define NO_COLOR      -2
  12. #define ERR_COLOR     -3
  13.  
  14. /* Note: the sense of colors that Lynx uses for defaults is the reverse of
  15.  * the standard for color-curses.
  16.  */
  17. #ifdef USE_DEFAULT_COLORS
  18. # ifdef USE_SLANG
  19. #  define DEFAULT_FG "default"
  20. #  define DEFAULT_BG "default"
  21. # else
  22. #  ifdef HAVE_USE_DEFAULT_COLORS
  23. #   define DEFAULT_FG DEFAULT_COLOR
  24. #   define DEFAULT_BG DEFAULT_COLOR
  25. #  else
  26. #   define DEFAULT_FG COLOR_BLACK
  27. #   define DEFAULT_BG COLOR_WHITE
  28. #  endif
  29. # endif
  30. #else
  31. # ifdef USE_SLANG
  32. #  define DEFAULT_FG "black"
  33. #  define DEFAULT_BG "white"
  34. # else
  35. #  define DEFAULT_FG COLOR_BLACK
  36. #  define DEFAULT_BG COLOR_WHITE
  37. # endif
  38. #endif /* USE_DEFAULT_COLORS */
  39.  
  40. extern int default_fg;
  41. extern int default_bg;
  42.  
  43. extern int check_color PARAMS((char * color, int the_default));
  44. #endif
  45.  
  46. extern void read_cfg PARAMS((char *cfg_filename, char *parent_filename, int nesting_level));
  47. extern BOOLEAN have_read_cfg;
  48.  
  49. #endif /* LYREADCFG_H */
  50.