diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-06-18 17:09:10 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-06-18 17:09:10 -0400 |
| commit | 4a387996311a025a021409f08a61bab9e9885987 (patch) | |
| tree | ea36d6f87fc409b0eebc8f6149f248109b87735d /lib/std/base64.zig | |
| parent | e54ed9f638c33ec3091d207978ed856d92614caf (diff) | |
| download | zig-4a387996311a025a021409f08a61bab9e9885987.tar.gz zig-4a387996311a025a021409f08a61bab9e9885987.zip | |
make file and fn_name fields of SourceLocation also null-terminated
One of the main motivating use cases for this language feature is
tracing/profiling tools, which expect null-terminated strings for these
values. Since the data is statically allocated, making them
additionally null-terminated comes at no cost.
This prevents the requirement of compile-time code to convert to
null-termination, which could increase the compilation time of
code with tracing enabled.
See #2029
Diffstat (limited to 'lib/std/base64.zig')
0 files changed, 0 insertions, 0 deletions
