wintty.c and cursstat.c formatting bits
Apply another old stashed commit.
This commit is contained in:
@@ -139,15 +139,20 @@ static int changed_fields = 0;
|
|||||||
DISABLE_WARNING_FORMAT_NONLITERAL
|
DISABLE_WARNING_FORMAT_NONLITERAL
|
||||||
|
|
||||||
void
|
void
|
||||||
curses_status_update(int fldidx, genericptr_t ptr, int chg UNUSED, int percent,
|
curses_status_update(
|
||||||
int color_and_attr, unsigned long *colormasks)
|
int fldidx,
|
||||||
|
genericptr_t ptr,
|
||||||
|
int chg UNUSED,
|
||||||
|
int percent,
|
||||||
|
int color_and_attr,
|
||||||
|
unsigned long *colormasks)
|
||||||
{
|
{
|
||||||
long *condptr = (long *) ptr;
|
long *condptr = (long *) ptr;
|
||||||
char *text = (char *) ptr;
|
char *text = (char *) ptr;
|
||||||
|
|
||||||
if (fldidx != BL_FLUSH) {
|
if (fldidx != BL_FLUSH) {
|
||||||
if (fldidx < 0 || fldidx >= MAXBLSTATS) {
|
if (fldidx < 0 || fldidx >= MAXBLSTATS) {
|
||||||
gc.context.botlx = gc.context.botl = FALSE; /* avoid another bot() */
|
gc.context.botlx = gc.context.botl = FALSE; /* avoid bot() */
|
||||||
panic("curses_status_update(%d)", fldidx);
|
panic("curses_status_update(%d)", fldidx);
|
||||||
}
|
}
|
||||||
changed_fields |= (1 << fldidx);
|
changed_fields |= (1 << fldidx);
|
||||||
|
|||||||
+7
-2
@@ -4000,8 +4000,13 @@ tty_status_enablefield(int fieldidx, const char *nm, const char *fmt,
|
|||||||
DISABLE_WARNING_FORMAT_NONLITERAL
|
DISABLE_WARNING_FORMAT_NONLITERAL
|
||||||
|
|
||||||
void
|
void
|
||||||
tty_status_update(int fldidx, genericptr_t ptr, int chg UNUSED, int percent,
|
tty_status_update(
|
||||||
int color, unsigned long *colormasks)
|
int fldidx,
|
||||||
|
genericptr_t ptr,
|
||||||
|
int chg UNUSED,
|
||||||
|
int percent,
|
||||||
|
int color,
|
||||||
|
unsigned long *colormasks)
|
||||||
{
|
{
|
||||||
int attrmask;
|
int attrmask;
|
||||||
long *condptr = (long *) ptr;
|
long *condptr = (long *) ptr;
|
||||||
|
|||||||
Reference in New Issue
Block a user