projects
/
ncurses.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ncurses 5.6 - patch 20070421
[ncurses.git]
/
ncurses
/
tinfo
/
lib_acs.c
diff --git
a/ncurses/tinfo/lib_acs.c
b/ncurses/tinfo/lib_acs.c
index 347014fe19ab7ebdb71d0ba9e75efe0ec542941c..b7909f05c272515a672e7b1fac70526b48813982 100644
(file)
--- a/
ncurses/tinfo/lib_acs.c
+++ b/
ncurses/tinfo/lib_acs.c
@@
-35,17
+35,18
@@
#include <curses.priv.h>
#include <term.h> /* ena_acs, acs_chars */
#include <curses.priv.h>
#include <term.h> /* ena_acs, acs_chars */
-MODULE_ID("$Id: lib_acs.c,v 1.3
2 2007/03/10 18:47:26
tom Exp $")
+MODULE_ID("$Id: lib_acs.c,v 1.3
3 2007/04/21 23:31:24
tom Exp $")
#if BROKEN_LINKER || USE_REENTRANT
#if BROKEN_LINKER || USE_REENTRANT
+#define MyBuffer _nc_prescreen.real_acs_map
NCURSES_EXPORT_VAR(chtype *)
_nc_acs_map(void)
{
NCURSES_EXPORT_VAR(chtype *)
_nc_acs_map(void)
{
- static chtype *the_map = 0;
- if (the_map == 0)
- the_map = typeCalloc(chtype, ACS_LEN);
- return the_map;
+ if (MyBuffer == 0)
+ MyBuffer = typeCalloc(chtype, ACS_LEN);
+ return MyBuffer;
}
}
+#undef MyBuffer
#else
NCURSES_EXPORT_VAR(chtype) acs_map[ACS_LEN] =
{
#else
NCURSES_EXPORT_VAR(chtype) acs_map[ACS_LEN] =
{