~nloomans/ft_select

bbfd2f710acdb9d84a8e74a0015a322c65acbc31 — Noah Loomans 1 year, 8 months ago 1d90313
fix build
1 files changed, 8 insertions(+), 5 deletions(-)

M src/event.c
M src/event.c => src/event.c +8 -5
@@ 16,10 16,7 @@
bool							g_event_sigwinch = false;
bool							g_event_sigcont = false;

void							handle_generic(int signum)
{
	*g_event_signal_map[signum].global = true;
}
static void						handle_generic(int signum);

static void						handle_suspend(int signum)
{


@@ 31,6 28,7 @@ static void						handle_suspend(int signum)

static void						handle_continue(int signum)
{
	(void)signum;
	terminal_configure(TERMINAL_CONFIGURE_SETUP);
	signal(SIGTSTP, handle_suspend);
	handle_generic(signum);


@@ 48,6 46,11 @@ const struct s_event_signal_map	g_event_signal_map[] = {
	},
};

static void						handle_generic(int signum)
{
	*g_event_signal_map[signum].global = true;
}

const t_action	g_event_key_map[READ_TYPE_AMOUNT][128] = {
	[ READ_TYPE_REG ] = {
		[ 'q' ] = action_quit,


@@ 93,7 96,7 @@ t_error							event_init(void)
	return (ERROR_NULL);
}

static t_action			next_signal(void)
static t_action				next_signal(void)
{
	size_t	signum;