rob solomon
2011-02-23 22:24:20 UTC
I'm trying to learn to translate C header file info to gm2. The
following is from ncurses.def on an Ubuntu system.
typedef unsigned char NCURSES_BOOL;
typedef unsigned short wchar_t;
typedef unsigned int wint_t;
#define NCURSES_SIZE_T short
typedef unsigned long chtype;
typedef unsigned long mmask_t;
typedef unsigned short wchar_t;
typedef unsigned int wint_t;
So far I've done this. Am I in the right direction or am I way off?
BTW, I don't make my living in IT, so this is just a hobby for me.
TYPE
WINDOW = ADDRESS ;
chtype = LONGCARD ;
chstring = ADDRESS ;
ATTRIBUTE = chtype ;
COLORPAIR = SHORTCARD ;
mmask_t = LONGCARD ;
wchar_t = CARDINAL;
wint_t = CARDINAL;
attr_t = CARDINAL;
Thanks for any help.
--rob
following is from ncurses.def on an Ubuntu system.
typedef unsigned char NCURSES_BOOL;
typedef unsigned short wchar_t;
typedef unsigned int wint_t;
#define NCURSES_SIZE_T short
typedef unsigned long chtype;
typedef unsigned long mmask_t;
typedef unsigned short wchar_t;
typedef unsigned int wint_t;
So far I've done this. Am I in the right direction or am I way off?
BTW, I don't make my living in IT, so this is just a hobby for me.
TYPE
WINDOW = ADDRESS ;
chtype = LONGCARD ;
chstring = ADDRESS ;
ATTRIBUTE = chtype ;
COLORPAIR = SHORTCARD ;
mmask_t = LONGCARD ;
wchar_t = CARDINAL;
wint_t = CARDINAL;
attr_t = CARDINAL;
Thanks for any help.
--rob