42-archive/42sh/OLD/OLD_RL/rl_nl_function.c.old
2016-12-12 13:15:47 +01:00

24 lines
1.2 KiB
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* rl_nl_function.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: sbenning <sbenning@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/12/08 19:03:22 by sbenning #+# #+# */
/* Updated: 2016/12/12 12:09:12 by sbenning ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_readline.h"
int rl_nl_function(t_line *line, long int input)
{
if (RL_IS(line->bitset, RL_SELECT))
RL_UNSET(line->bitset, RL_SELECT);
RL_SET(line->bitset, RL_STACK);
if (RL_NOT(line->bitset, RL_QUOTING))
RL_SET(line->bitset, RL_FINISH);
return (0);
(void)input;
}