Added string duplication to deep_copy. Closes #520.

This commit is contained in:
Eric Holk 2011-06-20 13:46:44 -07:00
parent c051501784
commit a2dcd08cc2
6 changed files with 59 additions and 25 deletions

View file

@ -49,6 +49,7 @@ type upcalls =
ValueRef free,
ValueRef mark,
ValueRef new_str,
ValueRef dup_str,
ValueRef new_vec,
ValueRef vec_append,
ValueRef get_type_desc,
@ -101,6 +102,8 @@ fn declare_upcalls(type_names tn, ModuleRef llmod) -> @upcalls {
mark=d("mark", [T_ptr(T_i8())], T_int()),
new_str=d("new_str", [T_ptr(T_i8()), T_size_t()],
T_ptr(T_str())),
dup_str=d("dup_str", [T_ptr(T_str())],
T_ptr(T_str())),
new_vec=d("new_vec", [T_size_t(), T_ptr(T_tydesc(tn))],
T_opaque_vec_ptr()),
vec_append=d("vec_append",