summaryrefslogtreecommitdiffstats
path: root/contrib/ncurses/include/ncurses_dll.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/ncurses/include/ncurses_dll.h')
-rw-r--r--contrib/ncurses/include/ncurses_dll.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/contrib/ncurses/include/ncurses_dll.h b/contrib/ncurses/include/ncurses_dll.h
index c47e5ec..e24feee 100644
--- a/contrib/ncurses/include/ncurses_dll.h
+++ b/contrib/ncurses/include/ncurses_dll.h
@@ -1,5 +1,5 @@
/****************************************************************************
- * Copyright (c) 1998-2004,2005 Free Software Foundation, Inc. *
+ * Copyright (c) 1998-2006,2007 Free Software Foundation, Inc. *
* *
* Permission is hereby granted, free of charge, to any person obtaining a *
* copy of this software and associated documentation files (the *
@@ -25,7 +25,7 @@
* sale, use or other dealings in this Software without prior written *
* authorization. *
****************************************************************************/
-/* $Id: ncurses_dll.h,v 1.5 2006/04/22 22:07:51 tom Exp $ */
+/* $Id: ncurses_dll.h,v 1.6 2007/03/10 19:21:49 tom Exp $ */
#ifndef NCURSES_DLL_H_incl
#define NCURSES_DLL_H_incl 1
@@ -76,4 +76,11 @@
# define NCURSES_EXPORT_VAR(type) NCURSES_IMPEXP type
#endif
+/*
+ * For reentrant code, we map the various global variables into SCREEN by
+ * using functions to access them.
+ */
+#define NCURSES_PUBLIC_VAR(name) _nc_##name
+#define NCURSES_WRAPPED_VAR(type,name) extern type NCURSES_PUBLIC_VAR(name)(void)
+
#endif /* NCURSES_DLL_H_incl */
OpenPOWER on IntegriCloud