Improve portability of telemetry code to allow it to be compiled by msvc
unconditionally.
Remove use of ranged based initializer (a gcc extension). Instead initialize
using for loops over [0..9] [A..Z] [a..z] [_/] on first call.
v3:
* Move int index declaration to top of function
* Fix typo 'Z' -> 'z' in last for loop
v2:
* Initialize valid character array using for loop instead of explicit
initialization of each element.
* Drop patch removing VLAs, in a separate series a conditionally compiled
change will be introduced.
Tyler Retzlaff (1):
telemetry: use portable syntax to initialize array
lib/telemetry/telemetry_data.c | 22 +++++++++++++++-------
1 file changed, 15 insertions(+), 7 deletions(-)
--
1.8.3.1