#include <../../nrnconf.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include "hoc.h"#include "parse.h"#include "hoclist.h"
Functions | |
| void | print_symlist (char *s, Symlist *tab) |
| Symbol * | hoc_table_lookup (char *s, Symlist *tab) |
| Symbol * | lookup (char *s) |
| Symbol * | install (char *s, int t, double d, Symlist **list) |
| Symbol * | hoc_install_var (char *name, double *pval) |
| hoc_unlink_symbol (Symbol *s, Symlist *list) | |
| hoc_link_symbol (Symbol *sp, Symlist *list) | |
| hoc_malchk () | |
| char * | hoc_Emalloc (unsigned n) |
| char * | hoc_Ecalloc (unsigned n, unsigned size) |
| void * | nrn_cacheline_alloc (void **memptr, size_t size) |
| void * | nrn_cacheline_calloc (void **memptr, size_t nmemb, size_t size) |
| char * | hoc_Erealloc (char *ptr, unsigned size) |
| hoc_free_symspace (Symbol *s1) | |
| sym_extra_alloc (Symbol *sym) | |
| free_list (Symlist **list) | |
| hoc_free_val (double *p) | |
| hoc_free_val_array (double *p, int size) | |
| hoc_free_object (Object *p) | |
| hoc_free_string (char *p) | |
| hoc_free_pstring (char **p) | |
Variables | |
| Symlist * | symlist = (Symlist *)0 |
| Symlist * | p_symlist = (Symlist *)0 |
| free_list | ( | Symlist ** | list | ) |
References hoc_free_symspace(), Symbol::name, and Symbol::next.

| char* hoc_Ecalloc | ( | unsigned | n, | |
| unsigned | size | |||
| ) |
| char* hoc_Emalloc | ( | unsigned | n | ) |
| char* hoc_Erealloc | ( | char * | ptr, | |
| unsigned | size | |||
| ) |
| hoc_free_object | ( | Object* | p | ) |
References notify_pointer_freed().
Referenced by hoc_obj_unref().

| hoc_free_pstring | ( | char** | p | ) |
| hoc_free_string | ( | char* | p | ) |
Referenced by hoc_assign_str().
| hoc_free_symspace | ( | Symbol * | s1 | ) |
References Fprintf, free_arrayinfo(), free_list, hoc_dec_refcount(), hoc_free_allobjects(), hoc_obj_unref(), hoc_top_level_data, hoc_warning(), i, hoc_Item::next, OBJECTALIAS, OPOBJ, STOP, STRING, and VARALIAS.
Referenced by free_list(), hoc_begintemplate(), and hoc_delete_symbol().

| hoc_free_val | ( | double* | p | ) |
| hoc_free_val_array | ( | double* | p, | |
| int | size | |||
| ) |
References notify_freed_val_array().
Referenced by hoc_freearay().

| Symbol* hoc_install_var | ( | char* | name, | |
| double* | pval | |||
| ) |
References hoc_install(), Symbol::pval, s, Symbol::subtype, Symbol::type, Symbol::u, and USERDOUBLE.
Referenced by init().

References Symlist::first, Symlist::last, and Symbol::next.
Referenced by install(), and make_pointprocess().
| hoc_malchk | ( | ) |
References execerror.
Referenced by arayinstal(), Codraw_preamble(), KSChan::newppsym(), nrn_cacheline_alloc(), nrn_cacheline_calloc(), nrn_prop_data_alloc(), nrn_prop_datum_alloc(), nrnisaac_new(), nrnmpi_spike_compress(), and KSChan::setname().
References Symlist::first, Symbol::name, and Symbol::next.
References assert, Symlist::first, Symlist::last, and Symbol::next.
Referenced by KSChan::freesym(), java2nrn_class(), and make_pointprocess().
References Symbol::arayinfo, Symbol::defined_on_the_fly, emalloc, Symbol::extra, hoc_install_object_data_index(), hoc_link_symbol(), Proc::list, Symbol::name, NOTUSER, OPVAL, Symbol::pnum, Symbol::public, Symbol::s_varn, Proc::size, Strcpy, Symbol::subtype, Symbol::type, Symbol::u, and Symbol::u_proc.

| Symbol* lookup | ( | char * | s | ) |
References fprintf(), hoc_Emalloc(), and hoc_malchk().
Referenced by nrn_cacheline_calloc().

References hoc_Ecalloc(), hoc_malchk(), i, n, and nrn_cacheline_alloc().

References Symlist::first, Symbol::name, and Symbol::next.
| sym_extra_alloc | ( | Symbol* | sym | ) |
References ecalloc.
Referenced by hoc_symbol_limits(), hoc_symbol_tolerance(), and hoc_symbol_units().
1.6.3