chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
doxygen: add some missing docstrings.
[disorder]
/
cgi
/
options.c
diff --git
a/cgi/options.c
b/cgi/options.c
index fca5801caa3024d2acb99df61b095ade57afcaa7..5517c76b05077d5914e4110f1080fd3f3738f3a2 100644
(file)
--- a/
cgi/options.c
+++ b/
cgi/options.c
@@
-58,9
+58,15
@@
static void option__columns(int nvec,
hash_add(columns, vec[0], &c, HASH_INSERT_OR_REPLACE);
}
hash_add(columns, vec[0], &c, HASH_INSERT_OR_REPLACE);
}
+/** @brief Definition of an option command */
static struct option {
static struct option {
+ /** @brief Command name */
const char *name;
const char *name;
- int minargs, maxargs;
+ /** @brief Minimum number of arguments */
+ int minargs;
+ /** @brief Maximum number of arguments */
+ int maxargs;
+ /** @brief Command handler */
void (*handler)(int nvec, char **vec);
} options[] = {
{ "columns", 1, INT_MAX, option__columns },
void (*handler)(int nvec, char **vec);
} options[] = {
{ "columns", 1, INT_MAX, option__columns },