mirror of
https://github.com/michaelrsweet/mxml.git
synced 2024-11-08 13:39:58 +00:00
f7fdbeb2c9
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)
105 lines
1.4 KiB
C++
105 lines
1.4 KiB
C++
/*
|
|
* 'foo_void_function()' - Do foo with bar.
|
|
*
|
|
* @deprecated@
|
|
*/
|
|
|
|
void
|
|
foo_void_function(int one, /* I - Integer */
|
|
float *two, /* O - Real number */
|
|
const char *three) /* I - String */
|
|
{
|
|
if (one)
|
|
{
|
|
puts("Hello, World!");
|
|
}
|
|
else
|
|
puts(three);
|
|
|
|
*two = 2.0f;
|
|
}
|
|
|
|
|
|
/*
|
|
* 'foo_float_function()' - Do foo with bar.
|
|
*
|
|
* @since 1.2@
|
|
*/
|
|
|
|
float /* O - Real number */
|
|
foo_float_function(int one, /* I - Integer */
|
|
const char *two) /* I - String */
|
|
{
|
|
if (one)
|
|
{
|
|
puts("Hello, World!");
|
|
}
|
|
else
|
|
puts(two);
|
|
|
|
return (2.0f);
|
|
}
|
|
|
|
|
|
/*
|
|
* 'foo_default_string()' - Do something with a defaulted string arg.
|
|
*/
|
|
|
|
int /* O - Integer value */
|
|
foo_default_string(int one, /* I - Integer */
|
|
const char *two = "2")
|
|
/* I - String */
|
|
{
|
|
if (one)
|
|
{
|
|
puts("Hello, World!");
|
|
}
|
|
else
|
|
puts(two);
|
|
|
|
return (2);
|
|
}
|
|
|
|
|
|
/*
|
|
* 'foo_default_int()' - Do something with a defaulted int arg.
|
|
*/
|
|
|
|
int /* O - Integer value */
|
|
foo_default_int(int one, /* I - Integer */
|
|
int two = 2) /* I - Integer */
|
|
{
|
|
if (one)
|
|
{
|
|
puts("Hello, World!");
|
|
}
|
|
else
|
|
puts(two);
|
|
|
|
return (2);
|
|
}
|
|
|
|
|
|
/*
|
|
* 'foo_void_func()' - Function taking no arguments.
|
|
*/
|
|
|
|
void
|
|
foo_void_func(void)
|
|
{
|
|
puts("foo_void_func()");
|
|
}
|
|
|
|
|
|
/*
|
|
* 'foo_private_func()' - Private function.
|
|
*
|
|
* @private@
|
|
*/
|
|
|
|
void
|
|
foo_private_func(void)
|
|
{
|
|
puts("foo_private_func()");
|
|
}
|