From 6b6f89b0ecf7dcde1a03cc5f61fe0767befadd5f Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Tue, 12 Nov 2013 06:05:03 -0800 Subject: rt: Delete more C++ --- src/rt/rust_builtin.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/rt/rust_builtin.cpp') diff --git a/src/rt/rust_builtin.cpp b/src/rt/rust_builtin.cpp index b8e808863c0..90042491d1d 100644 --- a/src/rt/rust_builtin.cpp +++ b/src/rt/rust_builtin.cpp @@ -10,7 +10,6 @@ /* Foreign builtins. */ -#include "rust_util.h" #include "sync/lock_and_signal.h" #include "vg/valgrind.h" @@ -234,6 +233,16 @@ precise_time_ns(uint64_t *ns) { #endif } +struct +rust_vec +{ + size_t fill; // in bytes; if zero, heapified + size_t alloc; // in bytes + uint8_t data[0]; +}; + +typedef rust_vec rust_str; + struct rust_tm { int32_t tm_sec; int32_t tm_min; -- cgit 1.4.1-3-g733a5