Page MenuHomeFreeBSD

db_command.c: use designated initializers
ClosedPublic

Authored by mhorne on Jun 23 2022, 6:04 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, May 23, 8:06 PM
Unknown Object (File)
Sat, May 23, 4:34 AM
Unknown Object (File)
Wed, May 13, 10:14 PM
Unknown Object (File)
Wed, May 13, 10:14 PM
Unknown Object (File)
Wed, May 13, 10:08 PM
Unknown Object (File)
May 3 2026, 6:46 PM
Unknown Object (File)
May 2 2026, 11:20 PM
Unknown Object (File)
Apr 28 2026, 8:22 PM

Details

Summary

Provide separate helper macros for regular commands and next-level table
commands as they are mutually exclusive. This ensures proper
initialization of each element and allows us to exclude some redundant
fields, such as specifying .more = NULL for every regular command.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable