core: Allow set_buffer_ to be referred to as set-buffer

After a snapshot, we can take out the set_buffer_ version (pipes
syntax exts use it).

As per #4421
This commit is contained in:
Tim Chevalier 2013-01-04 14:48:19 -08:00
parent a8ff9f2ef9
commit b72ed5572f
2 changed files with 6 additions and 2 deletions

View File

@ -347,6 +347,7 @@ pub fn cleanup_stack_for_failure() {
if ptr::is_null(tydesc) {
// FIXME #4420: Destroy this box
// FIXME #4330: Destroy this box
} else {
rustrt::rust_call_tydesc_glue(*root, tydesc, 3 as size_t);
}

View File

@ -206,14 +206,17 @@ pub type Packet<T: Owned> = {
#[doc(hidden)]
pub trait HasBuffer {
// FIXME #4421: This should not have a trailing underscore
fn set_buffer(b: *libc::c_void);
// FIXME #4421 remove after snapshot
fn set_buffer_(b: *libc::c_void);
}
impl<T: Owned> Packet<T>: HasBuffer {
fn set_buffer_(b: *libc::c_void) {
fn set_buffer(b: *libc::c_void) {
self.header.buffer = b;
}
// FIXME #4421 remove after snapshot
fn set_buffer_(b: *libc::c_void) { self.set_buffer(b) }
}
#[doc(hidden)]