Skip to content

Commit

Permalink
Merge pull request #32 from pghmcfc/c23
Browse files Browse the repository at this point in the history
Fix for compilation in C23 mode
  • Loading branch information
hirooih authored Jan 25, 2025
2 parents d9d6f23 + 90ebd3f commit 9c89044
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Gnu.xs
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ enum { STARTUP_HOOK, EVENT_HOOK, GETC_FN, REDISPLAY_FN,
SIG_EVT, INP_AVL, FN_STAT, TIMEOUT_EVENT,
};

typedef int XFunction ();
typedef int XFunction (void);
static struct fn_vars {
XFunction **rlfuncp; /* GNU Readline Library variable */
XFunction *defaultfn; /* default function */
Expand All @@ -622,7 +622,12 @@ static struct fn_vars {
} fn_tbl[] = {
{ &rl_startup_hook, NULL, startup_hook_wrapper, NULL }, /* 0 */
{ &rl_event_hook, NULL, event_hook_wrapper, NULL }, /* 1 */
{ &rl_getc_function, rl_getc, getc_function_wrapper, NULL }, /* 2 */
{
(XFunction **)&rl_getc_function, /* 2 */
(XFunction *)rl_getc,
(XFunction *)getc_function_wrapper,
NULL
},
{
(XFunction **)&rl_redisplay_function, /* 3 */
(XFunction *)rl_redisplay,
Expand Down

0 comments on commit 9c89044

Please sign in to comment.