Skip to content

Commit

Permalink
References for 'BlueBrain/nmodl#1513'.
Browse files Browse the repository at this point in the history
GitHub Actions Bot committed Oct 14, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 9fb812d commit 777104d
Showing 36 changed files with 1,755 additions and 242 deletions.
6 changes: 3 additions & 3 deletions at_time/neuron/example.cpp
Original file line number Diff line number Diff line change
@@ -173,8 +173,8 @@ namespace neuron {


/* declaration of user functions */
static void _hoc_f(void);
static double _npy_f(Prop*);
static void _hoc_f();
static double _npy_f(Prop* _prop);


/* connect user functions to hoc names */
@@ -187,7 +187,7 @@ namespace neuron {
{"f", _npy_f},
{nullptr, nullptr}
};
static void _hoc_f(void) {
static void _hoc_f() {
double _r{};
Datum* _ppvar;
Datum* _thread;
6 changes: 3 additions & 3 deletions builtin_functions/neuron/compile_only.cpp
Original file line number Diff line number Diff line change
@@ -173,8 +173,8 @@ namespace neuron {


/* declaration of user functions */
static void _hoc_call_nrn_ghk(void);
static double _npy_call_nrn_ghk(Prop*);
static void _hoc_call_nrn_ghk();
static double _npy_call_nrn_ghk(Prop* _prop);


/* connect user functions to hoc names */
@@ -187,7 +187,7 @@ namespace neuron {
{"call_nrn_ghk", _npy_call_nrn_ghk},
{nullptr, nullptr}
};
static void _hoc_call_nrn_ghk(void) {
static void _hoc_call_nrn_ghk() {
double _r{};
Datum* _ppvar;
Datum* _thread;
6 changes: 3 additions & 3 deletions constant/neuron/constant.cpp
Original file line number Diff line number Diff line change
@@ -178,8 +178,8 @@ namespace neuron {


/* declaration of user functions */
static void _hoc_foo(void);
static double _npy_foo(Prop*);
static void _hoc_foo();
static double _npy_foo(Prop* _prop);


/* connect user functions to hoc names */
@@ -192,7 +192,7 @@ namespace neuron {
{"foo", _npy_foo},
{nullptr, nullptr}
};
static void _hoc_foo(void) {
static void _hoc_foo() {
double _r{};
Datum* _ppvar;
Datum* _thread;
12 changes: 6 additions & 6 deletions external/neuron/dst.cpp
Original file line number Diff line number Diff line change
@@ -177,10 +177,10 @@ namespace neuron {


/* declaration of user functions */
static void _hoc_get_gbl(void);
static double _npy_get_gbl(Prop*);
static void _hoc_get_param(void);
static double _npy_get_param(Prop*);
static void _hoc_get_gbl();
static double _npy_get_gbl(Prop* _prop);
static void _hoc_get_param();
static double _npy_get_param(Prop* _prop);


/* connect user functions to hoc names */
@@ -195,7 +195,7 @@ namespace neuron {
{"get_param", _npy_get_param},
{nullptr, nullptr}
};
static void _hoc_get_gbl(void) {
static void _hoc_get_gbl() {
double _r{};
Datum* _ppvar;
Datum* _thread;
@@ -226,7 +226,7 @@ namespace neuron {
_r = get_gbl_dst(_lmc, inst, node_data, id, _ppvar, _thread, nt);
return(_r);
}
static void _hoc_get_param(void) {
static void _hoc_get_param() {
double _r{};
Datum* _ppvar;
Datum* _thread;
8 changes: 4 additions & 4 deletions function/neuron/artificial_functions.cpp
Original file line number Diff line number Diff line change
@@ -214,8 +214,8 @@ namespace neuron {


/* declaration of user functions */
static double _hoc_x_plus_a(void*);
static double _hoc_identity(void*);
static double _hoc_x_plus_a(void * _vptr);
static double _hoc_identity(void * _vptr);


/* connect user functions to hoc names */
@@ -230,7 +230,7 @@ namespace neuron {
{"identity", _hoc_identity},
{nullptr, nullptr}
};
static double _hoc_x_plus_a(void* _vptr) {
static double _hoc_x_plus_a(void * _vptr) {
double _r{};
Datum* _ppvar;
Datum* _thread;
@@ -249,7 +249,7 @@ namespace neuron {
_r = x_plus_a_art_functions(_lmc, inst, id, _ppvar, _thread, nt, *getarg(1));
return(_r);
}
static double _hoc_identity(void* _vptr) {
static double _hoc_identity(void * _vptr) {
double _r{};
Datum* _ppvar;
Datum* _thread;
18 changes: 9 additions & 9 deletions function/neuron/compile_only.cpp
Original file line number Diff line number Diff line change
@@ -186,12 +186,12 @@ namespace neuron {


/* declaration of user functions */
static void _hoc_func(void);
static double _npy_func(Prop*);
static void _hoc_func_with_v(void);
static double _npy_func_with_v(Prop*);
static void _hoc_func_with_other(void);
static double _npy_func_with_other(Prop*);
static void _hoc_func();
static double _npy_func(Prop* _prop);
static void _hoc_func_with_v();
static double _npy_func_with_v(Prop* _prop);
static void _hoc_func_with_other();
static double _npy_func_with_other(Prop* _prop);


/* connect user functions to hoc names */
@@ -208,7 +208,7 @@ namespace neuron {
{"func_with_other", _npy_func_with_other},
{nullptr, nullptr}
};
static void _hoc_func(void) {
static void _hoc_func() {
double _r{};
Datum* _ppvar;
Datum* _thread;
@@ -241,7 +241,7 @@ namespace neuron {
func_func_in_breakpoint(_lmc, inst, node_data, id, _ppvar, _thread, nt);
return(_r);
}
static void _hoc_func_with_v(void) {
static void _hoc_func_with_v() {
double _r{};
Datum* _ppvar;
Datum* _thread;
@@ -274,7 +274,7 @@ namespace neuron {
func_with_v_func_in_breakpoint(_lmc, inst, node_data, id, _ppvar, _thread, nt, *getarg(1));
return(_r);
}
static void _hoc_func_with_other(void) {
static void _hoc_func_with_other() {
double _r{};
Datum* _ppvar;
Datum* _thread;
18 changes: 9 additions & 9 deletions function/neuron/functions.cpp
Original file line number Diff line number Diff line change
@@ -178,12 +178,12 @@ namespace neuron {


/* declaration of user functions */
static void _hoc_x_plus_a(void);
static double _npy_x_plus_a(Prop*);
static void _hoc_v_plus_a(void);
static double _npy_v_plus_a(Prop*);
static void _hoc_identity(void);
static double _npy_identity(Prop*);
static void _hoc_x_plus_a();
static double _npy_x_plus_a(Prop* _prop);
static void _hoc_v_plus_a();
static double _npy_v_plus_a(Prop* _prop);
static void _hoc_identity();
static double _npy_identity(Prop* _prop);


/* connect user functions to hoc names */
@@ -200,7 +200,7 @@ namespace neuron {
{"identity", _npy_identity},
{nullptr, nullptr}
};
static void _hoc_x_plus_a(void) {
static void _hoc_x_plus_a() {
double _r{};
Datum* _ppvar;
Datum* _thread;
@@ -234,7 +234,7 @@ namespace neuron {
_r = x_plus_a_functions(_lmc, inst, node_data, id, _ppvar, _thread, nt, *getarg(1));
return(_r);
}
static void _hoc_v_plus_a(void) {
static void _hoc_v_plus_a() {
double _r{};
Datum* _ppvar;
Datum* _thread;
@@ -265,7 +265,7 @@ namespace neuron {
_r = v_plus_a_functions(_lmc, inst, node_data, id, _ppvar, _thread, nt, *getarg(1));
return(_r);
}
static void _hoc_identity(void) {
static void _hoc_identity() {
double _r{};
Datum* _ppvar;
Datum* _thread;
42 changes: 21 additions & 21 deletions function/neuron/localize_arguments.cpp
Original file line number Diff line number Diff line change
@@ -222,20 +222,20 @@ namespace neuron {


/* declaration of user functions */
static void _hoc_id_v(void);
static double _npy_id_v(Prop*);
static void _hoc_id_nai(void);
static double _npy_id_nai(Prop*);
static void _hoc_id_ina(void);
static double _npy_id_ina(Prop*);
static void _hoc_id_x(void);
static double _npy_id_x(Prop*);
static void _hoc_id_g(void);
static double _npy_id_g(Prop*);
static void _hoc_id_s(void);
static double _npy_id_s(Prop*);
static void _hoc_id_p(void);
static double _npy_id_p(Prop*);
static void _hoc_id_v();
static double _npy_id_v(Prop* _prop);
static void _hoc_id_nai();
static double _npy_id_nai(Prop* _prop);
static void _hoc_id_ina();
static double _npy_id_ina(Prop* _prop);
static void _hoc_id_x();
static double _npy_id_x(Prop* _prop);
static void _hoc_id_g();
static double _npy_id_g(Prop* _prop);
static void _hoc_id_s();
static double _npy_id_s(Prop* _prop);
static void _hoc_id_p();
static double _npy_id_p(Prop* _prop);


/* connect user functions to hoc names */
@@ -260,7 +260,7 @@ namespace neuron {
{"id_p", _npy_id_p},
{nullptr, nullptr}
};
static void _hoc_id_v(void) {
static void _hoc_id_v() {
double _r{};
Datum* _ppvar;
Datum* _thread;
@@ -291,7 +291,7 @@ namespace neuron {
_r = id_v_localize_arguments(_lmc, inst, node_data, id, _ppvar, _thread, nt, *getarg(1));
return(_r);
}
static void _hoc_id_nai(void) {
static void _hoc_id_nai() {
double _r{};
Datum* _ppvar;
Datum* _thread;
@@ -322,7 +322,7 @@ namespace neuron {
_r = id_nai_localize_arguments(_lmc, inst, node_data, id, _ppvar, _thread, nt, *getarg(1));
return(_r);
}
static void _hoc_id_ina(void) {
static void _hoc_id_ina() {
double _r{};
Datum* _ppvar;
Datum* _thread;
@@ -353,7 +353,7 @@ namespace neuron {
_r = id_ina_localize_arguments(_lmc, inst, node_data, id, _ppvar, _thread, nt, *getarg(1));
return(_r);
}
static void _hoc_id_x(void) {
static void _hoc_id_x() {
double _r{};
Datum* _ppvar;
Datum* _thread;
@@ -384,7 +384,7 @@ namespace neuron {
_r = id_x_localize_arguments(_lmc, inst, node_data, id, _ppvar, _thread, nt, *getarg(1));
return(_r);
}
static void _hoc_id_g(void) {
static void _hoc_id_g() {
double _r{};
Datum* _ppvar;
Datum* _thread;
@@ -415,7 +415,7 @@ namespace neuron {
_r = id_g_localize_arguments(_lmc, inst, node_data, id, _ppvar, _thread, nt, *getarg(1));
return(_r);
}
static void _hoc_id_s(void) {
static void _hoc_id_s() {
double _r{};
Datum* _ppvar;
Datum* _thread;
@@ -446,7 +446,7 @@ namespace neuron {
_r = id_s_localize_arguments(_lmc, inst, node_data, id, _ppvar, _thread, nt, *getarg(1));
return(_r);
}
static void _hoc_id_p(void) {
static void _hoc_id_p() {
double _r{};
Datum* _ppvar;
Datum* _thread;
18 changes: 9 additions & 9 deletions function/neuron/non_threadsafe.cpp
Original file line number Diff line number Diff line change
@@ -191,12 +191,12 @@ namespace neuron {


/* declaration of user functions */
static void _hoc_x_plus_a(void);
static double _npy_x_plus_a(Prop*);
static void _hoc_v_plus_a(void);
static double _npy_v_plus_a(Prop*);
static void _hoc_identity(void);
static double _npy_identity(Prop*);
static void _hoc_x_plus_a();
static double _npy_x_plus_a(Prop* _prop);
static void _hoc_v_plus_a();
static double _npy_v_plus_a(Prop* _prop);
static void _hoc_identity();
static double _npy_identity(Prop* _prop);


/* connect user functions to hoc names */
@@ -213,7 +213,7 @@ namespace neuron {
{"identity", _npy_identity},
{nullptr, nullptr}
};
static void _hoc_x_plus_a(void) {
static void _hoc_x_plus_a() {
double _r{};
Datum* _ppvar;
Datum* _thread;
@@ -247,7 +247,7 @@ namespace neuron {
_r = x_plus_a_non_threadsafe(_lmc, inst, node_data, id, _ppvar, _thread, nt, *getarg(1));
return(_r);
}
static void _hoc_v_plus_a(void) {
static void _hoc_v_plus_a() {
double _r{};
Datum* _ppvar;
Datum* _thread;
@@ -278,7 +278,7 @@ namespace neuron {
_r = v_plus_a_non_threadsafe(_lmc, inst, node_data, id, _ppvar, _thread, nt, *getarg(1));
return(_r);
}
static void _hoc_identity(void) {
static void _hoc_identity() {
double _r{};
Datum* _ppvar;
Datum* _thread;
12 changes: 6 additions & 6 deletions function/neuron/point_functions.cpp
Original file line number Diff line number Diff line change
@@ -202,9 +202,9 @@ namespace neuron {


/* declaration of user functions */
static double _hoc_x_plus_a(void*);
static double _hoc_v_plus_a(void*);
static double _hoc_identity(void*);
static double _hoc_x_plus_a(void * _vptr);
static double _hoc_v_plus_a(void * _vptr);
static double _hoc_identity(void * _vptr);


/* connect user functions to hoc names */
@@ -220,7 +220,7 @@ namespace neuron {
{"identity", _hoc_identity},
{nullptr, nullptr}
};
static double _hoc_x_plus_a(void* _vptr) {
static double _hoc_x_plus_a(void * _vptr) {
double _r{};
Datum* _ppvar;
Datum* _thread;
@@ -240,7 +240,7 @@ namespace neuron {
_r = x_plus_a_point_functions(_lmc, inst, node_data, id, _ppvar, _thread, nt, *getarg(1));
return(_r);
}
static double _hoc_v_plus_a(void* _vptr) {
static double _hoc_v_plus_a(void * _vptr) {
double _r{};
Datum* _ppvar;
Datum* _thread;
@@ -260,7 +260,7 @@ namespace neuron {
_r = v_plus_a_point_functions(_lmc, inst, node_data, id, _ppvar, _thread, nt, *getarg(1));
return(_r);
}
static double _hoc_identity(void* _vptr) {
static double _hoc_identity(void * _vptr) {
double _r{};
Datum* _ppvar;
Datum* _thread;
Loading

0 comments on commit 777104d

Please sign in to comment.