Update invocation syntax for macro_rules!

This commit is contained in:
Paul Stansifer 2012-08-22 17:47:11 -07:00
parent 345363866c
commit 38891b91bf
13 changed files with 36 additions and 36 deletions

View file

@ -16,9 +16,9 @@ import io::WriterUtil;
import pipes::{port, chan, SharedChan};
macro_rules! move_out {
macro_rules! move_out (
{ $x:expr } => { unsafe { let y <- *ptr::addr_of($x); y } }
}
)
enum request {
get_count,

View file

@ -12,9 +12,9 @@ import io::WriterUtil;
import pipes::{port, PortSet, chan};
macro_rules! move_out {
macro_rules! move_out (
{ $x:expr } => { unsafe { let y <- *ptr::addr_of($x); y } }
}
)
enum request {
get_count,

View file

@ -32,11 +32,11 @@ proto! pingpong_unbounded {
}
// This stuff should go in libcore::pipes
macro_rules! move_it {
macro_rules! move_it (
{ $x:expr } => { let t <- *ptr::addr_of($x); t }
}
)
macro_rules! follow {
macro_rules! follow (
{
$($message:path($($x: ident),+) -> $next:ident $e:expr)+
} => (
@ -62,7 +62,7 @@ macro_rules! follow {
_ => { fail }
}
)
}
)
fn switch<T: send, Tb: send, U>(+endp: pipes::recv_packet_buffered<T, Tb>,
f: fn(+option<T>) -> U) -> U {

View file

@ -34,9 +34,9 @@ import comm::port;
import comm::recv;
import comm::send;
macro_rules! move_out {
macro_rules! move_out (
{ $x:expr } => { unsafe { let y <- *ptr::addr_of($x); y } }
}
)
trait word_reader {
fn read_word() -> option<~str>;