summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmanuele Giaquinta <exg@irssi.org>2008-04-04 08:41:44 +0000
committerexg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564>2008-04-04 08:41:44 +0000
commit2f13aacf43b3bdd5b6c3818882af878d4306880a (patch)
tree84fd5c69d9887e486b540c1a94e78df880ca301e
parente8ae6d827d924b3e40891da7a56b99b85e000e18 (diff)
downloadirssi-2f13aacf43b3bdd5b6c3818882af878d4306880a.zip
Change type of 'chr' argument in terminfo_repeat/term_addch to 'char'.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4795 dbcabf3a-b0e7-0310-adc4-f8d773084564
-rw-r--r--src/fe-text/term-curses.c2
-rw-r--r--src/fe-text/term-terminfo.c2
-rw-r--r--src/fe-text/term.h2
-rw-r--r--src/fe-text/terminfo-core.c4
-rw-r--r--src/fe-text/terminfo-core.h2
5 files changed, 6 insertions, 6 deletions
diff --git a/src/fe-text/term-curses.c b/src/fe-text/term-curses.c
index 71406c76..e776e9c9 100644
--- a/src/fe-text/term-curses.c
+++ b/src/fe-text/term-curses.c
@@ -308,7 +308,7 @@ void term_move(TERM_WINDOW *window, int x, int y)
wmove(window->win, y, x);
}
-void term_addch(TERM_WINDOW *window, int chr)
+void term_addch(TERM_WINDOW *window, char chr)
{
waddch(window->win, chr);
}
diff --git a/src/fe-text/term-terminfo.c b/src/fe-text/term-terminfo.c
index f364e76b..4b1b2bb8 100644
--- a/src/fe-text/term-terminfo.c
+++ b/src/fe-text/term-terminfo.c
@@ -385,7 +385,7 @@ static void term_printed_text(int count)
cforcemove = TRUE;
}
-void term_addch(TERM_WINDOW *window, int chr)
+void term_addch(TERM_WINDOW *window, char chr)
{
if (term_detached) return;
diff --git a/src/fe-text/term.h b/src/fe-text/term.h
index b5103c14..8d109db4 100644
--- a/src/fe-text/term.h
+++ b/src/fe-text/term.h
@@ -66,7 +66,7 @@ void term_window_scroll(TERM_WINDOW *window, int count);
void term_set_color(TERM_WINDOW *window, int col);
void term_move(TERM_WINDOW *window, int x, int y);
-void term_addch(TERM_WINDOW *window, int chr);
+void term_addch(TERM_WINDOW *window, char chr);
void term_add_unichar(TERM_WINDOW *window, unichar chr);
void term_addstr(TERM_WINDOW *window, const char *str);
void term_clrtoeol(TERM_WINDOW *window);
diff --git a/src/fe-text/terminfo-core.c b/src/fe-text/terminfo-core.c
index 02f5659e..636e9487 100644
--- a/src/fe-text/terminfo-core.c
+++ b/src/fe-text/terminfo-core.c
@@ -289,13 +289,13 @@ static void _clrtoeol(TERM_REC *term)
}
/* Repeat character (rep / rp) */
-static void _repeat(TERM_REC *term, int chr, int count)
+static void _repeat(TERM_REC *term, char chr, int count)
{
tput(tparm(term->TI_rep, chr, count));
}
/* Repeat character (manual) */
-static void _repeat_manual(TERM_REC *term, int chr, int count)
+static void _repeat_manual(TERM_REC *term, char chr, int count)
{
while (count > 0) {
putc(chr, term->out);
diff --git a/src/fe-text/terminfo-core.h b/src/fe-text/terminfo-core.h
index 34f7b70e..9e2b76d5 100644
--- a/src/fe-text/terminfo-core.h
+++ b/src/fe-text/terminfo-core.h
@@ -30,7 +30,7 @@ struct _TERM_REC {
void (*clear)(TERM_REC *term);
void (*clrtoeol)(TERM_REC *term);
- void (*repeat)(TERM_REC *term, int chr, int count);
+ void (*repeat)(TERM_REC *term, char chr, int count);
void (*set_fg)(TERM_REC *term, int color);
void (*set_bg)(TERM_REC *term, int color);