Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Cornu committed Nov 25, 2024
1 parent fee21dc commit ec02ad3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/ivoc/ocfile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,9 @@ Member_func f_members[] = {{"ropen", f_ropen},
{"flush", f_flush},
{nullptr, nullptr}};

static Member_ret_str_func f_retstr_members[] = {{"getname", f_get_name}, {"dir", f_dir}, {nullptr, nullptr}};
static Member_ret_str_func f_retstr_members[] = {{"getname", f_get_name},
{"dir", f_dir},
{nullptr, nullptr}};

void OcFile_reg() {
class2oc("File", f_cons, f_destruct, f_members, nullptr, f_retstr_members);
Expand Down
5 changes: 4 additions & 1 deletion src/ivoc/octimer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,10 @@ static void t_destruct(void* v) {
#endif /* HAVE_IV */
}

Member_func t_members[] = {{"seconds", t_seconds}, {"start", t_start}, {"end", t_stop}, {nullptr, nullptr}};
Member_func t_members[] = {{"seconds", t_seconds},
{"start", t_start},
{"end", t_stop},
{nullptr, nullptr}};

void OcTimer_reg() {
class2oc("Timer", t_cons, t_destruct, t_members, nullptr, nullptr);
Expand Down
4 changes: 3 additions & 1 deletion src/nrniv/nrnste.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ static double ste_state(void* v) {
return (double) state;
}

static Member_func members[] = {{"transition", ste_transition}, {"state", ste_state}, {nullptr, nullptr}};
static Member_func members[] = {{"transition", ste_transition},
{"state", ste_state},
{nullptr, nullptr}};

static void* ste_cons(Object*) {
int nstate = (int) chkarg(1, 1, 1e6);
Expand Down

0 comments on commit ec02ad3

Please sign in to comment.