42-archive/42sh/src/lexer/get_lexer_stack.c
2017-03-07 19:43:59 +01:00

18 lines
1,013 B
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* get_lexer_stack.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: jhalford <jack@crans.org> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/03/03 17:39:45 by jhalford #+# #+# */
/* Updated: 2017/03/07 19:33:30 by ariard ### ########.fr */
/* */
/* ************************************************************************** */
#include "minishell.h"
int get_lexer_stack(t_lexer lexer)
{
return (lexer.stack ? *(int*)lexer.stack->content : 0);
}