Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
erlingrj committed May 20, 2024
1 parent cc9a4b1 commit e0a34f5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
4 changes: 2 additions & 2 deletions examples/hello_action.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ void MyReactor_ctor(struct MyReactor *self, Environment *env) {
self->super.register_startup(&self->super, &self->startup.super);
}

struct MyReactor my_reactor;
Environment env;
int main() {
struct MyReactor my_reactor;
Environment env;
Environment_ctor(&env, (Reactor *)&my_reactor);
MyReactor_ctor(&my_reactor, &env);
env.assemble(&env);
Expand Down
5 changes: 2 additions & 3 deletions include/reactor-uc/generics/generic_action.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// NOLINTBEGIN
// NOLINT
/**
* This file provides the implementation for a generic action. To use it
* define type, number of sources and effects and a unique name for this action.
Expand Down Expand Up @@ -62,5 +62,4 @@ static void JOIN(NAME, ctor)(NAME *self, Reactor *parent) {
#undef T
#undef NAME
#undef N_EFFECTS
#undef N_SOURCES
// NOLINTEND
#undef N_SOURCES
3 changes: 1 addition & 2 deletions include/reactor-uc/generics/generic_input.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// NOLINTBEGIN
// NOLINT
/**
* This file provides the implementation for a generic output. To use it
* define type, number of sources and effects and a unique name for this action.
Expand Down Expand Up @@ -46,4 +46,3 @@ static void JOIN(NAME, ctor)(NAME *self, Reactor *parent) {
#undef T
#undef NAME
#undef N_EFFECTS
// NOLINTEND
3 changes: 1 addition & 2 deletions include/reactor-uc/generics/generic_output.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// NOLINTBEGIN
// NOLINT
/**
* This file provides the implementation for a generic output. To use it
* define type, number of sources and effects and a unique name for this action.
Expand Down Expand Up @@ -61,4 +61,3 @@ static void JOIN(NAME, ctor)(NAME *self, Reactor *parent) {
#undef T
#undef NAME
#undef N_SOURCES
// NOLINTEND

0 comments on commit e0a34f5

Please sign in to comment.