Re: [ooc-compiler] Interface of NCURSES_ACS?
Brought to you by:
mva
|
From: Tim T. <ra...@ed...> - 2009-10-20 06:50:22
|
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. -- Gruß... Tim |