Skip to content

Commit

Permalink
split off typemap into its own file
Browse files Browse the repository at this point in the history
  • Loading branch information
vtjnash committed Apr 19, 2016
1 parent c28ef78 commit 416217e
Show file tree
Hide file tree
Showing 5 changed files with 1,139 additions and 1,104 deletions.
2 changes: 1 addition & 1 deletion src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ endif


SRCS := \
jltypes gf ast builtins module interpreter \
jltypes gf typemap ast builtins module interpreter \
alloc dlload sys init task array dump toplevel jl_uv jlapi signal-handling \
simplevector APInt-C runtime_intrinsics runtime_ccall \
threadgroup threading stackwalk
Expand Down
11 changes: 0 additions & 11 deletions src/alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -740,17 +740,6 @@ jl_sym_t *jl_demangle_typename(jl_sym_t *s)
return jl_symbol_n(&n[1], len);
}

jl_typemap_level_t *jl_new_typemap_level(void)
{
jl_typemap_level_t *cache = (jl_typemap_level_t*)jl_gc_allocobj(sizeof(jl_typemap_level_t));
jl_set_typeof(cache, jl_typemap_level_type);
cache->key = NULL;
cache->linear = (jl_typemap_entry_t*)jl_nothing;
cache->arg1 = (jl_array_t*)jl_nothing;
cache->targ = (jl_array_t*)jl_nothing;
return cache;
}

JL_DLLEXPORT jl_methtable_t *jl_new_method_table(jl_sym_t *name, jl_module_t *module)
{
jl_methtable_t *mt = (jl_methtable_t*)jl_gc_allocobj(sizeof(jl_methtable_t));
Expand Down
Loading

0 comments on commit 416217e

Please sign in to comment.