[tor-commits] [tor/master] int_type_params_t: add documentation.
nickm at torproject.org
nickm at torproject.org
Wed Nov 6 18:13:00 UTC 2019
commit 9663ac00275c808b478474e9d6aa3a194612424f
Author: Nick Mathewson <nickm at torproject.org>
Date: Wed Nov 6 13:07:13 2019 -0500
int_type_params_t: add documentation.
---
src/lib/confmgt/type_defs.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/lib/confmgt/type_defs.c b/src/lib/confmgt/type_defs.c
index ed930fb02..f39f1c3d8 100644
--- a/src/lib/confmgt/type_defs.c
+++ b/src/lib/confmgt/type_defs.c
@@ -90,9 +90,12 @@ static const var_type_fns_t string_fns = {
// These types are implemented as int, possibly with a restricted range.
/////
+/**
+ * Parameters for parsing an integer type.
+ **/
typedef struct int_type_params_t {
- int minval;
- int maxval;
+ int minval; /**< Lowest allowed value */
+ int maxval; /**< Highest allowed value */
} int_parse_params_t;
static const int_parse_params_t INT_PARSE_UNRESTRICTED = {
More information about the tor-commits
mailing list