Opened 8 months ago

Last modified 5 months ago

#33547 new enhancement

Config: add a type or helper for range-restricted variables

Reported by: nickm Owned by:
Priority: Medium Milestone: Tor: unspecified
Component: Core Tor/Tor Version:
Severity: Normal Keywords: 044-deferred
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

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.

Child Tickets

Change History (1)

comment:1 Changed 5 months ago by nickm

Keywords: 044-deferred added
Milestone: Tor: 0.4.4.x-finalTor: unspecified

Bulk-remove tickets from 0.4.4. Add the 044-deferred label to them.

Note: See TracTickets for help on using tickets.