hoc.c File Reference

#include <../../nrnconf.h>
#include "../nrnpython/nrnpython_config.h"
#include "hoc.h"
#include "hocstr.h"
#include "equation.h"
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <errno.h>
#include "parse.h"
#include "nrnmpi.h"
#include "nrnmpiuse.h"
#include "nrnrtuse.h"
#include <ctype.h>
#include <signal.h>
#include <setjmp.h>
Include dependency graph for hoc.c:
This graph shows which files directly or indirectly include this file:

Defines

#define NRN_FLOAT_EXCEPTION   (defined(SUN4)||defined(linux)) && 0
#define READLINE   1
#define CHAR   char
#define TMPBUFSIZE   512
#define CBUFSIZE   512
#define EPS   hoc_epsilon
#define HAS_SIGPIPE   1
#define YYNEEDMORE   -3

Typedefs

typedef RETSIGTYPE(* SignalType )()

Functions

void start_profile (int i)
void add_profile (int i)
void pr_profile ()
 arayinstal ()
void nrn_exit (int i)
int getnb ()
 yylex ()
 backslash (int c)
 follow (expect, ifyes, ifno)
int hoc_arayinfo_install (Symbol *sp, int nsub)
 hoc_freearay (Symbol *sp)
 free_arrayinfo (Arrayinfo *a)
 defnonly (char *s)
 hoc_show_errmess_always ()
 execerror (char *s, char *t)
RETSIGTYPE onintr (int sig)
 hoc_coredump_on_error ()
RETSIGTYPE fpecatch (int sig)
int hoc_pid ()
 hoc_main1_init (char *pname, char **envp)
HocStrhocstr_create (int size)
char * fgets_unlimited (HocStr *s, FILE *f)
void hocstr_delete (HocStr *hs)
 hocstr_resize (HocStr *hs, int n)
 hocstr_copy (HocStr *hs, char *buf)
 hoc_main1 (argc, argv, envp)
 hoc_final_exit ()
 hoc_quit ()
 moreinput ()
 hoc_run ()
int hoc_oc (char *buf)
 warning (char *s, char *t)
int Getc (FILE *fp)
 unGetc (int c, FILE *fp)
int hoc_yyparse ()
CHAR * hoc_fgets_unlimited (HocStr *bufstr, FILE *f)
int hoc_get_line ()
 hoc_help ()

Variables

int(* p_nrnpy_pyrun )(char *fname)
int nrn_nobanner_
int pipeflag
int hoc_usegui
HocStrhoc_tmpbuf
HocStrhoc_cbufstr
char * hoc_promptstr
CHAR * ctp
int hoc_ictp
Symlistsymlist
Symlistp_symlist
char * RCS_hoc_version
char * RCS_hoc_date
char * neuron_home
int hoc_print_first_instance
double EPS
FILE * fin
char * progname
int lineno
jmp_buf begin
int intset
int indef
char * infile
char hoc_xopen_file_ []
 stoprun
char ** gargv
int gargc
int hoc_execerror_messages
void(* oc_jump_target_ )()
int yystart
int nrn_istty_
int hoc_in_yyparse = 0
int hoc_interviews = 0

Define Documentation

#define CBUFSIZE   512

Referenced by hoc_get_line(), and hoc_main1_init().

#define CHAR   char

Referenced by hoc_get_line(), and warning().

#define EPS   hoc_epsilon
#define HAS_SIGPIPE   1
#define NRN_FLOAT_EXCEPTION   (defined(SUN4)||defined(linux)) && 0
#define READLINE   1
#define TMPBUFSIZE   512

Referenced by hoc_main1_init().

#define YYNEEDMORE   -3

Referenced by yylex().


Typedef Documentation

typedef RETSIGTYPE(* SignalType)()

Function Documentation

void add_profile ( int  i  ) 
arayinstal (  ) 
backslash ( int  c  ) 

References Getc().

Here is the call graph for this function:

defnonly ( char *  s  ) 

References acterror.

execerror ( char *  s,
char *  t 
)
char* fgets_unlimited ( HocStr s,
FILE *  f 
)

References HocStr::buf, hocstr_resize(), n, and HocStr::size.

Referenced by hoc_Getstr(), and System().

Here is the call graph for this function:

follow ( expect  ,
ifyes  ,
ifno   
)

References Getc(), IGNORE, and unGetc().

Here is the call graph for this function:

RETSIGTYPE fpecatch ( int  sig  ) 

References execerror, and fpecatch.

free_arrayinfo ( Arrayinfo a  ) 
int Getc ( FILE *  fp  ) 

References hoc_get_line().

Referenced by backslash(), follow(), getnb(), and yylex().

Here is the call graph for this function:

int getnb (  ) 

References Getc().

Here is the call graph for this function:

int hoc_arayinfo_install ( Symbol sp,
int  nsub 
)

References emalloc, execerror, free_arrayinfo(), int, OPARINFO, and xpop.

Referenced by add_section(), arayinstal(), and hoc_objvardecl().

Here is the call graph for this function:

hoc_coredump_on_error (  ) 

References pushx, and ret.

CHAR* hoc_fgets_unlimited ( HocStr bufstr,
FILE*  f 
)

Referenced by hoc_get_line().

hoc_final_exit (  ) 
hoc_freearay ( Symbol sp  ) 

References free_arrayinfo(), hoc_free_val_array(), hoc_total_array(), OPARINFO, and OPVAL.

Referenced by add_section(), arayinstal(), and hoc_objvardecl().

Here is the call graph for this function:

int hoc_get_line (  ) 
hoc_help (  ) 

References ENDGUI, hoc_warning(), IFGUI, and ivoc_help().

Here is the call graph for this function:

hoc_main1 ( argc  ,
argv  ,
envp   
)
hoc_main1_init ( char *  pname,
char **  envp 
)

References HocStr::buf, CBUFSIZE, fout, Fprintf, frin, hocstr_create(), init, initplot(), nrn_exit(), nrn_is_cable(), parallel_sub, save_parallel_envp(), and TMPBUFSIZE.

Referenced by hoc_main1(), and ivocmain().

Here is the call graph for this function:

int hoc_oc ( char *  buf  ) 
int hoc_pid (  ) 

References getpid().

Referenced by hoc_audit_from_emacs(), hoc_audit_from_hoc_main1(), hoc_final_exit(), and hoc_saveaudit().

Here is the call graph for this function:

hoc_quit (  ) 

References hoc_final_exit(), and ivoc_final_exit().

Here is the call graph for this function:

hoc_run (  ) 
hoc_show_errmess_always (  ) 

References chkarg(), int, pushx, ret, and x.

Here is the call graph for this function:

int hoc_yyparse (  ) 

References hoc_edit(), hoc_execerror(), and hoc_get_line().

Referenced by hoc_oc(), hoc_ParseExec(), and hoc_xopen_run().

Here is the call graph for this function:

hocstr_copy ( HocStr hs,
char*  buf 
)

References hocstr_resize().

Here is the call graph for this function:

HocStr* hocstr_create ( int  size  ) 
void hocstr_delete ( HocStr hs  ) 
hocstr_resize ( HocStr hs,
int  n 
)
moreinput (  ) 

References HocStr::buf, err, Fprintf, hoc_execerror(), hoc_menu_cleanup(), hoc_oc(), hocstr_create(), hocstr_delete(), IGNORE, moreinput, and p_nrnpy_pyrun.

Here is the call graph for this function:

void nrn_exit ( int  i  ) 
RETSIGTYPE onintr ( int  sig  ) 

References execerror, IGNORE, onintr, and stoprun.

void pr_profile (  ) 
void start_profile ( int  i  ) 
unGetc ( int  c,
FILE *  fp 
)

Referenced by follow(), and yylex().

warning ( char *  s,
char *  t 
)
yylex (  ) 

Variable Documentation

jmp_buf begin
CHAR* ctp
double EPS
FILE* fin
char** gargv

Referenced by hoc_execute1().

Referenced by hoc_pipeflush().

Referenced by execerror(), and hoc_ParseExec().

Referenced by hoc_obvar_declare(), and ivocmain().

Referenced by hoc_Getstr(), and System().

Referenced by ivocmain().

char* infile
char* neuron_home

Referenced by hoc_reg_singlechan(), and ivocmain().

Referenced by hoc_last_init(), and ivocmain().

int(* p_nrnpy_pyrun)(char *fname)

Referenced by moreinput(), and nrnpython_start().

char* progname
char* RCS_hoc_date
Generated on Mon Jun 13 08:10:30 2011 for NEURON by  doxygen 1.6.3