blob: ff95d13a43824462512a32e3b0c086052682596b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
/*
* $LynxId: LYReadCFG.h,v 1.26 2011/06/06 00:08:21 tom Exp $
*/
#ifndef LYREADCFG_H
#define LYREADCFG_H
#ifndef LYSTRUCTS_H
#include <LYStructs.h>
#endif /* LYSTRUCTS_H */
#ifdef __cplusplus
extern "C" {
#endif
#if defined(USE_COLOR_STYLE) || defined(USE_COLOR_TABLE)
#define DEFAULT_COLOR -1
#define NO_COLOR -2
#define ERR_COLOR -3
/* Note: the sense of colors that Lynx uses for defaults is the reverse of
* the standard for color-curses.
*/
#ifdef USE_DEFAULT_COLORS
# ifdef USE_SLANG
# define DEFAULT_FG "default"
# define DEFAULT_BG "default"
# else
# ifdef HAVE_USE_DEFAULT_COLORS
# define DEFAULT_FG DEFAULT_COLOR
# define DEFAULT_BG DEFAULT_COLOR
# else
# define DEFAULT_FG COLOR_BLACK
# define DEFAULT_BG COLOR_WHITE
# endif
# endif
#else
# ifdef USE_SLANG
# define DEFAULT_FG "black"
# define DEFAULT_BG "white"
# else
# define DEFAULT_FG COLOR_BLACK
# define DEFAULT_BG COLOR_WHITE
# endif
#endif /* USE_DEFAULT_COLORS */
extern int default_fg;
extern int default_bg;
extern BOOL default_color_reset;
extern int check_color(const char *color, int the_default);
extern const char *lookup_color(int code);
#endif
extern void read_cfg(const char *cfg_filename,
const char *parent_filename,
int nesting_level,
FILE *fp0);
extern void free_lynx_cfg(void);
extern BOOLEAN have_read_cfg;
extern FILE *LYOpenCFG(const char *cfg_filename, const char
*parent_filename, const char *dft_filename);
extern int lynx_cfg_infopage(DocInfo *newdoc);
extern int lynx_compile_opts(DocInfo *newdoc);
extern int match_item_by_name(lynx_list_item_type *ptr, const char *name, int only_overriders);
extern lynx_list_item_type *find_item_by_number(lynx_list_item_type *
list_ptr,
char *number);
extern void reload_read_cfg(void); /* implemented in LYMain.c */
extern void LYSetConfigValue(const char *name, const char *value);
extern void LYSetTextDomain(void);
#ifdef __cplusplus
}
#endif
#endif /* LYREADCFG_H */
|