1 #include <../../nrnconf.h> 3 #include <nrnpython_config.h> 12 #define ITERATE_REMOVE(q1,q2,lst) for (q1 = (lst)->next; q1 != (lst); q1 = q2){ \ 14 if (q1->element.sec->prop == NULL) { \ 64 hoc_execerror(
"Too many parameters. SectionList.append takes 0 or 1 arguments", (
char*)0);
105 for (first = last->
next, last = i, j = first; j->
prev != last; j = j->
next) {
143 if (!
sec->parentsec) {
193 for (q = sl->
next; q != sl; q = q1) {
218 for (
q =
sl->next;
q !=
sl;
q = q1) {
221 if (
s->volatile_mark++) {
275 int (*checkpoint)(
void **),
285 #define relative(pc) (pc + (pc)->i) 293 hoc_execerror(ob->ctemplate->sym->name,
" is not a SectionList");
316 for (q = sl->
next; q != sl; q = q1) {
void(* nrnpy_sectionlist_helper_)(List *, Object *)=0
static Item * subtree1(List *sl, Section *sec)
static double children(void *v)
Section *(* nrnpy_o2sec_p_)(Object *o)
static double contains(void *v)
struct Section * parentsec
#define ITERATE(itm, lst)
static double seclist_remove(void *v)
static double subtree(void *v)
check_obj_type(o, "SectionList")
void forall_sectionlist(void)
Symbol * nrnpy_pyobj_sym_
static double wholetree(void *v)
void forall_section(void)
static void destruct(void *v)
static double printnames(void *v)
static void destructor(void *v)
static Item * children1(List *sl, Section *sec)
const char * secname(Section *sec)
void hoc_warning(const char *, const char *)
void nrn_pushsec(Section *sec)
void hoc_execerror(const char *, const char *)
#define ForAllSections(sec)
static void * constructor(Object *ho)
static Member_func members[]
Item * lappendsec(List *list, Section *sec)
static void check(Object *ob)
static double allroots(void *v)
static void * cons(Object *o)
void section_ref(Section *)
#define ITERATE_REMOVE(q1, q2, lst)
void class2oc(const char *, void *(*cons)(Object *), void(*destruct)(void *), Member_func *, int(*checkpoint)(void **), Member_ret_obj_func *, Member_ret_str_func *)
static double unique(void *v)
void freelist(List **plist)
Section * nrn_secarg(int i)
void lvappendsec_and_ref(void *sl, Section *sec)
void section_unref(Section *)
Object ** hoc_objgetarg(int)
Section * chk_access(void)
void SectionList_reg(void)
static double append(void *v)