Skip to content

Commit

Permalink
ES: TEMP fix in PrimOpsSpec
Browse files Browse the repository at this point in the history
  • Loading branch information
Anabra committed Feb 17, 2020
1 parent f76a0a3 commit d8480f7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions grin/prim_ops.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#ifndef PRIMOPS_H
#define PRIMOPS_H

#include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>
Expand Down Expand Up @@ -34,3 +37,5 @@ int64_t _prim_str_int(struct string* p1);
float _prim_int_float(int64_t p1);
struct string* _prim_float_string(float p1);
int64_t _prim_char_int(char p1);

#endif
3 changes: 2 additions & 1 deletion grin/test/ExtendedSyntax/PrimOpsSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ C.include "<stdio.h>"
-- TODO: Once, we merge the syntax tranformation PR,
-- remove the extra ".." from here. It is needed now
-- because of the nested directory structure.
C.include "../../prim_ops.c"
-- TODO: Once merged, use "../../prim_ops.c"
C.include "../../prim_ops.h"

spec :: Spec
spec = do
Expand Down

0 comments on commit d8480f7

Please sign in to comment.