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 |
|
|
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; |
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; |
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; |
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 |
|
|
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)); |
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); |
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); |
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); |
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); |
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); |
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); |
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]; |
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); |
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); |