general c library question
- Posted by Chris Burch <chriscrylex at aol.com> Jan 26, 2006
- 550 views
Hi In the c library #define NCURSES_ATTR_SHIFT 8 or #define NCURSES_BITS(mask,shift) ((mask) << ((shift) + NCURSES_ATTR_SHIFT)) #define A_COLOR NCURSES_BITS(((1UL) << 8) - 1UL,0) How do I access NCURSES_ATTR_SHIFT, or A_COLOR. A_COLOR looks like a macro, whereas NCURSES_ATTR_SHIFT is obviously a variable, but
global constant NAS = peek4u(define_c_var(ncurses_so, "NCURSES_ATTR_SHIFT"))
gives me a machine level exception As ever, help greatly appreciated Chris http://members.aol.com/chriscrylex/euphoria.htm http://uboard.proboards32.com/ http://members.aol.com/chriscrylex/EUSQLite/eusql.html