Add a rust_str typedef to the runtime. Issue #855
This commit is contained in:
@@ -188,11 +188,13 @@ inline void reserve_vec(rust_task* task, rust_vec** vpp, size_t size) {
|
||||
}
|
||||
}
|
||||
|
||||
inline rust_vec *
|
||||
typedef rust_vec rust_str;
|
||||
|
||||
inline rust_str *
|
||||
make_str(rust_kernel* kernel, char* c, size_t strlen, const char* name) {
|
||||
size_t str_fill = strlen + 1;
|
||||
size_t str_alloc = str_fill;
|
||||
rust_vec *str = (rust_vec *)
|
||||
rust_str *str = (rust_str *)
|
||||
kernel->malloc(vec_size<char>(str_fill), name);
|
||||
str->fill = str_fill;
|
||||
str->alloc = str_alloc;
|
||||
|
||||
Reference in New Issue
Block a user