/[global]/global/htags/htags.c
ViewVC logotype

Diff of /global/htags/htags.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.81 by shigio, Tue Nov 8 06:41:31 2005 UTC revision 1.82 by h-iwamoto, Tue Nov 8 17:22:43 2005 UTC
# Line 185  const char *file_icon = "text"; Line 185  const char *file_icon = "text";
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                */
# Line 321  generate_file(const char *dist, const ch Line 320  generate_file(const char *dist, const ch
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},
# Line 337  generate_file(const char *dist, const ch Line 335  generate_file(const char *dist, const ch
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},
# Line 350  generate_file(const char *dist, const ch Line 347  generate_file(const char *dist, const ch
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           */           */
# Line 748  makehtml(int total) Line 744  makehtml(int total)
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);
# Line 763  makehtml(int total) Line 759  makehtml(int total)
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    
# Line 1025  configuration(int argc, char **argv) Line 1021  configuration(int argc, char **argv)
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));

Legend:
Removed from v.1.81  
changed lines
  Added in v.1.82

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26