projects
/
ncurses.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ncurses 5.9 - patch 20120303
[ncurses.git]
/
ncurses
/
base
/
lib_box.c
diff --git
a/ncurses/base/lib_box.c
b/ncurses/base/lib_box.c
index 50f436592ded65b427b5fe1ae574bf8b3f8a9cb6..6f17c97a5b07bd28f0e65e4c8cd0f40fa55fa4eb 100644
(file)
--- a/
ncurses/base/lib_box.c
+++ b/
ncurses/base/lib_box.c
@@
-1,5
+1,5
@@
/****************************************************************************
/****************************************************************************
- * Copyright (c) 1998-200
1,2002
Free Software Foundation, Inc. *
+ * Copyright (c) 1998-200
9,2010
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 *
* *
* Permission is hereby granted, free of charge, to any person obtaining a *
* copy of this software and associated documentation files (the *
@@
-29,6
+29,8
@@
/****************************************************************************
* Author: Zeyd M. Ben-Halim <zmbenhal@netcom.com> 1992,1995 *
* and: Eric S. Raymond <esr@snark.thyrsus.com> *
/****************************************************************************
* Author: Zeyd M. Ben-Halim <zmbenhal@netcom.com> 1992,1995 *
* and: Eric S. Raymond <esr@snark.thyrsus.com> *
+ * and: Thomas E. Dickey 1996-on *
+ * and: Sven Verdoolaege 2001 *
****************************************************************************/
/*
****************************************************************************/
/*
@@
-40,17
+42,18
@@
#include <curses.priv.h>
#include <curses.priv.h>
-MODULE_ID("$Id: lib_box.c,v 1.2
1 2002/09/15 01:04:2
7 tom Exp $")
+MODULE_ID("$Id: lib_box.c,v 1.2
4 2010/04/24 23:51:5
7 tom Exp $")
#if USE_WIDEC_SUPPORT
#if USE_WIDEC_SUPPORT
-static
inline
chtype
+static
NCURSES_INLINE
chtype
_my_render(WINDOW *win, chtype ch)
{
NCURSES_CH_T wch;
SetChar2(wch, ch);
wch = _nc_render(win, wch);
_my_render(WINDOW *win, chtype ch)
{
NCURSES_CH_T wch;
SetChar2(wch, ch);
wch = _nc_render(win, wch);
- return
CharOf(wch
) | AttrOf(wch);
+ return
((attr_t) CharOf(wch)
) | AttrOf(wch);
}
}
+
#define RENDER_WITH_DEFAULT(ch,def) w ## ch = _my_render(win, (ch == 0) ? def : ch)
#else
#define RENDER_WITH_DEFAULT(ch,def) w ## ch = _nc_render(win, (ch == 0) ? def : ch)
#define RENDER_WITH_DEFAULT(ch,def) w ## ch = _my_render(win, (ch == 0) ? def : ch)
#else
#define RENDER_WITH_DEFAULT(ch,def) w ## ch = _nc_render(win, (ch == 0) ? def : ch)
@@
-68,7
+71,7
@@
wborder(WINDOW *win,
chtype wls, wrs, wts, wbs, wtl, wtr, wbl, wbr;
T((T_CALLED("wborder(%p,%s,%s,%s,%s,%s,%s,%s,%s)"),
chtype wls, wrs, wts, wbs, wtl, wtr, wbl, wbr;
T((T_CALLED("wborder(%p,%s,%s,%s,%s,%s,%s,%s,%s)"),
- win,
+
(void *)
win,
_tracechtype2(1, ls),
_tracechtype2(2, rs),
_tracechtype2(3, ts),
_tracechtype2(1, ls),
_tracechtype2(2, rs),
_tracechtype2(3, ts),