]> git.ipfire.org Git - thirdparty/systemd.git/commit
basic: fold getopt-defs.h into proc-cmdline.c
authorZbigniew Jędrzejewski-Szmek <zbyszek@amutable.com>
Thu, 14 May 2026 17:44:22 +0000 (19:44 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@amutable.com>
Fri, 15 May 2026 07:26:48 +0000 (09:26 +0200)
commit4bfdb3c62f78a34736f6debeade4a849317f5dc7
tree84cd5106f19738719f845535ca1086452df9c20c
parent63fc9f1696a7d2032280f0bfd8729ecf2fe425e1
basic: fold getopt-defs.h into proc-cmdline.c

It'd be nice if we could not repeat the information about the option
list a second time. But I don't see a nice way to do this, since
(by design) with the macro approach, the macros must be intertwined
with the parse_argv() code. But that code in turn refers to a bunch
of variables, so lifting out the function is not immediately possible.
So I think it's best to keep the existing approach where we provide
a list of options, without additional context, and skip them using
a custom routine.
TODO.md
src/basic/getopt-defs.h [deleted file]
src/basic/proc-cmdline.c
src/core/main.c
src/shutdown/shutdown.c