Re: [ooc-compiler] Interface of NCURSES_ACS?
Brought to you by:
mva
|
From: Frank H. <hr...@te...> - 2009-10-20 22:54:49
|
On 20 Oct 2009 08:49:38 +0200 "Tim Teulings" <ra...@ed...> wrote: > Hello! > > > After learning a bit more about the C preprocessor, I think the > > ncurses.h lines I posted yesterday boil down to > > > > ---------------------------------------------------- > > extern unsigned acs_map[] > > #define NCURSES_ACS(c) (acs_map[(unsigned char)(c)]) > > ---------------------------------------------------- > > > > So I need to access the variable 'acs_map'. How do I do that? > > (I only found hints in the OOC documentation on how to handle types > > in interface modules, but not variables.) > > I did implement interfaces to Curses years ago as a foreign module > (since curses does heavy use of macros). > > http://visualoberon.cvs.sourceforge.net/viewvc/visualoberon/Curses/ > > Perhaps this is helpful. > Looks very promising. I'll try it out within a few days. Thanks a lot! -- Frank Hrebabetzky +55 / 48 / 3235 1106 Florianopolis, Brazil |