Skip to content
Permalink
Browse files
Replace compute_helper.c with compute_helper.zig
  • Loading branch information
tiehuis committed Jul 19, 2017
1 parent 8a8f571 commit e24d3141956521f7c950ce8ff8a48e6210fe2e4e
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
@@ -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",
};

@@ -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

This file was deleted.

This file was deleted.

@@ -0,0 +1,4 @@
pub fn compute_helper(a: u8) -> u8
{
a + 1
}

0 comments on commit e24d314

Please sign in to comment.