found segfault member

This commit is contained in:
Nathan Braswell
2016-06-17 01:01:59 -04:00
parent 3f89cb1e37
commit 59f5c6f667
2 changed files with 8 additions and 6 deletions

View File

@@ -97,7 +97,7 @@ else
echo "no ${kraken}_bootstrap, bootstrapping using starting from cached version"
git checkout ${bootstrap_commits[$cached_index]}
cp "../cached_builds/${bootstrap_commits[$cached_index]}/kraken.krak.c" "./"
cc kraken.krak.c -O3 -o kraken_bootstrap
cc kraken.krak.c -lm -lpthread -O3 -o kraken_bootstrap
fi
# loop through the chain

View File

@@ -190,10 +190,11 @@ obj identifier (Object) {
return name == other.name && type == other.type && enclosing_scope == other.enclosing_scope
}
}
fun ast_type_def_ptr(name: ref string): *ast_node {
return ast_type_def_ptr(name, false)
}
fun ast_type_def_ptr(name: ref string, is_union: bool): *ast_node {
fun ast_type_def_ptr(name: string): *ast_node {
/*fun ast_type_def_ptr(name: ref string): *ast_node {*/
/*return ast_type_def_ptr(name, false)*/
/*}*/
/*fun ast_type_def_ptr(name: ref string, is_union: bool): *ast_node {*/
/*var to_ret.construct(name, is_union): type_def*/
var to_ret.construct(name): type_def
var ptr = new<ast_node>()
@@ -209,12 +210,13 @@ fun is_type_def(node: *ast_node): bool {
obj type_def (Object) {
var scope: map<string, vector<*ast_node>>
var name: string
var is_union: bool
/*var is_union: bool*/
var self_type: *type
var variables: vector<*ast_node>
var methods: vector<*ast_node>
/*fun construct(nameIn: ref string, is_unionIn: bool): *type_def {*/
fun construct(nameIn: ref string): *type_def {
/*fun construct(nameIn: string): *type_def {*/
scope.construct()
name.copy_construct(&nameIn)
/*is_union = is_unionIn*/