From ad9acbde4473709fa356a6204d224c3475271c93 Mon Sep 17 00:00:00 2001 From: Roland Illig Date: Mon, 5 Sep 2005 02:14:29 +0000 Subject: [PATCH] Moved printwstr() from src/slint.c to edit/editdraw.c. --- edit/ChangeLog | 1 + edit/editdraw.c | 7 +++++++ src/ChangeLog | 2 ++ src/slint.c | 6 ------ src/tty.h | 3 --- 5 files changed, 10 insertions(+), 9 deletions(-) diff --git a/edit/ChangeLog b/edit/ChangeLog index 6ed20c0d9..fc46f2d3f 100644 --- a/edit/ChangeLog +++ b/edit/ChangeLog @@ -1,6 +1,7 @@ 2005-09-05 Roland Illig * editcmd.c: Fixed some of the gcc warnings. + * editdraw.c: Moved printwstr() from ../src/slint.c to here. 2005-08-19 David Martin diff --git a/edit/editdraw.c b/edit/editdraw.c index 371e11aa6..b8d9c38f7 100644 --- a/edit/editdraw.c +++ b/edit/editdraw.c @@ -97,6 +97,13 @@ static void status_string (WEdit * edit, char *s, int w) byte_str); } +static inline void +printwstr (const char *s, int len) +{ + if (len > 0) + tty_printf ("%-*.*s", len, len, s); +} + /* Draw the status line at the top of the widget. The size of the filename * field varies depending on the width of the screen and the length of * the filename. */ diff --git a/src/ChangeLog b/src/ChangeLog index 83f671bcb..e28fea06e 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -9,6 +9,8 @@ * screen.c: Likewise. * main.h: Added const qualifier to the global prompt variable. * main.c: Likewise. + * slint.c: Moved printwstr() to ../edit/editdraw.c. + * tty.h: Likewise. 2005-09-04 Roland Illig diff --git a/src/slint.c b/src/slint.c index ea509a1f9..45b0ec7c5 100644 --- a/src/slint.c +++ b/src/slint.c @@ -486,9 +486,3 @@ mc_refresh (void) #endif /* WITH_BACKGROUND */ refresh (); } - -extern void printwstr (const char *s, int len) -{ - if (len > 0) - printw("%-*.*s", len, len, s); -} diff --git a/src/tty.h b/src/tty.h index f63761eaa..73d8cc461 100644 --- a/src/tty.h +++ b/src/tty.h @@ -66,7 +66,4 @@ extern void tty_printf(const char *, ...); void mc_refresh (void); -/* print S left-aligned, adjusted to exactly LEN characters */ -extern void printwstr (const char *s, int len); - #endif