X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=include%2Fncurses_dll.h.in;fp=include%2Fncurses_dll.h;h=82c9b85ca542a8454d58be2c6bb405d1240fdfa8;hp=047d5c7d390ba97140ce0aa413d073918b9e3299;hb=3ce2c58251fe1353768cc630103cdb12ecc8be0a;hpb=dc6f2587b13a5294926467a2375922b3c30d302b diff --git a/include/ncurses_dll.h b/include/ncurses_dll.h.in similarity index 91% rename from include/ncurses_dll.h rename to include/ncurses_dll.h.in index 047d5c7d..82c9b85c 100644 --- a/include/ncurses_dll.h +++ b/include/ncurses_dll.h.in @@ -25,11 +25,18 @@ * sale, use or other dealings in this Software without prior written * * authorization. * ****************************************************************************/ -/* $Id: ncurses_dll.h,v 1.8 2009/04/04 22:26:27 tom Exp $ */ +/* $Id: ncurses_dll.h.in,v 1.8 2009/04/04 22:26:27 tom Exp $ */ #ifndef NCURSES_DLL_H_incl #define NCURSES_DLL_H_incl 1 +/* + * For reentrant code, we map the various global variables into SCREEN by + * using functions to access them. + */ +#define NCURSES_PUBLIC_VAR(name) @NCURSES_WRAP_PREFIX@##name +#define NCURSES_WRAPPED_VAR(type,name) extern type NCURSES_PUBLIC_VAR(name)(void) + /* no longer needed on cygwin or mingw, thanks to auto-import */ /* but this structure may be useful at some point for an MSVC build */ /* so, for now unconditionally define the important flags */