Change calls of proto! to use parens.
This commit is contained in:
parent
c74a442e86
commit
77e83d83a9
16 changed files with 42 additions and 42 deletions
|
|
@ -15,11 +15,11 @@ import std::time;
|
|||
|
||||
import pipes::recv;
|
||||
|
||||
proto! ring {
|
||||
proto! ring (
|
||||
num:send {
|
||||
num(uint) -> num
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
fn macros() {
|
||||
#macro[
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ use std;
|
|||
import pipes::{spawn_service, recv};
|
||||
import std::time::precise_time_s;
|
||||
|
||||
proto! pingpong {
|
||||
proto! pingpong (
|
||||
ping: send {
|
||||
ping -> pong
|
||||
}
|
||||
|
|
@ -15,9 +15,9 @@ proto! pingpong {
|
|||
pong: recv {
|
||||
pong -> ping
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
proto! pingpong_unbounded {
|
||||
proto! pingpong_unbounded (
|
||||
ping: send {
|
||||
ping -> pong
|
||||
}
|
||||
|
|
@ -29,7 +29,7 @@ proto! pingpong_unbounded {
|
|||
you_will_never_catch_me: send {
|
||||
never_ever_ever -> you_will_never_catch_me
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
// This stuff should go in libcore::pipes
|
||||
macro_rules! move_it (
|
||||
|
|
|
|||
|
|
@ -142,7 +142,7 @@ mod map_reduce {
|
|||
}
|
||||
|
||||
|
||||
proto! ctrl_proto {
|
||||
proto! ctrl_proto (
|
||||
open: send<K: copy send, V: copy send> {
|
||||
find_reducer(K) -> reducer_response<K, V>,
|
||||
mapper_done -> !
|
||||
|
|
@ -151,7 +151,7 @@ mod map_reduce {
|
|||
reducer_response: recv<K: copy send, V: copy send> {
|
||||
reducer(Chan<reduce_proto<V>>) -> open<K, V>
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
enum reduce_proto<V: copy send> { emit_val(V), done, addref, release }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue