diff options
| author | Philipp Brüschweiler <blei42@gmail.com> | 2013-06-22 21:36:00 +0200 |
|---|---|---|
| committer | Philipp Brüschweiler <blei42@gmail.com> | 2013-06-23 13:02:00 +0200 |
| commit | e2f1049bd5f041f1f219d683e4e29e32ca30cd1c (patch) | |
| tree | 509134d12c4aa0c9bdaee4fecebe95a39036fdb9 /src/rt | |
| parent | 1b76bac41de9f52295a99db21abdd1ad5b0fc231 (diff) | |
| download | rust-e2f1049bd5f041f1f219d683e4e29e32ca30cd1c.tar.gz rust-e2f1049bd5f041f1f219d683e4e29e32ca30cd1c.zip | |
Remove unused TyDesc parameter from the glue functions
To remove the environment pointer, support for function pointers without an environment argument is needed (i.e. a fixed version of #6661).
Diffstat (limited to 'src/rt')
| -rw-r--r-- | src/rt/rust_task.cpp | 6 | ||||
| -rw-r--r-- | src/rt/rust_type.h | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/src/rt/rust_task.cpp b/src/rt/rust_task.cpp index fe1b4622137..81ae991623f 100644 --- a/src/rt/rust_task.cpp +++ b/src/rt/rust_task.cpp @@ -183,7 +183,11 @@ void task_start_wrapper(spawn_args *a) if(env) { // free the environment (which should be a unique closure). const type_desc *td = env->td; - td->drop_glue(NULL, NULL, box_body(env)); + td->drop_glue(NULL, +#ifdef _RUST_STAGE0 + NULL, +#endif + box_body(env)); task->kernel->region()->free(env); } diff --git a/src/rt/rust_type.h b/src/rt/rust_type.h index 70b5c1dc6be..30ff5f1fa54 100644 --- a/src/rt/rust_type.h +++ b/src/rt/rust_type.h @@ -25,7 +25,11 @@ typedef void (*CDECL spawn_fn)(rust_opaque_box*, void *); struct type_desc; -typedef void CDECL (glue_fn)(void *, const type_desc **, void *); +typedef void CDECL (glue_fn)(void *, +#ifdef _RUST_STAGE0 + const type_desc **, +#endif + void *); // Corresponds to the boxed data in the @ region. The body follows the // header; you can obtain a ptr via box_body() below. |
