diff options
author | Camil Staps | 2018-01-07 17:12:34 +0100 |
---|---|---|
committer | Camil Staps | 2018-01-07 17:12:34 +0100 |
commit | 8578faf533ef5ed200b722ebc8551f32ace3a5cf (patch) | |
tree | e149a38e0ac89666b41b72f3e5b9f02374867fab /assignment-13/uFPL/Bootstrap.icl | |
parent | Ignore .ino (diff) |
Cleanup code
Diffstat (limited to 'assignment-13/uFPL/Bootstrap.icl')
-rw-r--r-- | assignment-13/uFPL/Bootstrap.icl | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/assignment-13/uFPL/Bootstrap.icl b/assignment-13/uFPL/Bootstrap.icl index 1ca75ac..4429cf5 100644 --- a/assignment-13/uFPL/Bootstrap.icl +++ b/assignment-13/uFPL/Bootstrap.icl @@ -7,7 +7,6 @@ import StdString from Data.Func import $ -import uFPL.Arduino import uFPL.C import uFPL @@ -127,9 +126,9 @@ where "bool " +++ short +++ "dirty(struct " +++ short +++ "share *share) {" +: " if (share->dirty) {" +: " share->dirty--;" +: - " return 1;" +: + " return true;" +: " }" +: - " return 0;" +: + " return false;" +: "}" instance zero CProg where zero = {bootstrap=rts, globals=sharesMap gen predefShares, funs=[]} |