From 1b8ba144d73250b7349b133f4f8871907ab82fb8 Mon Sep 17 00:00:00 2001 From: Joey Yakimowich-Payne Date: Mon, 20 Apr 2020 14:17:17 -0600 Subject: [PATCH] Skip more syms for cast expressions on Nim < 1.0.0 --- nimterop/exprparser.nim | 2 +- tests/tast2.nim | 2 +- tests/tmath.nim | 5 ++++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/nimterop/exprparser.nim b/nimterop/exprparser.nim index a944547..207d7fd 100644 --- a/nimterop/exprparser.nim +++ b/nimterop/exprparser.nim @@ -499,4 +499,4 @@ proc parseCExpression*(state: NimState, code: string, name = ""): PNode = result = newNode(nkNone) except Exception as e: techo "UNEXPECTED EXCEPTION: ", e.msg - result = newNode(nkNone) \ No newline at end of file + result = newNode(nkNone) diff --git a/tests/tast2.nim b/tests/tast2.nim index 8dcdc0f..0b3762a 100644 --- a/tests/tast2.nim +++ b/tests/tast2.nim @@ -460,4 +460,4 @@ checkPragmas(nested, pHeaderImpBy) when defined(HEADER): assert sitest1(5) == 10 - assert sitest1(10) == 20 \ No newline at end of file + assert sitest1(10) == 20 diff --git a/tests/tmath.nim b/tests/tmath.nim index fdf3a76..bbf7abd 100644 --- a/tests/tmath.nim +++ b/tests/tmath.nim @@ -13,7 +13,10 @@ when defined(windows): complex = object static: - cSkipSymbol @["mingw_choose_expr", "EXCEPTION_DEFINED", "COMPLEX_DEFINED", "matherr", "HUGE"] + when (NimMajor, NimMinor, NimPatch) < (1, 0, 0): + cSkipSymbol @["mingw_choose_expr", "EXCEPTION_DEFINED", "COMPLEX_DEFINED", "matherr", "HUGE", "FP_ILOGB0", "FP_ILOGBNAN"] + else: + cSkipSymbol @["mingw_choose_expr", "EXCEPTION_DEFINED", "COMPLEX_DEFINED", "matherr", "HUGE"] cDebug() cDisableCaching() cAddStdDir()