]> granicus.if.org Git - nethack/commitdiff
wintty.c and cursstat.c formatting bits
authorPatR <rankin@nethack.org>
Thu, 9 Feb 2023 18:48:04 +0000 (10:48 -0800)
committerPatR <rankin@nethack.org>
Thu, 9 Feb 2023 18:48:04 +0000 (10:48 -0800)
Apply another old stashed commit.

win/curses/cursstat.c
win/tty/wintty.c

index 7761eb8bb116c03b008abd8c27e777207c867ffe..fffcffc95b736ea5f63c5bfc461cc4f2f5ffc724 100644 (file)
@@ -139,15 +139,20 @@ static int changed_fields = 0;
 DISABLE_WARNING_FORMAT_NONLITERAL
 
 void
-curses_status_update(int fldidx, genericptr_t ptr, int chg UNUSED, int percent,
-                     int color_and_attr, unsigned long *colormasks)
+curses_status_update(
+    int fldidx,
+    genericptr_t ptr,
+    int chg UNUSED,
+    int percent,
+    int color_and_attr,
+    unsigned long *colormasks)
 {
     long *condptr = (long *) ptr;
     char *text = (char *) ptr;
 
     if (fldidx != BL_FLUSH) {
         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);
         }
         changed_fields |= (1 << fldidx);
index 605170711eafcdf1bc7ebe7787eb6f3901ae4650..242c10322ef00a0d743c35d1864d11a7e3c827de 100644 (file)
@@ -4000,8 +4000,13 @@ tty_status_enablefield(int fieldidx, const char *nm, const char *fmt,
 DISABLE_WARNING_FORMAT_NONLITERAL
 
 void
-tty_status_update(int fldidx, genericptr_t ptr, int chg UNUSED, int percent,
-                  int color, unsigned long *colormasks)
+tty_status_update(
+    int fldidx,
+    genericptr_t ptr,
+    int chg UNUSED,
+    int percent,
+    int color,
+    unsigned long *colormasks)
 {
     int attrmask;
     long *condptr = (long *) ptr;