diff options
author | Paul Oliver <contact@pauloliver.dev> | 2024-02-29 02:29:14 +0100 |
---|---|---|
committer | Paul Oliver <contact@pauloliver.dev> | 2024-02-29 02:29:14 +0100 |
commit | 38764943e5fc61c424c018068dc7f6790dddf147 (patch) | |
tree | 65a0f5a00c91436b30e580f16365557437d61da7 /src/common.c | |
parent | 0e7b2e49585e3725736ae380cbd2dfb28fea5093 (diff) |
Format repass.
Diffstat (limited to 'src/common.c')
-rw-r--r-- | src/common.c | 22 |
1 files changed, 13 insertions, 9 deletions
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(); |