ch = getc (state->in_file);
while (ch == ' ' || ch == '\n');
- /* Put back the non-whitespace character. */
+ /* Output the open-paren we just read. */
+ put_char (ch, state);
+
+ /* Skip the function name and replace it with `fn'. */
+ do
+ ch = getc (state->in_file);
+ while (ch != ' ' && ch != ')');
+ put_char ('f', state);
+ put_char ('n', state);
+
+ /* Put back the last character. */
ungetc (ch, state->in_file);
}
}
FILE *infile;
int printflag;
int *saw_usage;
+ int comment;
{
register int c;
struct rcsoc_state state;
int just_spaced = 0;
int need_space = 1;
- fprintf (out, "(%s", func);
+ fprintf (out, "(fn");
if (*buf == '(')
++buf;
fprintf (outfile, "\n\n");
write_c_args (outfile, buf, argbuf, minargs, maxargs);
}
+ else if (defunflag && maxargs == -1 && !saw_usage)
+ /* The DOC should provide the usage form. */
+ fprintf (stderr, "Missing `usage' for function `%s'.\n", buf);
}
}
eof: