general c library question

new topic     » topic index » view thread      » older message » newer message

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

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu