Tor
0.4.9.2-alpha-dev
Toggle main menu visibility
Main Page
Related Pages
Modules
Data Structures
Data Structures
Data Structure Index
Data Fields
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Functions
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Enumerator
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Typedefs
b
c
d
f
g
h
l
m
n
o
p
r
s
v
Enumerations
a
b
c
d
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Enumerator
a
b
c
d
e
g
h
i
m
n
o
p
q
r
s
t
v
w
Macros
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
ext
equix
hashx
src
compiler.c
1
/* Copyright (c) 2020 tevador <tevador@gmail.com> */
2
/* See LICENSE for licensing information */
3
4
#include <stdbool.h>
5
6
#include "compiler.h"
7
#include "virtual_memory.h"
8
#include "program.h"
9
#include "context.h"
10
11
void
hashx_compiler_init(
hashx_ctx
* ctx) {
12
/* This can fail, but it's uncommon. We report this up the call chain
13
* later, at the same time as an mprotect or similar failure. */
14
ctx->compiler_mem = hashx_vm_alloc(COMP_CODE_SIZE);
15
}
16
17
void
hashx_compiler_destroy(
hashx_ctx
* ctx) {
18
hashx_vm_free(ctx->compiler_mem, COMP_CODE_SIZE);
19
}
hashx_ctx
Definition:
context.h:27
Generated by
1.9.4