diff options
| author | kartofen <mladenovnasko0@gmail.com> | 2023-10-02 23:24:04 +0300 | 
|---|---|---|
| committer | kartofen <mladenovnasko0@gmail.com> | 2023-10-02 23:24:04 +0300 | 
| commit | 536f787c627e3a2b245e529345b948dc4631817f (patch) | |
| tree | f1e84a5b5751b61c42ee565aaa5d7dfc81085fb3 /src | |
| parent | a7bb8ace49f5725e0f92336ab5af28b4c8900aff (diff) | |
minor
Diffstat (limited to 'src')
| -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; | 
