Commit f7fdbeb2 authored by Michael R Sweet's avatar Michael R Sweet

Fix support for @private@, and make it universal for all things.

mxmldoc.c:
    - find_public(): Added
    - scan_file(): Revert previous @private@ changes, clear
      typedefnode after we assign a comment, and remove
      unnecessary @private@ comment check.
    - write_documentation(): Use find_public() instead of
      mxmlFindElement() when enumerating public types, structs,
      etc.

test/dotest.sh:
    - Run "make mxmldoc-static" so that the test uses a current
      executable.

test/function.cxx:
    - Add @private@ function.

test/struct.cxx:
    - Add @private@ struct.

test/type.cxx:
    - Added (simple typedef types)
parent 73598984
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
#!/bin/sh
(cd ..; make mxmldoc-static)
if test $# -gt 0; then
files=$*
......
......@@ -89,3 +89,16 @@ foo_void_func(void)
{
puts("foo_void_func()");
}
/*
* 'foo_private_func()' - Private function.
*
* @private@
*/
void
foo_private_func(void)
{
puts("foo_private_func()");
}
......@@ -46,3 +46,9 @@ foo_s::foo_s(float f, int b)
foo_s::~foo_s()
{
}
typedef struct foo_private_s /* @private@ */
{
int a; /* Value of "a" */
char b[255]; /* Value of "b" */
} foo_private_t;
typedef int foo_simple_t; /* Simple integer type */
typedef int foo_simple_private_t; /* @private@ */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment