0005-Don-t-rely-on-internal-struct-tags-of-curses-impleme.patch (884B)
- From 64ade1a9e9f511ca5f8c8273481e307a184ada44 Mon Sep 17 00:00:00 2001
- From: Michael Forney <mforney@mforney.org>
- Date: Sun, 13 Mar 2022 15:17:58 -0700
- Subject: [PATCH] Don't rely on internal struct tags of curses implementation
- ---
- chat.h | 7 ++++---
- 1 file changed, 4 insertions(+), 3 deletions(-)
- diff --git a/chat.h b/chat.h
- index 2a41cf6..66fe661 100644
- --- a/chat.h
- +++ b/chat.h
- @@ -27,6 +27,7 @@
- #include <assert.h>
- #include <ctype.h>
- +#include <curses.h>
- #include <err.h>
- #include <getopt.h>
- #include <stdarg.h>
- @@ -321,9 +322,9 @@ enum {
- InputCols = 1024,
- };
- extern char uiTitle[TitleCap];
- -extern struct _win_st *uiStatus;
- -extern struct _win_st *uiMain;
- -extern struct _win_st *uiInput;
- +extern WINDOW *uiStatus;
- +extern WINDOW *uiMain;
- +extern WINDOW *uiInput;
- extern bool uiSpoilerReveal;
- extern struct Util uiNotifyUtil;
- void uiInit(void);
- --
- 2.49.0