]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - include/ncurses_dll.h.in
ncurses 5.7 - patch 20090613
[ncurses.git] / include / ncurses_dll.h.in
similarity index 91%
rename from include/ncurses_dll.h
rename to include/ncurses_dll.h.in
index 047d5c7d390ba97140ce0aa413d073918b9e3299..82c9b85ca542a8454d58be2c6bb405d1240fdfa8 100644 (file)
  * 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           */