aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/verify_value_string_arrays_are_terminated.py
AgeCommit message (Collapse)AuthorFilesLines
2019-12-17verify_*.py: Ignore UTF-8 decoding errorsHarald Welte1-1/+1
Some of our source files are inherited from other sources, particularly for microcontroller firmware projects. We cannot assume they're all clean UTF-8. Let's ignore any decoder errors when verifying log statements and value_string arrays. Closes: OS#4334 Change-Id: I1e19f4bc6bee46481c6ea743e8334bd4485909be
2018-07-05verify_value_string_arrays_are_terminated.py: allow dir args and no argsNeels Hofmeyr1-2/+18
So far we call with a $(find . -name "*.[hc]") argument list, which might become too long at some point. Rather include dir walking in the script itself and allow passing dir arguments as well. This is backwards compatible, calling with above file args still works. Change-Id: I36456383906b6295c798b82aa131dda21f8efc02
2018-06-16verify_value_string_arrays_are_terminated.py: allow terminating with '{}'Neels Hofmeyr1-1/+1
Writing '{ 0, NULL }' is actually identical to just '{}', and that's what I use these days in all sorts of other contexts. So allow this notation as well in the C code grepper. Change-Id: I0822d2d997dccbfb31316953a7b6024c317d92cf
2017-08-18Add value string termination check from libosmocoreMax1-0/+33
The script by Neels Hofmeyr <nhofmeyr@sysmocom.de> has actually nothing to do with libosmocore itself - it's a generic build-time check used by jenkins so it should be part of this repo to avoid extra checkout of libosmocore just for this script. Change-Id: I079218b61f512975ec5bfc7dc23503ec369cbb5a