Fix missing line in runtime header in compiler series

This commit is contained in:
Danila Fedorin 2019-11-04 13:17:15 -08:00
parent adb894869e
commit 43b140285f
3 changed files with 3 additions and 1 deletions

View File

@ -55,6 +55,7 @@ struct stack {
struct node_base** data;
};
void stack_init(struct stack* s);
void stack_free(struct stack* s);
void stack_push(struct stack* s, struct node_base* n);
struct node_base* stack_pop(struct stack* s);

View File

@ -55,6 +55,7 @@ struct stack {
struct node_base** data;
};
void stack_init(struct stack* s);
void stack_free(struct stack* s);
void stack_push(struct stack* s, struct node_base* n);
struct node_base* stack_pop(struct stack* s);

View File

@ -91,7 +91,7 @@ which we will use for lazy evaluation (modifying expressions with their reduced
* `stack_pack` and `stack_split` - Wrap and unwrap constructors on the stack.
We declare these in a header:
{{< codelines "C" "compiler/07/runtime.h" 52 67 >}}
{{< codelines "C" "compiler/07/runtime.h" 52 68 >}}
And implement them as follows:
{{< codelines "C" "compiler/07/runtime.c" 42 116 >}}