diff options
| author | Ryan Liptak <squeek502@hotmail.com> | 2022-01-16 20:11:08 -0800 |
|---|---|---|
| committer | Jonathan Marler <johnnymarler@gmail.com> | 2022-05-11 18:40:53 -0600 |
| commit | 15d5988e692c182892a118115fd7025048e06c29 (patch) | |
| tree | 8181463a2a8983373a0b8b53f82caae785f0b5ee /lib/std/build/CheckFileStep.zig | |
| parent | d383b940c2e9c9d0f2e8ef7607b38b7a74021b47 (diff) | |
| download | zig-15d5988e692c182892a118115fd7025048e06c29.tar.gz zig-15d5988e692c182892a118115fd7025048e06c29.zip | |
Add `process.EnvMap`, a platform-independent environment variable map
EnvMap provides the same API as the previously used BufMap (besides `putMove` and `getPtr`), so usage sites of `getEnvMap` can usually remain unchanged.
For non-Windows, EnvMap is a wrapper around BufMap. On Windows, it uses a new EnvMapWindows to handle some Windows-specific behavior:
- Lookups use Unicode-aware case insensitivity (but `get` cannot return an error because EnvMapWindows has an internal buffer to use for lookup conversions)
- Canonical names are returned when iterating the EnvMap
Fixes #10561, closes #4603
Diffstat (limited to 'lib/std/build/CheckFileStep.zig')
0 files changed, 0 insertions, 0 deletions
