aboutsummaryrefslogtreecommitdiff
path: root/lib/std/c
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-04-16 05:42:25 -0400
committerGitHub <noreply@github.com>2022-04-16 05:42:25 -0400
commit578a792b33d1f26c839cd6c77eaa2680601caaf2 (patch)
tree1378c449be224c8b81fcb46ca4b1ad9097588c9b /lib/std/c
parent3bfb1616db0883e6145a1fe1844eee3038bd4ca1 (diff)
parent101aac92c258af9f25520c36f06b2ce8335d7f9a (diff)
downloadzig-578a792b33d1f26c839cd6c77eaa2680601caaf2.tar.gz
zig-578a792b33d1f26c839cd6c77eaa2680601caaf2.zip
Merge pull request #11442 from Vexu/stage3
Make self hosted compiler capable of building itself
Diffstat (limited to 'lib/std/c')
-rw-r--r--lib/std/c/tokenizer.zig6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/std/c/tokenizer.zig b/lib/std/c/tokenizer.zig
index 97d62d3803..de8b1a429c 100644
--- a/lib/std/c/tokenizer.zig
+++ b/lib/std/c/tokenizer.zig
@@ -126,7 +126,11 @@ pub const Token = struct {
Keyword_error,
Keyword_pragma,
- pub fn symbol(id: std.meta.Tag(Id)) []const u8 {
+ pub fn symbol(id: Id) []const u8 {
+ return symbolName(id);
+ }
+
+ pub fn symbolName(id: std.meta.Tag(Id)) []const u8 {
return switch (id) {
.Invalid => "Invalid",
.Eof => "Eof",