Skip to content

Commit

Permalink
Bump version to 0.28.3, upgrade to language-c-0.7.1.
Browse files Browse the repository at this point in the history
Add test for _Float128 parsing.
  • Loading branch information
deech committed Nov 25, 2017
1 parent 0a3f2f2 commit e5b1d84
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 3 deletions.
2 changes: 2 additions & 0 deletions ChangeLog
@@ -1,3 +1,5 @@
0.28.3
- Switch to language-c 0.7.1 [#192]
0.28.2 0.28.2
- Switch to language-c 0.6 [#176] - Switch to language-c 0.6 [#176]
0.28.1 0.28.1
Expand Down
4 changes: 2 additions & 2 deletions c2hs.cabal
@@ -1,5 +1,5 @@
Name: c2hs Name: c2hs
Version: 0.28.2 Version: 0.28.3
License: GPL-2 License: GPL-2
License-File: COPYING License-File: COPYING
Copyright: Copyright (c) 1999-2007 Manuel M T Chakravarty Copyright: Copyright (c) 1999-2007 Manuel M T Chakravarty
Expand Down Expand Up @@ -112,7 +112,7 @@ flag base3
Executable c2hs Executable c2hs
Build-Depends: base >= 2 && < 5, Build-Depends: base >= 2 && < 5,
bytestring, bytestring,
language-c >= 0.7 && < 0.8, language-c >= 0.7.1 && < 0.8,
filepath, filepath,
dlist dlist


Expand Down
2 changes: 1 addition & 1 deletion src/C2HS/Version.hs
Expand Up @@ -10,7 +10,7 @@ versnum :: Version
name = "C->Haskell Compiler" name = "C->Haskell Compiler"
versnum = Paths_c2hs.version versnum = Paths_c2hs.version
versnick = "Switcheroo" versnick = "Switcheroo"
date = "1 April 2016" date = "25 November 2017"
version = name ++ ", version " ++ showVersion versnum ++ " " ++ versnick ++ ", " ++ date version = name ++ ", version " ++ showVersion versnum ++ " " ++ versnick ++ ", " ++ date
copyright = "Copyright (c) 1999-2007 Manuel M T Chakravarty\n" copyright = "Copyright (c) 1999-2007 Manuel M T Chakravarty\n"
++ " 2005-2008 Duncan Coutts\n" ++ " 2005-2008 Duncan Coutts\n"
Expand Down
3 changes: 3 additions & 0 deletions tests/bugs/issue-192/Issue192.chs
@@ -0,0 +1,3 @@
module Issue192 where

#include "issue-192.h"
2 changes: 2 additions & 0 deletions tests/bugs/issue-192/issue-192.h
@@ -0,0 +1,2 @@
extern int __fpclassifyf128 (_Float128 __value) __attribute__ ((__nothrow__ , __leaf__))
__attribute__ ((__const__));
4 changes: 4 additions & 0 deletions tests/test-bugs.hs
Expand Up @@ -93,6 +93,7 @@ tests =
, testCase "Issue #152" issue152 , testCase "Issue #152" issue152
, testCase "Issue #155" issue155 , testCase "Issue #155" issue155
, testCase "Issue #180" issue180 , testCase "Issue #180" issue180
, testCase "Issue #192" issue192
] ++ ] ++
-- Some tests that won't work on Windows. -- Some tests that won't work on Windows.
if os /= "cygwin32" && os /= "mingw32" if os /= "cygwin32" && os /= "mingw32"
Expand All @@ -113,6 +114,9 @@ call_capital = c2hsShelly $ chdir "tests/bugs/call_capital" $ do
let expected = ["upper C();", "lower c();", "upper C();"] let expected = ["upper C();", "lower c();", "upper C();"]
liftIO $ assertBool "" (T.lines res == expected) liftIO $ assertBool "" (T.lines res == expected)


issue192 :: Assertion
issue192 = hs_only_build_issue 192

issue180 :: Assertion issue180 :: Assertion
issue180 = c2hsShelly $ chdir "tests/bugs/issue-180" $ do issue180 = c2hsShelly $ chdir "tests/bugs/issue-180" $ do
mapM_ rm_f ["Issue180.chs.h"] mapM_ rm_f ["Issue180.chs.h"]
Expand Down

0 comments on commit e5b1d84

Please sign in to comment.