#33547: Config: add a type or helper for range-restricted variables ------------------------------+-------------------------------- Reporter: nickm | Owner: (none) Type: enhancement | Status: new Priority: Medium | Milestone: Tor: 0.4.4.x-final Component: Core Tor/Tor | Version: Severity: Normal | Keywords: Actual Points: | Parent ID: Points: | Reviewer: Sponsor: | ------------------------------+-------------------------------- Very frequently we want to have a config type that is "int, restricted to some range of values". We should have a means to represent that, and thereby save a bunch of boilerplate code.
This could be done with new var_type_def_t for each range, but that could get out of hand. Probably we want a way to add more info to the config_var_t. -- Ticket URL: <https://trac.torproject.org/projects/tor/ticket/33547> Tor Bug Tracker & Wiki <https://trac.torproject.org/> The Tor Project: anonymity online
_______________________________________________ tor-bugs mailing list tor-bugs@lists.torproject.org https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs