Change calls of proto! to use parens.

This commit is contained in:
Paul Stansifer 2012-08-22 18:10:48 -07:00
parent c74a442e86
commit 77e83d83a9
16 changed files with 42 additions and 42 deletions

View file

@ -15,11 +15,11 @@ import std::time;
import pipes::recv;
proto! ring {
proto! ring (
num:send {
num(uint) -> num
}
}
)
fn macros() {
#macro[

View file

@ -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 (

View file

@ -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 }