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

Diff of /global/htags/fileindex.c

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

revision 1.19 by shigio, Wed Mar 2 10:57:17 2005 UTC revision 1.20 by shigio, Fri Mar 18 13:34:01 2005 UTC
# Line 679  makefileindex(file, files) Line 679  makefileindex(file, files)
679                                          fprintf(STDOUT, "%s\n", br);                                          fprintf(STDOUT, "%s\n", br);
680                                  else                                  else
681                                          fprintf(STDOUT, "%s\n", list_end);                                          fprintf(STDOUT, "%s\n", list_end);
682                                  fprintf(STDOUT, "<A HREF=%s TITLE='Parent Directory'>", parent);                                  fprintf(STDOUT, "<a href='%s' title='Parent Directory'>", parent);
683                                  if (icon_list)                                  if (icon_list)
684                                          fprintf(STDOUT, "<IMG SRC=../icons/%s.%s ALT='[..]' %s>", back_icon, icon_suffix, icon_spec);                                          fprintf(STDOUT, "<img src='../icons/%s.%s' alt='[..]' %s>", back_icon, icon_suffix, icon_spec);
685                                  else                                  else
686                                          fprintf(STDOUT, "[..]");                                          fprintf(STDOUT, "[..]");
687                                  fprintf(STDOUT, "</A>\n");                                  fprintf(STDOUT, "</a>\n");
688                                  fprintf(STDOUT, "%s\n", body_end);                                  fprintf(STDOUT, "%s\n", body_end);
689                                  fprintf(STDOUT, "%s\n", html_end);                                  fprintf(STDOUT, "%s\n", html_end);
690                                  path = pop_stack(fdstack);                                        path = pop_stack(fdstack);      
# Line 708  makefileindex(file, files) Line 708  makefileindex(file, files)
708                                  if (!no_order_list)                                  if (!no_order_list)
709                                          strbuf_puts(sb, list_item);                                          strbuf_puts(sb, list_item);
710    
711                                  strbuf_sprintf(sb, "<A HREF=%s%s TITLE='%s/'>",                                  strbuf_sprintf(sb, "<a href='%s%s' title='%s/'>",
712                                          count_stack(dirstack) == 1 ? "files/" : "",                                          count_stack(dirstack) == 1 ? "files/" : "",
713                                          path2url(path),                                          path2url(path),
714                                          path);                                          path);
715                                  if (icon_list) {                                  if (icon_list) {
716                                          strbuf_sprintf(sb, "<IMG SRC=%sicons/%s.%s ALT=[%s/] HSPACE=3 %s>",                                          strbuf_sprintf(sb, "<img src='%sicons/%s.%s' alt='[%s/]' hspace=3 %s>",
717                                                  count_stack(dirstack) == 1 ? "" : "../", dir_icon, icon_suffix, path, icon_spec);                                                  count_stack(dirstack) == 1 ? "" : "../", dir_icon, icon_suffix, path, icon_spec);
718                                  }                                  }
719                                  strbuf_sprintf(sb, "%s/</A>\n", last);                                  strbuf_sprintf(sb, "%s/</a>\n", last);
720                                  if (no_order_list)                                  if (no_order_list)
721                                          strbuf_puts(sb, br);                                          strbuf_puts(sb, br);
722                                  if (count_stack(dirstack) == 1)                                  if (count_stack(dirstack) == 1)
# Line 732  makefileindex(file, files) Line 732  makefileindex(file, files)
732                                  strbuf_putc(sb, '/');                                  strbuf_putc(sb, '/');
733                                  fprintf(STDOUT, set_header(strbuf_value(sb)));                                  fprintf(STDOUT, set_header(strbuf_value(sb)));
734                                  fprintf(STDOUT, "%s\n", body_begin);                                  fprintf(STDOUT, "%s\n", body_begin);
735                                  fprintf(STDOUT, "<H2>");                                  fprintf(STDOUT, "<h2>");
736                                  fprintf(STDOUT, "<A HREF=%s>root</A>/", indexlink);                                  fprintf(STDOUT, "<a href='%s'>root</a>/", indexlink);
737                                  {                                  {
738                                          struct dirstack *p = make_stack("tmp");                                          struct dirstack *p = make_stack("tmp");
739                                          char *s;                                          char *s;
# Line 743  makefileindex(file, files) Line 743  makefileindex(file, files)
743                                                  push_stack(p, s);                                                  push_stack(p, s);
744                                                  anchor = count_stack(p) < count_stack(dirstack) ? 1 : 0;                                                  anchor = count_stack(p) < count_stack(dirstack) ? 1 : 0;
745                                                  if (anchor)                                                  if (anchor)
746                                                          fprintf(STDOUT, "<A HREF=%s>", path2url(join_stack(p)));                                                          fprintf(STDOUT, "<a href='%s'>", path2url(join_stack(p)));
747                                                  fprintf(STDOUT, s);                                                  fprintf(STDOUT, s);
748                                                  if (anchor)                                                  if (anchor)
749                                                          fprintf(STDOUT, "</A>");                                                          fprintf(STDOUT, "</a>");
750                                                  fprintf(STDOUT, "/");                                                  fprintf(STDOUT, "/");
751                                          }                                          }
752                                          delete_stack(p);                                          delete_stack(p);
753                                  }                                  }
754                                  fprintf(STDOUT, "</H2>\n");                                  fprintf(STDOUT, "</h2>\n");
755                                  fprintf(STDOUT, "<A HREF=%s TITLE='Parent Directory'>", parent);                                  fprintf(STDOUT, "<a href='%s' title='Parent Directory'>", parent);
756                                  if (icon_list)                                  if (icon_list)
757                                          fprintf(STDOUT, "<IMG SRC=../icons/%s.%s ALT='[..]' %s>", back_icon, icon_suffix, icon_spec);                                          fprintf(STDOUT, "<img src='../icons/%s.%s' alt='[..]' %s>", back_icon, icon_suffix, icon_spec);
758                                  else                                  else
759                                          fprintf(STDOUT, "[..]");                                          fprintf(STDOUT, "[..]");
760                                  fprintf(STDOUT, "</A>\n");                                  fprintf(STDOUT, "</a>\n");
761                                  if (!no_order_list)                                  if (!no_order_list)
762                                          fprintf(STDOUT, "%s\n", list_begin);                                          fprintf(STDOUT, "%s\n", list_begin);
763                                  else                                  else
# Line 775  makefileindex(file, files) Line 775  makefileindex(file, files)
775                  if (regexec(&is_include_file, _, 0, 0, 0) == 0)                  if (regexec(&is_include_file, _, 0, 0, 0) == 0)
776                          put_inc(fname, _, count);                          put_inc(fname, _, count);
777                  strbuf_reset(sb);                  strbuf_reset(sb);
778                  if (!no_order_list) {                  if (!no_order_list)
779                          strbuf_puts(sb, list_item);                          strbuf_puts(sb, list_item);
780                          strbuf_putc(sb, '\n');                  strbuf_puts(sb, "<a href='");
                 }  
                 strbuf_puts(sb, "<A HREF=");  
781                  if (notsource && dynamic) {                  if (notsource && dynamic) {
782                          if (!(*action == '/' || count_stack(dirstack) == 0))                          if (!(*action == '/' || count_stack(dirstack) == 0))
783                                  strbuf_puts(sb, "../");                                  strbuf_puts(sb, "../");
# Line 790  makefileindex(file, files) Line 788  makefileindex(file, files)
788                                  strbuf_puts(sb, "../");                                  strbuf_puts(sb, "../");
789                          strbuf_sprintf(sb, "%s/%s", SRCS, path2url(_));                          strbuf_sprintf(sb, "%s/%s", SRCS, path2url(_));
790                  }                  }
791                  strbuf_sprintf(sb, " TARGET=%s TITLE='%s'>", target, _);                  strbuf_sprintf(sb, "' target='%s' title='%s'>", target, _);
792                  if (icon_list) {                  if (icon_list) {
793                          const char *lang, *suffix, *text_icon;                          const char *lang, *suffix, *text_icon;
794    
# Line 801  makefileindex(file, files) Line 799  makefileindex(file, files)
799                                  text_icon = c_icon;                                  text_icon = c_icon;
800                          else                          else
801                                  text_icon = file_icon;                                  text_icon = file_icon;
802                          strbuf_puts(sb, "<IMG SRC=");                          strbuf_puts(sb, "<img src='");
803                          if (count_stack(dirstack))                          if (count_stack(dirstack))
804                                  strbuf_puts(sb, "../");                                  strbuf_puts(sb, "../");
805                          strbuf_sprintf(sb, "icons/%s.%s ALT=[%s] HSPACE=3 %s>",                          strbuf_sprintf(sb, "icons/%s.%s' alt='[%s]' hspace='3' %s>",
806                                  text_icon, icon_suffix, _, icon_spec);                                  text_icon, icon_suffix, _, icon_spec);
807                  }                  }
808                  if (full_path) {                  if (full_path) {
# Line 817  makefileindex(file, files) Line 815  makefileindex(file, files)
815                                  last = _;                                  last = _;
816                          strbuf_puts(sb, last);                          strbuf_puts(sb, last);
817                  }                  }
818                  strbuf_puts(sb, "</A>\n");                  strbuf_puts(sb, "</a>\n");
819                  if (no_order_list)                  if (no_order_list)
820                          strbuf_sprintf(sb, "%s\n", br);                          strbuf_sprintf(sb, "%s\n", br);
821                  if (map_file)                  if (map_file)
# Line 840  makefileindex(file, files) Line 838  makefileindex(file, files)
838                          fprintf(STDOUT, "%s\n", br);                          fprintf(STDOUT, "%s\n", br);
839                  else                  else
840                          fprintf(STDOUT, "%s\n", list_end);                          fprintf(STDOUT, "%s\n", list_end);
841                  fprintf(STDOUT, "<A HREF=%s TITLE='Parent Directory'>", parent);                  fprintf(STDOUT, "<a href='%s' title='Parent Directory'>", parent);
842                  if (icon_list)                  if (icon_list)
843                          fprintf(STDOUT, "<IMG SRC=../icons/%s.%s ALT='[..]' %s>", back_icon, icon_suffix, icon_spec);                          fprintf(STDOUT, "<img src='../icons/%s.%s' alt='[..]' %s>", back_icon, icon_suffix, icon_spec);
844                  else                  else
845                          fprintf(STDOUT, "[..]");                          fprintf(STDOUT, "[..]");
846                  fprintf(STDOUT, "</A>\n");                  fprintf(STDOUT, "</a>\n");
847                  fprintf(STDOUT, "%s\n", body_end);                  fprintf(STDOUT, "%s\n", body_end);
848                  fprintf(STDOUT, "%s\n", html_end);                  fprintf(STDOUT, "%s\n", html_end);
849                  close_file_queue(pop_stack(fdstack));                  close_file_queue(pop_stack(fdstack));
# Line 955  makeincludeindex() Line 953  makeincludeindex()
953                                  int count = inc->count;                                  int count = inc->count;
954    
955                                  for (; count; filename += strlen(filename) + 1, count--)                                  for (; count; filename += strlen(filename) + 1, count--)
956                                          fprintf(INCLUDE, "<A HREF=../%s/%s TARGET=%s>%s</A>\n", SRCS, path2url(filename), target, filename);                                          fprintf(INCLUDE, "<a href='../%s/%s' target='%s'>%s</a>\n", SRCS, path2url(filename), target, filename);
957                          }                          }
958                          fprintf(INCLUDE, "%s\n", verbatim_end);                          fprintf(INCLUDE, "%s\n", verbatim_end);
959                          fprintf(INCLUDE, "%s\n", body_end);                          fprintf(INCLUDE, "%s\n", body_end);

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20

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