#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>
#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 RETSIGTYPE(* SignalType)() |
arayinstal | ( | ) |
References Fprintf, hoc_arayinfo_install(), hoc_Ecalloc(), hoc_execerror(), hoc_freearay(), hoc_malchk(), Symbol::name, OPVAL, pc, Symbol::s_varn, spop, and Symbol::type.
defnonly | ( | char * | s | ) |
References acterror.
execerror | ( | char * | s, | |
char * | t | |||
) |
References frame_debug(), hoc_errno_check(), hoc_in_yyparse, hoc_menu_cleanup(), hoc_oop_initaftererror(), hoc_win_normal_cursor(), IGNORE, nrnmpi_abort(), nrnmpi_numprocs_world, oc_jump_target_, and warning.
char* fgets_unlimited | ( | HocStr * | s, | |
FILE * | f | |||
) |
References HocStr::buf, hocstr_resize(), n, and HocStr::size.
Referenced by hoc_Getstr(), and System().
follow | ( | expect | , | |
ifyes | , | |||
ifno | ||||
) |
free_arrayinfo | ( | Arrayinfo* | a | ) |
Referenced by hoc_arayinfo_install(), hoc_free_symspace(), and hoc_freearay().
int Getc | ( | FILE * | fp | ) |
References hoc_get_line().
Referenced by backslash(), follow(), getnb(), and yylex().
References emalloc, execerror, free_arrayinfo(), int, OPARINFO, and xpop.
Referenced by add_section(), arayinstal(), and hoc_objvardecl().
CHAR* hoc_fgets_unlimited | ( | HocStr* | bufstr, | |
FILE* | f | |||
) |
Referenced by hoc_get_line().
hoc_final_exit | ( | ) |
References bbs_done(), buf, hoc_audit_from_final_exit(), hoc_close_plot(), hoc_edit_quit(), hoc_pid(), hoc_win32_cleanup(), ivoc_cleanup(), NOT_PARALLEL_SUB, p_nrnpython_start, and system().
Referenced by hoc_parallel_end(), hoc_quit(), ivocmain(), and main().
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().
int hoc_get_line | ( | ) |
References HocStr::buf, CBUFSIZE, CHAR, hoc_audit_command(), hoc_check_intupt(), hoc_execerror(), hoc_fgets_unlimited(), hoc_notify_value(), hoc_pipegets(), hoc_pipegets_need(), hocstr_resize(), n, run_til_stdin(), and HocStr::size.
Referenced by Getc(), and hoc_yyparse().
hoc_help | ( | ) |
hoc_main1 | ( | argc | , | |
argv | , | |||
envp | ||||
) |
References emalloc, hoc_audit_from_hoc_main1(), hoc_main1_init(), hoc_readcheckpoint(), hoc_set_unhandled_exception_filter(), moreinput, nrn_exit(), and save_parallel_argv().
Referenced by ivocmain(), main(), and parallel_hoc_main().
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().
int hoc_oc | ( | char * | buf | ) |
References HocStr::buf, execerror, execute, hoc_edit(), hoc_ParseExec(), hoc_yyparse(), hocstr_resize(), initcode, oc_jump_target_, and progbase.
Referenced by hoc_install_hoc_obj(), hoc_Load_file(), hoc_obj_run(), hoc_val_pointer(), and moreinput().
int hoc_pid | ( | ) |
References getpid().
Referenced by hoc_audit_from_emacs(), hoc_audit_from_hoc_main1(), hoc_final_exit(), and hoc_saveaudit().
hoc_quit | ( | ) |
hoc_run | ( | ) |
hoc_show_errmess_always | ( | ) |
int hoc_yyparse | ( | ) |
References hoc_edit(), hoc_execerror(), and hoc_get_line().
Referenced by hoc_oc(), hoc_ParseExec(), and hoc_xopen_run().
hocstr_copy | ( | HocStr* | hs, | |
char* | buf | |||
) |
References HocStr::buf, emalloc, and HocStr::size.
Referenced by expand_env_var(), hoc_exec_cmd(), hoc_main1_init(), hoc_parse_expr(), hoc_parse_stmt(), hoc_val_pointer(), moreinput(), prexpr(), prstr(), sprint(), System(), and yylex().
Referenced by hoc_exec_cmd(), hoc_parse_expr(), hoc_parse_stmt(), hoc_val_pointer(), moreinput(), and System().
References erealloc.
Referenced by expand_env_var(), fgets_unlimited(), hoc_get_line(), hoc_oc(), hocstr_copy(), prexpr(), prstr(), sprint(), System(), and yylex().
moreinput | ( | ) |
References HocStr::buf, err, Fprintf, hoc_execerror(), hoc_menu_cleanup(), hoc_oc(), hocstr_create(), hocstr_delete(), IGNORE, moreinput, and p_nrnpy_pyrun.
Referenced by _modl_set_dt(), hoc_main1(), hoc_main1_init(), hoc_on_init_register(), hoc_reg_ba(), ion_reg(), and register_mech().
void pr_profile | ( | ) |
warning | ( | char * | s, | |
char * | t | |||
) |
References CHAR, Fprintf, IGNORE, n, nrnmpi_myid_world, and nrnmpi_numprocs_world.
yylex | ( | ) |
References acterror, backslash, HocStr::buf, d, do_equation, emalloc, follow, Getc(), getnb, hocstr_create(), hocstr_resize(), IGNORE, install, lookup, n, s, HocStr::size, Strcpy, Symbol::type, unGetc(), and YYNEEDMORE.
jmp_buf begin |
CHAR* ctp |
double EPS |
FILE* fin |
char** gargv |
Referenced by hoc_execute1().
Referenced by hoc_pipeflush().
int hoc_in_yyparse = 0 |
Referenced by execerror(), and hoc_ParseExec().
int hoc_interviews = 0 |
Referenced by hoc_obvar_declare(), and ivocmain().
char* hoc_promptstr |
Referenced by hoc_Getstr(), and System().
Referenced by ivocmain().
char hoc_xopen_file_[] |
char* infile |
char* neuron_home |
Referenced by hoc_reg_singlechan(), and ivocmain().
Referenced by hoc_last_init(), and ivocmain().
void(* oc_jump_target_)() |
Referenced by OcJumpImpl::begin(), execerror(), OcJumpImpl::finish(), and hoc_oc().
int(* p_nrnpy_pyrun)(char *fname) |
Referenced by moreinput(), and nrnpython_start().
char* progname |
char* RCS_hoc_date |
char* RCS_hoc_version |
Referenced by batch_run(), nrn_fixed_step_group(), and onintr().