aboutsummaryrefslogtreecommitdiff
path: root/src/runtime
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime')
-rw-r--r--src/runtime/chan.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/runtime/chan.c b/src/runtime/chan.c
index b491bbda32..7014ebc657 100644
--- a/src/runtime/chan.c
+++ b/src/runtime/chan.c
@@ -73,3 +73,31 @@ sys·chansend(Hchan* c, ...)
prints("\n");
}
}
+
+// chanrecv1(hchan *chan any) (elem any);
+void
+sys·chanrecv1(Hchan* c, ...)
+{
+ byte *ae;
+
+ ae = (byte*)&c + c->eo;
+ if(debug) {
+ prints("chanrecv1: chan=");
+ sys·printpointer(c);
+ prints("\n");
+ }
+}
+
+// chanrecv2(hchan *chan any) (elem any, pres bool);
+void
+sys·chanrecv2(Hchan* c, ...)
+{
+ byte *ae;
+
+ ae = (byte*)&c + c->eo;
+ if(debug) {
+ prints("chanrecv2: chan=");
+ sys·printpointer(c);
+ prints("\n");
+ }
+}