diff options
Diffstat (limited to 'src/parser.c')
-rw-r--r-- | src/parser.c | 6 |
1 files 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; |