zig/lib/std/os/uefi
Andrew Kelley a31748b29e std.os.uefi: reorganize namespaces
This is a breaking change.

This commit applies the following rules to std.os.uefi:
* avoid redundant names in the namespace such as "protocol.FooProtocol"
* don't initialize struct field to undefined. do that at the
  initialization site if you want that, or create a named constant that
  sets all the fields to undefined.
* avoid the word "data", "info", "context", "state", "details", or
  "config" in the type name, especially if a word from that category is
  already in the type name.
* embrace tree structure

After following these rules, `usingnamespace` disappeared naturally.
This commit eliminates 26/53 (49%) instances of `usingnamespace` in the
standard library. All these uses were due to not understanding how
to properly use namespaces.

I did not test this commit. The standard library UEFI code is
experimental and pull requests have been accepted with minimal vetting.
Users of std.os.uefi will need to submit follow-up pull requests to fix
up whatever regressions this commit introduces, this time without
abusing namespaces (pun intended).
2023-08-24 22:38:47 -07:00
..
protocol std.os.uefi: reorganize namespaces 2023-08-24 22:38:47 -07:00
tables std.os.uefi: reorganize namespaces 2023-08-24 22:38:47 -07:00
device_path.zig std.os.uefi: reorganize namespaces 2023-08-24 22:38:47 -07:00
hii.zig std.os.uefi: reorganize namespaces 2023-08-24 22:38:47 -07:00
pool_allocator.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
protocol.zig std.os.uefi: reorganize namespaces 2023-08-24 22:38:47 -07:00
status.zig std/os/uefi: Don't treat efi status warnings as errors 2022-01-16 03:50:50 -05:00
tables.zig change uefi packed structs to new integer backed syntax (#13173) 2022-10-30 15:08:32 -04:00