NEURON
code2.cpp File Reference
#include <../../nrnconf.h>
#include "hocstr.h"
#include "parse.hpp"
#include "hocparse.h"
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <errno.h>
#include "nrnfilewrap.h"
#include <cstring>
#include "utils/logger.hpp"

Go to the source code of this file.

Functions

double chkarg (int, double low, double high)
 
Symbolhoc_table_lookup (const char *, Symlist *)
 
char ** hoc_pgargstr (int)
 
float * hoc_sym_domain (Symbol *sym)
 
HocSymExtensionhoc_var_extra (const char *name)
 
Symbolhoc_name2sym (const char *name)
 
void hoc_Symbol_limits (void)
 
void hoc_symbol_limits (Symbol *sym, float low, float high)
 
void hoc_symbol_tolerance (Symbol *sym, double tol)
 
double check_domain_limits (float *limits, double val)
 
char * hoc_symbol_units (Symbol *sym, const char *units)
 
void hoc_Symbol_units (void)
 
char * hoc_back2forward (char *)
 
char * neuronhome_forward (void)
 
void setneuronhome (const char *)
 
void hoc_neuronhome (void)
 
char * gargstr (int narg)
 
void hoc_Strcmp (void)
 
static int hoc_vsscanf (const char *buf)
 
void hoc_sscanf (void)
 
void hoc_System (void)
 
void hoc_Xred (void)
 
static void symdebug (const char *s, Symlist *list)
 
void hoc_symbols (void)
 
double hoc_run_expr (Symbol *sym)
 
Symbolhoc_parse_expr (const char *str, Symlist **psymlist)
 
void hoc_run_stmt (Symbol *sym)
 
Symbolhoc_parse_stmt (const char *str, Symlist **psymlist)
 
void hoc_pointer ()
 
neuron::container::data_handle< double > hoc_val_handle (std::string_view s)
 
double * hoc_val_pointer (const char *s)
 
void hoc_name_declared (void)
 

Variables

int units_on_flag_
 
char ** gargv
 
int gargc
 
Symlisthoc_built_in_symlist
 
Symlisthoc_top_level_symlist
 
char * neuron_home_dos
 
struct {
   const char *   name
 
   short   t_type
 
type_sym []
 
neuron::container::data_handle< double > hoc_varhandle
 Executing hoc_pointer(&var) will put the address of the variable in this location. More...
 

Function Documentation

◆ gargstr()

char* gargstr ( int  narg)

Definition at line 227 of file code2.cpp.

◆ hoc_back2forward()

char* hoc_back2forward ( char *  )

◆ hoc_name2sym()

Symbol* hoc_name2sym ( const char *  name)

Definition at line 48 of file code2.cpp.

◆ hoc_name_declared()

void hoc_name_declared ( void  )

Definition at line 732 of file code2.cpp.

◆ hoc_neuronhome()

void hoc_neuronhome ( void  )

Definition at line 208 of file code2.cpp.

◆ hoc_pgargstr()

char** hoc_pgargstr ( int  narg)

Definition at line 1623 of file code.cpp.

◆ hoc_pointer()

void hoc_pointer ( void  )

Definition at line 709 of file code2.cpp.

◆ hoc_sscanf()

void hoc_sscanf ( void  )

Definition at line 242 of file code2.cpp.

◆ hoc_Strcmp()

void hoc_Strcmp ( void  )

Definition at line 232 of file code2.cpp.

◆ hoc_sym_domain()

float* hoc_sym_domain ( Symbol sym)

Definition at line 31 of file code2.cpp.

◆ hoc_Symbol_limits()

void hoc_Symbol_limits ( void  )

Definition at line 78 of file code2.cpp.

◆ hoc_symbol_tolerance()

void hoc_symbol_tolerance ( Symbol sym,
double  tol 
)

Definition at line 111 of file code2.cpp.

◆ hoc_Symbol_units()

void hoc_Symbol_units ( void  )

Definition at line 148 of file code2.cpp.

◆ hoc_symbols()

void hoc_symbols ( void  )

Definition at line 593 of file code2.cpp.

◆ hoc_System()

void hoc_System ( void  )

Definition at line 458 of file code2.cpp.

◆ hoc_table_lookup()

Symbol* hoc_table_lookup ( const char *  s,
Symlist tab 
)

Definition at line 48 of file symbol.cpp.

◆ hoc_vsscanf()

static int hoc_vsscanf ( const char *  buf)
static

Definition at line 249 of file code2.cpp.

◆ hoc_Xred()

void hoc_Xred ( void  )

Definition at line 513 of file code2.cpp.

◆ neuronhome_forward()

char* neuronhome_forward ( void  )

Definition at line 190 of file code2.cpp.

◆ setneuronhome()

void setneuronhome ( const char *  )

Definition at line 185 of file ivocmain.cpp.

◆ symdebug()

static void symdebug ( const char *  s,
Symlist list 
)
static

Definition at line 533 of file code2.cpp.

Variable Documentation

◆ gargc

int gargc
extern

Definition at line 168 of file hoc.cpp.

◆ gargv

char** gargv
extern

Definition at line 167 of file hoc.cpp.

◆ hoc_built_in_symlist

Symlist* hoc_built_in_symlist
extern

Definition at line 28 of file symbol.cpp.

◆ hoc_top_level_symlist

Symlist* hoc_top_level_symlist
extern

Definition at line 677 of file code2.cpp.

◆ hoc_varhandle

neuron::container::data_handle<double> hoc_varhandle

Executing hoc_pointer(&var) will put the address of the variable in this location.

Definition at line 707 of file code2.cpp.

◆ name

const char* name

Definition at line 523 of file code2.cpp.

◆ neuron_home_dos

char* neuron_home_dos

Definition at line 206 of file code2.cpp.

◆ t_type

short t_type

Definition at line 524 of file code2.cpp.

◆ 

struct { ... } type_sym[]
Initial value:
= {{"Builtins", BLTIN},
{"Other Builtins", FUN_BLTIN},
{"Functions", FUNCTION},
{"Procedures", PROCEDURE},
{"Undefined", UNDEF},
{"Scalars", VAR},
{0, 0}}
#define FUNCTION(a, b)
Definition: nrngsl.h:5

◆ units_on_flag_

int units_on_flag_

Definition at line 20 of file code2.cpp.