From 00b66bf92c8b566f6f0bd27595ea16a13acfa549 Mon Sep 17 00:00:00 2001 From: Ganesh Viswanathan Date: Wed, 22 Apr 2020 09:25:23 -0500 Subject: Change FILE* to File --- nimterop/ast2.nim | 2 ++ nimterop/grammar.nim | 2 ++ tests/config.nims.disabled | 7 ------- tests/nim.cfg | 3 +-- 4 files changed, 5 insertions(+), 9 deletions(-) delete mode 100644 tests/config.nims.disabled 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 -- cgit v1.2.3