Merge pull request #1558 from ailin-nemui/darwin-warning

fe-text: remove const for better Darwin support
This commit is contained in:
ailin-nemui 2025-04-14 17:23:36 +00:00 committed by GitHub
commit 4449455113
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 20 additions and 20 deletions

View File

@ -38,8 +38,8 @@ int tigetflag();
#define CAP_TYPE_STR 2 #define CAP_TYPE_STR 2
typedef struct { typedef struct {
const char *ti_name; /* terminfo name */ char *ti_name; /* terminfo name */
const char *tc_name; /* termcap name */ char *tc_name; /* termcap name */
int type; int type;
unsigned int offset; unsigned int offset;
} TERMINFO_REC; } TERMINFO_REC;

View File

@ -57,32 +57,32 @@ struct _TERM_REC {
int width, height; int width, height;
/* Cursor movement */ /* Cursor movement */
const char *TI_smcup, *TI_rmcup, *TI_cup; char *TI_smcup, *TI_rmcup, *TI_cup;
const char *TI_hpa, *TI_vpa, *TI_cub1, *TI_cuf1; char *TI_hpa, *TI_vpa, *TI_cub1, *TI_cuf1;
const char *TI_civis, *TI_cnorm; char *TI_civis, *TI_cnorm;
/* Scrolling */ /* Scrolling */
const char *TI_csr, *TI_wind; char *TI_csr, *TI_wind;
const char *TI_ri, *TI_rin, *TI_ind, *TI_indn; char *TI_ri, *TI_rin, *TI_ind, *TI_indn;
const char *TI_il, *TI_il1, *TI_dl, *TI_dl1; char *TI_il, *TI_il1, *TI_dl, *TI_dl1;
/* Clearing screen */ /* Clearing screen */
const char *TI_clear, *TI_ed; /* + *TI_dl, *TI_dl1; */ char *TI_clear, *TI_ed; /* + *TI_dl, *TI_dl1; */
/* Clearing to end of line */ /* Clearing to end of line */
const char *TI_el; char *TI_el;
/* Repeating character */ /* Repeating character */
const char *TI_rep; char *TI_rep;
/* Colors */ /* Colors */
int TI_colors; /* numbers of colors in TI_fg[] and TI_bg[] */ int TI_colors; /* numbers of colors in TI_fg[] and TI_bg[] */
const char *TI_sgr0; /* turn off all attributes */ char *TI_sgr0; /* turn off all attributes */
const char *TI_smul, *TI_rmul; /* underline on/off */ char *TI_smul, *TI_rmul; /* underline on/off */
const char *TI_smso, *TI_rmso; /* standout on/off */ char *TI_smso, *TI_rmso; /* standout on/off */
const char *TI_sitm, *TI_ritm; /* italic on/off */ char *TI_sitm, *TI_ritm; /* italic on/off */
const char *TI_bold, *TI_blink, *TI_rev; char *TI_bold, *TI_blink, *TI_rev;
const char *TI_setaf, *TI_setab, *TI_setf, *TI_setb; char *TI_setaf, *TI_setab, *TI_setf, *TI_setb;
/* Colors - generated and dynamically allocated */ /* Colors - generated and dynamically allocated */
char **TI_fg, **TI_bg, *TI_normal; char **TI_fg, **TI_bg, *TI_normal;
@ -91,8 +91,8 @@ struct _TERM_REC {
char *TI_bel; char *TI_bel;
/* Keyboard-transmit mode */ /* Keyboard-transmit mode */
const char *TI_smkx; char *TI_smkx;
const char *TI_rmkx; char *TI_rmkx;
/* Terminal mode states */ /* Terminal mode states */
int appkey_enabled; int appkey_enabled;