Fix missing line in runtime header in compiler series
This commit is contained in:
parent
adb894869e
commit
43b140285f
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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 >}}
|
||||
|
|
Loading…
Reference in New Issue
Block a user