aboutsummaryrefslogtreecommitdiff
path: root/src/compile/pointers.h
blob: 2e11d8921bfc07caca658e0101535d72ce992797 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// This file defines how to compile pointers and allocated memory

#pragma once

#include <stdbool.h>

#include "../ast.h"
#include "../environment.h"
#include "../stdlib/datatypes.h"
#include "../types.h"

Text_t compile_to_pointer_depth(env_t *env, ast_t *ast, int64_t target_depth, bool needs_incref);
Text_t compile_typed_allocation(env_t *env, ast_t *ast, type_t *pointer_type);