diff options
| author | Ganesh Viswanathan <dev@genotrance.com> | 2020-04-22 09:25:23 -0500 |
|---|---|---|
| committer | Ganesh Viswanathan <dev@genotrance.com> | 2020-04-22 09:39:48 -0500 |
| commit | 00b66bf92c8b566f6f0bd27595ea16a13acfa549 (patch) | |
| tree | 0400e1139c93604c6cfc7df9ae8eac83a1e5a085 | |
| parent | f2870d8ba6fe9249f26d681b3f01cfb8b121d362 (diff) | |
| download | nimterop-00b66bf92c8b566f6f0bd27595ea16a13acfa549.tar.gz nimterop-00b66bf92c8b566f6f0bd27595ea16a13acfa549.zip | |
Change FILE* to File
| -rw-r--r-- | nimterop/ast2.nim | 2 | ||||
| -rw-r--r-- | nimterop/grammar.nim | 2 | ||||
| -rw-r--r-- | tests/config.nims.disabled | 7 | ||||
| -rw-r--r-- | tests/nim.cfg | 3 |
4 files changed, 5 insertions, 9 deletions
diff --git a/nimterop/ast2.nim b/nimterop/ast2.nim index 0e7a7bb..ce45f1d 100644 --- a/nimterop/ast2.nim +++ b/nimterop/ast2.nim @@ -14,6 +14,8 @@ proc getPtrType*(str: string): string = "cstring" of "object": "pointer" + of "FILE": + "File" else: str diff --git a/nimterop/grammar.nim b/nimterop/grammar.nim index 0d804d0..eaa337a 100644 --- a/nimterop/grammar.nim +++ b/nimterop/grammar.nim @@ -17,6 +17,8 @@ proc getPtrType(str: string): string = "pointer" of "ptr ptr object": "ptr pointer" + of "ptr FILE": + "File" else: str diff --git a/tests/config.nims.disabled b/tests/config.nims.disabled deleted file mode 100644 index 06a791e..0000000 --- a/tests/config.nims.disabled +++ /dev/null @@ -1,7 +0,0 @@ -#[ -pending https://github.com/nim-lang/Nim/pull/10530 -note: nimble init installs something like this (maybe without src in this case) -switch("path", "$projectDir/../src") -but it doesn't seem robust in case tests have subdirs, so, changing to ../ seems better -]# -switch("path", "..") diff --git a/tests/nim.cfg b/tests/nim.cfg index 3936716..5bb1fab 100644 --- a/tests/nim.cfg +++ b/tests/nim.cfg @@ -1,2 +1 @@ -# TODO: pending https://github.com/nimterop/nimterop/issues/110 remove in favor of config.nims ---path:".." +--path:".."
\ No newline at end of file |
