Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardalee committed Dec 28, 2024
1 parent 6583e30 commit 89bfac9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion core/reactor_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ const char* lf_reactor_full_name(self_base_t* self) {
size_t location = len - strlen(self->name);
strncpy(&self->full_name[location], self->name, strlen(self->name) + 1);
parent = self->parent;
while(parent != NULL) {
while (parent != NULL) {
location--;
self->full_name[location] = '.';
location -= strlen(parent->name);
Expand Down
4 changes: 2 additions & 2 deletions include/core/lf_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,8 @@ typedef struct self_base_t {
struct allocation_record_t* allocations;
struct reaction_t* executing_reaction; // The currently executing reaction of the reactor.
environment_t* environment;
char* name; // The name of the reactor. If a bank, appended with [index].
char* full_name; // The full name of the reactor or NULL if lf_reactor_full_name() is not called.
char* name; // The name of the reactor. If a bank, appended with [index].
char* full_name; // The full name of the reactor or NULL if lf_reactor_full_name() is not called.
self_base_t* parent; // The parent of this reactor.
#if !defined(LF_SINGLE_THREADED)
void* reactor_mutex; // If not null, this is expected to point to an lf_mutex_t.
Expand Down
4 changes: 2 additions & 2 deletions include/core/reactor.h
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,10 @@ void lf_free_reactor(self_base_t* self);

/**
* @brief Return the full name of the reactor.
*
*
* The full name includes the names of all the parent reactors, separated by dots.
* If any reactor is a bank, the name will have a suffix of the form `[bank_index]`.
*
*
* @param self The self struct of the reactor.
*/
const char* lf_reactor_full_name(self_base_t* self);
Expand Down

0 comments on commit 89bfac9

Please sign in to comment.