Submitted by Rajesh Shenoy on Mon, 15 Nov 1999
13:30:57 -0500
Hi Tom,
Thanks for your reply. Unfortunately, I dont have
classes in my C code. So I have been putting
together a simpler version using a template I
developed from an example in the mfw directory. I
just have a @FILE@.html.tmpl and a
index.html.tmpl. This index.html.tmpl uses
{foreach FILE}
<A HREF = "{name @}.html} </A>{name @}{templ}
{next}
The @FILE@.html.tmpl uses
{foreach func}
<DT>{type}<B>{name}</B>({args}) {if
const}const{endif}{if throws} <FONT
COLOR="red"> throws {throwclass}({throwargs})
</FONT>{endif};
<DD><FONT FACE="Times" SIZE=3>
{if brief} <B>{brief}</B> <br> {endif}
{if detail} {detail} <br> {endif}
</FONT>
<br>
{next}
I also have similar expressions for {foreach
global} and {foreach typedef} taken out of
mfw/html_templates/index.html.tmpl file. However I
have some bizzare behaviour with this when I run
it on both my .c files and .h files My .h files
contains only exported function declarations and
.c contains internally used function (non-exported
or static) function declarations and definitions
of both exported and static functions.
The problems I have are with the function
declarations However, for the function
declarations - ie of the form
/*: foo */
void foo(int foo1);
The output comes as a global variable. If I use
/*:foo */
void foo(int foo1){};
it comes up as a func variable, but it comes
twice!
I also dont have any way to indicate the include
files used in the code. The undocumented "hfile"
option (an example of which is given in the mfw
directory) does not seem to work with C code style
comments!
Test cases for functions parsed as globals