Moved printwstr() from src/slint.c to edit/editdraw.c.
Этот коммит содержится в:
родитель
03759c8f34
Коммит
ad9acbde44
@ -1,6 +1,7 @@
|
|||||||
2005-09-05 Roland Illig <roland.illig@gmx.de>
|
2005-09-05 Roland Illig <roland.illig@gmx.de>
|
||||||
|
|
||||||
* editcmd.c: Fixed some of the gcc warnings.
|
* 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>
|
2005-08-19 David Martin <dmartina@excite.com>
|
||||||
|
|
||||||
|
@ -97,6 +97,13 @@ static void status_string (WEdit * edit, char *s, int w)
|
|||||||
byte_str);
|
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
|
/* 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
|
* field varies depending on the width of the screen and the length of
|
||||||
* the filename. */
|
* the filename. */
|
||||||
|
@ -9,6 +9,8 @@
|
|||||||
* screen.c: Likewise.
|
* screen.c: Likewise.
|
||||||
* main.h: Added const qualifier to the global prompt variable.
|
* main.h: Added const qualifier to the global prompt variable.
|
||||||
* main.c: Likewise.
|
* main.c: Likewise.
|
||||||
|
* slint.c: Moved printwstr() to ../edit/editdraw.c.
|
||||||
|
* tty.h: Likewise.
|
||||||
|
|
||||||
2005-09-04 Roland Illig <roland.illig@gmx.de>
|
2005-09-04 Roland Illig <roland.illig@gmx.de>
|
||||||
|
|
||||||
|
@ -486,9 +486,3 @@ mc_refresh (void)
|
|||||||
#endif /* WITH_BACKGROUND */
|
#endif /* WITH_BACKGROUND */
|
||||||
refresh ();
|
refresh ();
|
||||||
}
|
}
|
||||||
|
|
||||||
extern void printwstr (const char *s, int len)
|
|
||||||
{
|
|
||||||
if (len > 0)
|
|
||||||
printw("%-*.*s", len, len, s);
|
|
||||||
}
|
|
||||||
|
@ -66,7 +66,4 @@ extern void tty_printf(const char *, ...);
|
|||||||
|
|
||||||
void mc_refresh (void);
|
void mc_refresh (void);
|
||||||
|
|
||||||
/* print S left-aligned, adjusted to exactly LEN characters */
|
|
||||||
extern void printwstr (const char *s, int len);
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user