summaryrefslogtreecommitdiffstats
path: root/lib/strverscmp.c
Commit message (Collapse)AuthorAgeFilesLines
* string: import strverscmp_improved from systemdAhmad Fatoum2023-06-051-0/+165
The Boot Loader specification now references the UAPI group's version format specification[1] on how blspec entries should be sorted. In preparation of aligning barebox entry sorting with the specification, import systemd's strverscmp_improved as strverscmp and add some tests for it. The selftest is called string.c, because it indirectly tests some string mangling function and in anticipation of adding more string tests in the future. [1]: https://uapi-group.org/specifications/specs/version_format_specification/#examples Signed-off-by: Ahmad Fatoum <ahmad@a3f.at> Link: https://lore.barebox.org/20230531062853.670751-4-ahmad@a3f.at Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>