Permalink
Browse files

Replace compute_helper.c with compute_helper.zig

  • Loading branch information...
tiehuis committed Jul 19, 2017
1 parent 8a8f571 commit e24d3141956521f7c950ce8ff8a48e6210fe2e4e
Showing with 6 additions and 7 deletions.
  1. +1 −1 build.zig
  2. +1 −1 compute.zig
  3. +0 −4 compute_helper.c
  4. +0 −1 compute_helper.h
  5. +4 −0 compute_helper.zig
View
@@ -9,7 +9,6 @@ pub fn build(b: &Builder) {
});
const source_files = [][]const u8 {
"compute_helper.c",
"main.c",
};
@@ -19,6 +18,7 @@ pub fn build(b: &Builder) {
const zig_source_files = [][]const u8 {
"compute.zig",
"compute_helper.zig",
"display.zig",
};
View
@@ -1,4 +1,4 @@
pub use @cImport(@cInclude("compute_helper.h"));
pub use @import("compute_helper.zig");
export fn compute(a: u8) -> u8 {
compute_helper(a) + 5
View
@@ -1,4 +0,0 @@
char compute_helper(char a)
{
return a + 1;
}
View
@@ -1 +0,0 @@
char compute_helper(char a);
View
@@ -0,0 +1,4 @@
pub fn compute_helper(a: u8) -> u8
{
a + 1
}

0 comments on commit e24d314

Please sign in to comment.