]> git.ipfire.org Git - thirdparty/systemd.git/commit
compare: rework table in parse_compare_operator() to be array of structs
authorLennart Poettering <lennart@poettering.net>
Fri, 26 Aug 2022 15:08:37 +0000 (17:08 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 1 Sep 2022 21:16:10 +0000 (23:16 +0200)
commit38c09fa008b6c02fb01eb6b5b2d9931f04ff890c
treef7e3c10f2b0b9080e67ac194865b45b094b0547e
parent8daa674090d47320cd7ed6abb72dfdc0c4aa60f3
compare: rework table in parse_compare_operator() to be array of structs

Let's change the lookup table to contain pairs of operator/strings,
instead of being indexed by operator.

The table isn't dense anymore, and this allows us to add alias strings
sooner or later.
src/shared/compare-operator.c