cconfig: parsing of strings using printf style format #17

Open
opened 2019-09-28 00:18:59 +03:00 by icex2 · 0 comments
icex2 commented 2019-09-28 00:18:59 +03:00 (Migrated from github.com)

To reduce boiler plate code, consider using a printf style format for parsing the cconfig values to arbitrary structures, e.g. vid + pid “XXXX:YYYY” to two uint16s. Add helpers to easily check ranges of numbers and improve error handling on invalid parameters.

In this context, add support/helpers for converting config values to unsigned numbers with range checks, e.g. uint16 and uint32.

To reduce boiler plate code, consider using a printf style format for parsing the cconfig values to arbitrary structures, e.g. vid + pid “XXXX:YYYY” to two uint16s. Add helpers to easily check ranges of numbers and improve error handling on invalid parameters. In this context, add support/helpers for converting config values to unsigned numbers with range checks, e.g. uint16 and uint32.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Max/djhackersdev_bemanitools#17