From 536f787c627e3a2b245e529345b948dc4631817f Mon Sep 17 00:00:00 2001 From: kartofen Date: Mon, 2 Oct 2023 23:24:04 +0300 Subject: minor --- src/parser.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/parser.c b/src/parser.c index c4e37bd..654cda4 100644 --- a/src/parser.c +++ b/src/parser.c @@ -18,7 +18,7 @@ static void sexp_free(struct sexp *sexp); static void ast_free(struct ast *ast); static void quote_stack_push(struct quote_node **head, struct sexp *cur_sexp); -static struct sexp *quote_stack_pop(struct quote_node **head, int peak); +static struct sexp *quote_stack_pop(struct quote_node **head, int peek); // returns 0 on success static int on_paren(parser_t parser, int paren_type); // 0 is open, 1 is close @@ -239,7 +239,7 @@ static void quote_stack_push(struct quote_node **head, struct sexp *cur_sexp) *head = node; } -static struct sexp *quote_stack_pop(struct quote_node **head, int peak) +static struct sexp *quote_stack_pop(struct quote_node **head, int peek) { if(*head == NULL) { return NULL; @@ -247,7 +247,7 @@ static struct sexp *quote_stack_pop(struct quote_node **head, int peak) struct sexp *sexp = (*head)->cur_sexp; - if(!peak) { + if(!peek) { struct quote_node *prev = (*head)->prev; free(*head); *head = prev; -- cgit v1.2.3