From 38764943e5fc61c424c018068dc7f6790dddf147 Mon Sep 17 00:00:00 2001 From: Paul Oliver Date: Thu, 29 Feb 2024 02:29:14 +0100 Subject: Format repass. --- src/common.c | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) (limited to 'src/common.c') diff --git a/src/common.c b/src/common.c index 402320e..a2fc559 100644 --- a/src/common.c +++ b/src/common.c @@ -8,8 +8,9 @@ static Receiver g_receiver; void sal_comm_set_sender(Sender sender) { - /* Set sender functor. Whenever an organism calls the SEND instruction, - this function will get called. When unset, SEND instruction is ignored. + /* + * Set sender functor. Whenever an organism calls the SEND instruction, + * this function will get called. When unset, SEND instruction is ignored. */ assert(sender); g_sender = sender; @@ -17,8 +18,9 @@ void sal_comm_set_sender(Sender sender) void sal_comm_set_receiver(Receiver receiver) { - /* Set receiver functor. Whenever an organism calls the RCVE instruction, - this function will get called. When unset, RCVE instruction is ignored. + /* + * Set receiver functor. Whenever an organism calls the RCVE instruction, + * this function will get called. When unset, RCVE instruction is ignored. */ assert(receiver); g_receiver = receiver; @@ -26,8 +28,9 @@ void sal_comm_set_receiver(Receiver receiver) void _sal_comm_send(uint8 inst) { - /* Send a single byte (instruction) to the sender. This function is called - by processes that execute the SEND instruction. + /* + * Send a single byte (instruction) to the sender. This function is called + * by processes that execute the SEND instruction. */ assert(sal_is_inst(inst)); @@ -38,9 +41,10 @@ void _sal_comm_send(uint8 inst) uint8 _sal_comm_receive(void) { - /* Receive a single byte (instruction) from the receiver. This function is - called by processes that execute the RCVE instruction. It returns NOP0 is - receiver is unset. + /* + * Receive a single byte (instruction) from the receiver. This function is + * called by processes that execute the RCVE instruction. It returns NOP0 is + * receiver is unset. */ if (g_receiver) { uint8 inst = g_receiver(); -- cgit v1.2.1