Skip to content

Commit

Permalink
translate-c: move utility functions to a separate namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Vexu committed Jun 14, 2021
1 parent ec36b82 commit 699b6cd
Show file tree
Hide file tree
Showing 8 changed files with 501 additions and 476 deletions.
1 change: 0 additions & 1 deletion lib/std/c.zig
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ const page_size = std.mem.page_size;
pub const tokenizer = @import("c/tokenizer.zig");
pub const Token = tokenizer.Token;
pub const Tokenizer = tokenizer.Tokenizer;
pub const builtins = @import("c/builtins.zig");

test {
_ = tokenizer;
Expand Down
376 changes: 0 additions & 376 deletions lib/std/meta.zig

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions lib/std/zig.zig
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ pub const ast = @import("zig/ast.zig");
pub const system = @import("zig/system.zig");
pub const CrossTarget = @import("zig/cross_target.zig").CrossTarget;

// Files needed by translate-c.
pub const c_builtins = @import("zig/c_builtins.zig");
pub const c_translation = @import("zig/c_translation.zig");

pub const SrcHash = [16]u8;

pub fn hashSrc(src: []const u8) SrcHash {
Expand Down
File renamed without changes.
Loading

0 comments on commit 699b6cd

Please sign in to comment.