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

Diff of /global/htags/src2html.c

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

revision 1.32 by shigio, Wed Apr 6 09:06:44 2005 UTC revision 1.33 by shigio, Thu Apr 7 10:20:07 2005 UTC
# Line 119  static FILE *out; Line 119  static FILE *out;
119  static FILE *in;  static FILE *in;
120    
121  STATIC_STRBUF(outbuf);  STATIC_STRBUF(outbuf);
122  static char *curpfile;  static const char *curpfile;
123  static int warned;  static int warned;
124  static int last_lineno;  static int last_lineno;
125    
# Line 131  static int last_lineno; Line 131  static int last_lineno;
131   */   */
132  static FILE *  static FILE *
133  open_input_file(file)  open_input_file(file)
134          char *file;          const char *file;
135  {  {
136          char command[MAXFILLEN];          char command[MAXFILLEN];
137          FILE *ip;          FILE *ip;
# Line 162  close_input_file(ip) Line 162  close_input_file(ip)
162   */   */
163  static FILE *  static FILE *
164  open_output_file(file)  open_output_file(file)
165          char *file;          const char *file;
166  {  {
167          char command[MAXFILLEN];          char command[MAXFILLEN];
168          FILE *op;          FILE *op;
# Line 228  echos(s) Line 228  echos(s)
228   */   */
229  char *  char *
230  fill_anchor(root, path)  fill_anchor(root, path)
231          char *root;          const char *root;
232          char *path;          const char *path;
233  {  {
234          STATIC_STRBUF(sb);          STATIC_STRBUF(sb);
235          char buf[MAXBUFLEN], *limit, *p;          char buf[MAXBUFLEN], *limit, *p;
# Line 352  char * Line 352  char *
352  tooltip(type, lno, opt)  tooltip(type, lno, opt)
353          int type;          int type;
354          int lno;          int lno;
355          char *opt;          const char *opt;
356  {  {
357          STATIC_STRBUF(sb);          STATIC_STRBUF(sb);
358    
# Line 479  put_anchor(name, type, lineno) Line 479  put_anchor(name, type, lineno)
479  void  void
480  put_include_anchor(inc, path)  put_include_anchor(inc, path)
481          struct data *inc;          struct data *inc;
482          char *path;          const char *path;
483  {  {
484          if (inc->count == 1)          if (inc->count == 1)
485                  strbuf_puts(outbuf, gen_href_begin(NULL, path2fid(strbuf_value(inc->contents)), HTML, NULL));                  strbuf_puts(outbuf, gen_href_begin(NULL, path2fid(strbuf_value(inc->contents)), HTML, NULL));
# Line 496  put_include_anchor(inc, path) Line 496  put_include_anchor(inc, path)
496   */   */
497  void  void
498  put_reserved_word(word)  put_reserved_word(word)
499          char *word;          const char *word;
500  {  {
501          strbuf_puts(outbuf, reserved_begin);          strbuf_puts(outbuf, reserved_begin);
502          strbuf_puts(outbuf, word);          strbuf_puts(outbuf, word);
# Line 507  put_reserved_word(word) Line 507  put_reserved_word(word)
507   */   */
508  void  void
509  put_macro(word)  put_macro(word)
510          char *word;          const char *word;
511  {  {
512          strbuf_puts(outbuf, sharp_begin);          strbuf_puts(outbuf, sharp_begin);
513          strbuf_puts(outbuf, word);          strbuf_puts(outbuf, word);
# Line 542  unexpected_eof(lineno) Line 542  unexpected_eof(lineno)
542   */   */
543  void  void
544  unknown_yacc_directive(word, lineno)  unknown_yacc_directive(word, lineno)
545          char *word;          const char *word;
546          int lineno;          int lineno;
547  {  {
548          warning("unknown yacc directive '%s'. [+%d %s]", word, lineno, curpfile);          warning("unknown yacc directive '%s'. [+%d %s]", word, lineno, curpfile);
# Line 554  unknown_yacc_directive(word, lineno) Line 554  unknown_yacc_directive(word, lineno)
554   */   */
555  void  void
556  missing_left(word, lineno)  missing_left(word, lineno)
557          char *word;          const char *word;
558          int lineno;          int lineno;
559  {  {
560          warning("missing left '%s'. [+%d %s]", word, lineno, curpfile);          warning("missing left '%s'. [+%d %s]", word, lineno, curpfile);
# Line 586  put_char(c) Line 586  put_char(c)
586   */   */
587  void  void
588  put_string(s)  put_string(s)
589          char *s;          const char *s;
590  {  {
591          for (; *s; s++)          for (; *s; s++)
592                  put_char(*s);                  put_char(*s);
# Line 596  put_string(s) Line 596  put_string(s)
596   */   */
597  void  void
598  put_brace(text)  put_brace(text)
599          char *text;          const char *text;
600  {  {
601          strbuf_puts(outbuf, brace_begin);          strbuf_puts(outbuf, brace_begin);
602          strbuf_puts(outbuf, text);          strbuf_puts(outbuf, text);
# Line 678  put_end_of_line(lineno) Line 678  put_end_of_line(lineno)
678   */   */
679  void  void
680  src2html(src, html, notsource)  src2html(src, html, notsource)
681          char *src;          const char *src;
682          char *html;          const char *html;
683          int notsource;          int notsource;
684  {  {
685          char indexlink[128];          char indexlink[128];
# Line 712  src2html(src, html, notsource) Line 712  src2html(src, html, notsource)
712          fputs(fill_anchor(indexlink, src), out);          fputs(fill_anchor(indexlink, src), out);
713          if (cvsweb_url) {          if (cvsweb_url) {
714                  STATIC_STRBUF(sb);                  STATIC_STRBUF(sb);
715                  char *p;                  const char *p;
716    
717                  strbuf_clear(sb);                  strbuf_clear(sb);
718                  strbuf_puts(sb, cvsweb_url);                  strbuf_puts(sb, cvsweb_url);
# Line 776  src2html(src, html, notsource) Line 776  src2html(src, html, notsource)
776           * It's source code.           * It's source code.
777           */           */
778          else {          else {
779                  char *basename;                  const char *basename;
780                  struct data *incref;                  struct data *incref;
781                  struct anchor *ancref;                  struct anchor *ancref;
782                  STATIC_STRBUF(define_index);                  STATIC_STRBUF(define_index);

Legend:
Removed from v.1.32  
changed lines
  Added in v.1.33

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