18 lines
1,013 B
C
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/16 22:50:16 by jhalford ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include "minishell.h"
|
|
|
|
int get_lexer_stack(t_lexer lexer)
|
|
{
|
|
return (lexer.stack ? *(int*)lexer.stack->content : 0);
|
|
}
|