Hey guys.
I’m trying to help leiradel to document the cheevos.c, but I would like to know if there’s some preference for commenting style.
When I implemented the fill_str_dated_filename() function in file_path.c I used the comment style I found in the same file (as you can see here and on the snippet below).
/**
* fill_str_dated_filename:
* @out_filename : output filename
* @in_str : input string
* @ext : extension of output filename
* @size : buffer size of output filename
*
* Creates a 'dated' filename prefixed by the string @in_str, and
* concatenates extension (@ext) to it.
*
* E.g.:
* out_filename = "RetroArch-{year}{month}{day}-{Hour}{Minute}{Second}.{@ext}"
**/
void fill_str_dated_filename(char *out_filename,
const char *in_str, const char *ext, size_t size)
{
...
But I noticed that this isn’t used in other parts of RetroArch code.
Then, I have some questions about the RetroArch commenting style:
-
Is there some tool to autogenerate docs when the comments are written using the style shown above?
-
Is there some coding style guide for the libretro/RetroArch?
Cheers!