hscurses 1.3.0.1 → 1.3.0.2
raw patch · 5 files changed
+19/−5 lines, 5 filesnew-uploaderPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- UI/HSCurses/CWString.hsc +0/−1
- UI/HSCurses/Curses.hsc +0/−1
- cbits/HSCursesUtils.c +9/−0
- cbits/HSCursesUtils.h +7/−1
- hscurses.cabal +3/−2
UI/HSCurses/CWString.hsc view
@@ -226,7 +226,6 @@ return x e -> error $ "HSCurses.CWString.wcsrtombs: impossible case: "++show e -#def HsInt hs_get_mb_cur_max () { return MB_CUR_MAX; } foreign import ccall unsafe hs_get_mb_cur_max :: IO Int mb_cur_max :: Int
UI/HSCurses/Curses.hsc view
@@ -595,7 +595,6 @@ color_content :: CShort -> Ptr CShort -> Ptr CShort -> Ptr CShort -> IO CInt foreign import ccall unsafe "HSCurses.h hs_curses_color_pair" colorPair :: Pair -> ChType-#def chtype hs_curses_color_pair (HsInt pair) {return COLOR_PAIR (pair);} ------------- -- Attributes
cbits/HSCursesUtils.c view
@@ -10,3 +10,12 @@ getyx(win, *y, *x); } +chtype hs_curses_color_pair(HsInt pair)+{+ return COLOR_PAIR (pair);+}++HsInt hs_get_mb_cur_max()+{+ return MB_CUR_MAX;+}
cbits/HSCursesUtils.h view
@@ -2,7 +2,13 @@ #define HSCURSESUTILS_H #include "HSCurses.h"+#include "HsFFI.h"+#include <stdlib.h> -extern void hscurses_nomacro_getyx(WINDOW *win, int *y, int *x);+extern void hscurses_nomacro_getyx(WINDOW *win, int *y, int *x );++extern chtype hs_curses_color_pair(HsInt pair );++extern HsInt hs_get_mb_cur_max(); #endif // HSCURSESUTILS_H
hscurses.cabal view
@@ -1,5 +1,5 @@ Name: hscurses-Version: 1.3.0.1+Version: 1.3.0.2 License: LGPL License-file: LICENSE Author: John Meacham <john at repetae dot net>@@ -37,6 +37,7 @@ Data-files: README, TODO, example/contacts2, example/Setup.hs, example/ContactManager.hs, example/cm.cabal, example/contacts+extra-libraries: ncurses Extra-source-files: UI/HSCurses/Curses.hsc, UI/HSCurses/CursesHelper.hs, UI/HSCurses/CWString.hsc, UI/HSCurses/Widgets.hs,@@ -45,4 +46,4 @@ Extensions: CPP, ForeignFunctionInterface, GeneralizedNewtypeDeriving, ScopedTypeVariables, ExistentialQuantification Include-dirs: cbits .-Ghc-options: -funbox-strict-fields -Wall -fvia-c+Ghc-options: -funbox-strict-fields -Wall