185 |
*/ |
*/ |
186 |
int ncol = 4; /* columns of line number */ |
int ncol = 4; /* columns of line number */ |
187 |
int tabs = 8; /* tab skip */ |
int tabs = 8; /* tab skip */ |
|
char stabs[8]; /* tab skip (string) */ |
|
188 |
int full_path = 0; /* file index format */ |
int full_path = 0; /* file index format */ |
189 |
int map_file = 1; /* 1: create MAP file */ |
int map_file = 1; /* 1: create MAP file */ |
190 |
const char *icon_list = NULL; /* use icon list */ |
const char *icon_list = NULL; /* use icon list */ |
320 |
/* dynamic initialization */ |
/* dynamic initialization */ |
321 |
{"@page_begin@", NULL}, |
{"@page_begin@", NULL}, |
322 |
{"@page_end@", NULL}, |
{"@page_end@", NULL}, |
|
{"@lineno_anchor@", NULL}, |
|
323 |
|
|
324 |
/* static initialization */ |
/* static initialization */ |
325 |
{"@body_begin@", body_begin}, |
{"@body_begin@", body_begin}, |
335 |
{"@global_path@", global_path}, |
{"@global_path@", global_path}, |
336 |
{"@gtags_path@", gtags_path}, |
{"@gtags_path@", gtags_path}, |
337 |
{"@normal_suffix@", normal_suffix}, |
{"@normal_suffix@", normal_suffix}, |
|
{"@tabs@", stabs}, |
|
338 |
{"@hr@", hr}, |
{"@hr@", hr}, |
339 |
{"@br@", br}, |
{"@br@", br}, |
340 |
{"@HTML@", HTML}, |
{"@HTML@", HTML}, |
347 |
|
|
348 |
tab[0].value = gen_page_begin("Result", SUBDIR); |
tab[0].value = gen_page_begin("Result", SUBDIR); |
349 |
tab[1].value = gen_page_end(); |
tab[1].value = gen_page_end(); |
|
tab[2].value = gen_name_string("L$."); |
|
350 |
/* |
/* |
351 |
* construct regular expression. |
* construct regular expression. |
352 |
*/ |
*/ |
744 |
* Create anchor stream for anchor_load(). |
* Create anchor stream for anchor_load(). |
745 |
*/ |
*/ |
746 |
anchor_stream = tmpfile(); |
anchor_stream = tmpfile(); |
747 |
gp = gfind_open(dbpath, NULL, other_files && !dynamic); |
gp = gfind_open(dbpath, NULL, other_files); |
748 |
while ((path = gfind_read(gp)) != NULL) { |
while ((path = gfind_read(gp)) != NULL) { |
749 |
if (gp->type == GPATH_OTHER) |
if (gp->type == GPATH_OTHER) |
750 |
fputc(' ', anchor_stream); |
fputc(' ', anchor_stream); |
759 |
/* |
/* |
760 |
* For each path in GPATH, convert the path into HTML file. |
* For each path in GPATH, convert the path into HTML file. |
761 |
*/ |
*/ |
762 |
gp = gfind_open(dbpath, NULL, other_files && !dynamic); |
gp = gfind_open(dbpath, NULL, other_files); |
763 |
while ((path = gfind_read(gp)) != NULL) { |
while ((path = gfind_read(gp)) != NULL) { |
764 |
char html[MAXPATHLEN]; |
char html[MAXPATHLEN]; |
765 |
|
|
1021 |
else |
else |
1022 |
tabs = n; |
tabs = n; |
1023 |
} |
} |
|
snprintf(stabs, sizeof(stabs), "%d", tabs); |
|
1024 |
strbuf_reset(sb); |
strbuf_reset(sb); |
1025 |
if (getconfs("gzipped_suffix", sb)) { |
if (getconfs("gzipped_suffix", sb)) { |
1026 |
p = strdup(strbuf_value(sb)); |
p = strdup(strbuf_value(sb)); |