/* */
1 /*
2 * Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2011
3 * Tama Communications Corporation
4 *
5 * This file is part of GNU GLOBAL.
6 *
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 */
20 #ifndef _HTAGS_H_
21 #define _HTAGS_H_
22
23 #include "gparam.h"
24 #include "gtagsop.h"
25
26 #if defined(_WIN32) || defined(__DJGPP__)
27 #define W32 1
28 #else
29 #define W32 0
30 #endif
31 #define SITEKEYDIRNAME "sitekeys"
32
33 /*
34 * dumb CMD.EXE requires the entire popen command to be quoted
35 */
36 #if defined(_WIN32) && !defined(__CYGWIN__)
37 #define PQUOTE "\""
38 #else
39 #define PQUOTE
40 #endif
41
42 /**
43 * @name definition_header
44 */
45 /** @{ */
46 #define NO_HEADER 0
47 #define BEFORE_HEADER 1
48 #define RIGHT_HEADER 2
49 #define AFTER_HEADER 3
50 /** @} */
51
52 /**
53 * @name Directory names.
54 */
55 /** @{ */
56 #define SRCS "S"
57 #define DEFS "D"
58 #define REFS "R"
59 #define INCS "I"
60 #define INCREFS "J"
61 #define SYMS "Y"
62 /** @} */
63
64 extern int w32;
65 extern const char *www;
66 extern int html_count;
67 extern int sep;
68 extern const char *save_config;
69 extern const char *save_argv;
70
71 extern char cwdpath[MAXPATHLEN];
72 extern char dbpath[MAXPATHLEN];
73 extern char distpath[MAXPATHLEN];
74 extern char gtagsconf[MAXPATHLEN];
75
76 extern char gtags_path[MAXFILLEN];
77 extern char global_path[MAXFILLEN];
78 extern int gtags_exist[GTAGLIM];
79 extern const char *null_device;
80 extern const char *tmpdir;
81 extern const char *tree_view_type;
82 extern const char *sitekey;
83
84 extern int aflag;
85 extern int cflag;
86 extern int fflag;
87 extern int Fflag;
88 extern int gflag;
89 extern int Iflag;
90 extern int nflag;
91 extern int Sflag;
92 extern int qflag;
93 extern int vflag;
94 extern int wflag;
95 extern int debug;
96
97 extern int show_help;
98 extern int show_version;
99 extern int caution;
100 extern int auto_completion;
101 extern int tree_view;
102 extern int fixed_guide;
103 extern int dynamic;
104 extern int symbol;
105 extern int statistics;
106
107 extern int no_order_list;
108 extern int other_files;
109 extern int enable_grep;
110 extern int enable_idutils;
111 extern int enable_xhtml;
112
113 extern const char *main_func;
114 extern const char *cvsweb_url;
115 extern int use_cvs_module;
116 extern const char *cvsweb_cvsroot;
117 extern const char *gtagslabel;
118 extern const char *title;
119 extern const char *xhtml_version;
120 extern const char *insert_header;
121 extern const char *insert_footer;
122 extern const char *html_header;
123 extern const char *jscode;
124
125 extern const char *title_define_index;
126 extern const char *title_file_index;
127 extern const char *title_call_tree;
128 extern const char *title_callee_tree;
129 extern const char *title_included_from;
130
131 extern const char *anchor_label[];
132 extern const char *anchor_icons[];
133 extern const char *anchor_comment[];
134 extern const char *anchor_msg[];
135 extern const char *back_icon;
136 extern const char *dir_icon;
137 extern const char *c_icon;
138 extern const char *file_icon;
139
140 extern int ncol;
141 extern int tabs;
142 extern int flist_fields;
143 extern int full_path;
144 extern int map_file;
145 extern int filemap_file;
146 extern const char *icon_suffix;
147 extern const char *icon_spec;
148 extern const char *prolog_script;
149 extern const char *epilog_script;
150 extern int show_position;
151 extern int table_list;
152 extern int table_flist;
153 extern int colorize_warned_line;
154 extern const char *script_alias;
155 extern const char *gzipped_suffix;
156 extern const char *normal_suffix;
157 extern const char *HTML;
158 extern const char *action;
159 extern int definition_header;
160 extern const char *htags_options;
161 extern const char *include_file_suffixes;
162 extern int grtags_is_empty;
163
164 #endif /* _HTAGS_H_ */
/* */