aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjluehrs2 <jluehrs2@uiuc.edu>2008-03-18 09:02:58 -0500
committerjluehrs2 <jluehrs2@uiuc.edu>2008-03-18 09:02:58 -0500
commit7bdedb0e496f8e99b232b047ca2fe5562a20785e (patch)
treed08ab6efcc9710ccb105ac1d06240e1d6c72dddd
parent87b41607eef9c5273b63e3e01bce35d860d1880c (diff)
downloadluancurses-7bdedb0e496f8e99b232b047ca2fe5562a20785e.tar.gz
luancurses-7bdedb0e496f8e99b232b047ca2fe5562a20785e.zip
we don't care about the length of the string we are outputting
-rw-r--r--src/curses.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/src/curses.c b/src/curses.c
index 689a7af..8eb56da 100644
--- a/src/curses.c
+++ b/src/curses.c
@@ -359,12 +359,11 @@ static int l_addch(lua_State* L)
{
int is_mv;
pos p;
- size_t l;
attr_t mode = 0;
chtype ch;
is_mv = get_pos(L, &p);
- ch = get_char_enum(luaL_checklstring(L, 1, &l));
+ ch = get_char_enum(luaL_checklstring(L, 1, NULL));
if (lua_istable(L, 2)) {
mode = get_char_attr(L, 2);
}
@@ -383,12 +382,11 @@ static int l_echochar(lua_State* L)
{
int is_mv;
pos p;
- size_t l;
attr_t mode = 0;
chtype ch;
is_mv = get_pos(L, &p);
- ch = get_char_enum(luaL_checklstring(L, 1, &l));
+ ch = get_char_enum(luaL_checklstring(L, 1, NULL));
if (lua_istable(L, 2)) {
mode = get_char_attr(L, 2);
}
@@ -414,13 +412,12 @@ static int l_addstr(lua_State* L)
{
int is_mv, set_attrs = 0;
pos p;
- size_t l;
const char* str;
attr_t old_mode = 0;
short old_color = 0;
is_mv = get_pos(L, &p);
- str = luaL_checklstring(L, 1, &l);
+ str = luaL_checklstring(L, 1, NULL);
if (lua_istable(L, 2)) {
int new_mode, new_color;
@@ -494,12 +491,11 @@ static int l_insch(lua_State* L)
{
int is_mv;
pos p;
- size_t l;
attr_t mode = 0;
chtype ch;
is_mv = get_pos(L, &p);
- ch = get_char_enum(luaL_checklstring(L, 1, &l));
+ ch = get_char_enum(luaL_checklstring(L, 1, NULL));
if (lua_istable(L, 2)) {
mode = get_char_attr(L, 2);
}
@@ -518,13 +514,12 @@ static int l_insstr(lua_State* L)
{
int is_mv, set_attrs = 0;
pos p;
- size_t l;
const char* str;
attr_t old_mode = 0;
short old_color = 0;
is_mv = get_pos(L, &p);
- str = luaL_checklstring(L, 1, &l);
+ str = luaL_checklstring(L, 1, NULL);
if (lua_istable(L, 2)) {
int new_mode, new_color;