Moved printwstr() from src/slint.c to edit/editdraw.c.

This commit is contained in:
Roland Illig 2005-09-05 02:14:29 +00:00
parent 03759c8f34
commit ad9acbde44
5 changed files with 10 additions and 9 deletions

View File

@ -1,6 +1,7 @@
2005-09-05 Roland Illig <roland.illig@gmx.de>
* editcmd.c: Fixed some of the gcc warnings.
* editdraw.c: Moved printwstr() from ../src/slint.c to here.
2005-08-19 David Martin <dmartina@excite.com>

View File

@ -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. */

View File

@ -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 <roland.illig@gmx.de>

View File

@ -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);
}

View File

@ -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