about summary refs log tree commit diff
path: root/src/rt
diff options
context:
space:
mode:
authorMarijn Haverbeke <marijnh@gmail.com>2011-08-22 11:41:49 +0200
committerMarijn Haverbeke <marijnh@gmail.com>2011-08-22 11:41:49 +0200
commitcd5e4c21ee1355603bea8c6b478678a51b45b277 (patch)
tree4b6979788e97650f998a06fc34579cf8c64c7626 /src/rt
parent7588a895538800ffe88e2a4273a47020fec42e7d (diff)
downloadrust-cd5e4c21ee1355603bea8c6b478678a51b45b277.tar.gz
rust-cd5e4c21ee1355603bea8c6b478678a51b45b277.zip
Add skeleton of copy glue that actually copies
Diffstat (limited to 'src/rt')
-rw-r--r--src/rt/rust_internal.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rt/rust_internal.h b/src/rt/rust_internal.h
index a590c7e22ad..dd9f1d0cbc8 100644
--- a/src/rt/rust_internal.h
+++ b/src/rt/rust_internal.h
@@ -257,6 +257,8 @@ struct rust_timer {
 
 typedef void CDECL (glue_fn)(void *, rust_task *, void *,
                              const type_desc **, void *);
+typedef void CDECL (copy_glue_fn)(void *, rust_task *, void *,
+                                  const type_desc **, void *, void *);
 typedef void CDECL (cmp_glue_fn)(void *, rust_task *, void *,
                                  const type_desc **,
                                  void *, void *, int8_t);
@@ -275,9 +277,9 @@ struct type_desc {
     glue_fn *take_glue;
     glue_fn *drop_glue;
     glue_fn *free_glue;
+    copy_glue_fn *copy_glue;
     glue_fn *sever_glue;    // For GC.
     glue_fn *mark_glue;     // For GC.
-    glue_fn *obj_drop_glue; // For custom destructors.
     uintptr_t is_stateful;
     cmp_glue_fn *cmp_glue;
     const uint8_t *shape;