#include <../../nrnconf.h>
#include "../nrnpython/nrnpython_config.h"
#include "hoc.h"
#include "hocstr.h"
#include "equation.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <math.h>
#include <errno.h>
#include "parse.hpp"
#include "hocparse.h"
#include "ocfunc.h"
#include "ocmisc.h"
#include "nrnmpi.h"
#include "nrnfilewrap.h"
#include "../nrniv/backtrace_utils.h"
#include <ctype.h>
#include <signal.h>
#include <setjmp.h>
Go to the source code of this file.
|
| void | nrn_feenableexcept () |
| |
| void | start_profile (int i) |
| |
| void | add_profile (int i) |
| |
| void | pr_profile (void) |
| |
| char * | readline (const char *prompt) |
| |
| void | rl_deprep_terminal (void) |
| |
| void | add_history (const char *) |
| |
| static int | follow (int expect, int ifyes, int ifno) |
| |
| static int | Getc (NrnFILEWrap *fp) |
| |
| static void | unGetc (int c, NrnFILEWrap *fp) |
| |
| static int | backslash (int c) |
| |
| void | nrn_exit (int i) |
| |
| static RETSIGTYPE | sigpipe_handler (int sig) |
| |
| int | getnb (void) |
| |
| static char * | optarray (char *buf) |
| |
| int | yylex (void) |
| |
| void | arayinstal (void) |
| |
| int | hoc_arayinfo_install (Symbol *sp, int nsub) |
| |
| void | hoc_freearay (Symbol *sp) |
| |
| void | free_arrayinfo (Arrayinfo *a) |
| |
| void | defnonly (const char *s) |
| |
| void | hoc_show_errmess_always (void) |
| |
| void | hoc_newobj1_err () |
| | unref partially constructed objects controlled by current longjump handle More...
|
| |
| void * | nrn_get_hoc_jmp () |
| | If one of the two jmp_buf is controlling the longjmp hoc_newobj1_err needs handle to know how much to unwrap the newobj1 stack. More...
|
| |
| void | hoc_execerror_mes (const char *s, const char *t, int prnt) |
| |
| void | hoc_execerror (const char *s, const char *t) |
| |
| RETSIGTYPE | onintr (int sig) |
| |
| void | hoc_coredump_on_error (void) |
| |
| void | print_bt () |
| |
| RETSIGTYPE | fpecatch (int sig) |
| |
| int | hoc_pid (void) |
| |
| void | hoc_main1_init (const char *pname, const char **envp) |
| |
| HocStr * | hocstr_create (size_t size) |
| |
| static CHAR * | fgets_unlimited_nltrans (HocStr *s, NrnFILEWrap *f, int nltrans) |
| |
| char * | fgets_unlimited (HocStr *s, NrnFILEWrap *f) |
| |
| void | hocstr_delete (HocStr *hs) |
| |
| void | hocstr_resize (HocStr *hs, size_t n) |
| |
| void | hocstr_copy (HocStr *hs, const char *buf) |
| |
| static int | hoc_run1 (void) |
| |
| int | hoc_main1 (int argc, const char **argv, const char **envp) |
| |
| void | hoc_final_exit (void) |
| |
| void | hoc_quit (void) |
| |
| int | moreinput (void) |
| |
| void | hoc_run (void) |
| |
| static void | set_signals (void) |
| |
| static void | restore_signals (void) |
| |
| static void | nrn_inputbuf_getline (void) |
| |
| void | oc_save_input_info (const char **i1, int *i2, int *i3, NrnFILEWrap **i4) |
| |
| void | oc_restore_input_info (const char *i1, int i2, int i3, NrnFILEWrap *i4) |
| |
| int | hoc_oc (const char *buf) |
| |
| void | warning (const char *s, const char *t) |
| |
| int | hoc_yyparse (void) |
| |
| CHAR * | hoc_fgets_unlimited (HocStr *bufstr, NrnFILEWrap *f) |
| |
| int | hoc_get_line (void) |
| |
| void | hoc_help (void) |
| |
◆ CBUFSIZE
◆ CHAR
◆ EPS
◆ HAS_SIGPIPE
◆ NRN_FLOAT_EXCEPTION
| #define NRN_FLOAT_EXCEPTION 0 |
◆ READLINE
◆ TMPBUFSIZE
◆ YYNEEDMORE
◆ SignalType
| typedef RETSIGTYPE(* SignalType) (int) |
◆ add_history()
| void add_history |
( |
const char * |
| ) |
|
◆ add_profile()
| void add_profile |
( |
int |
i | ) |
|
◆ arayinstal()
◆ backslash()
| static int backslash |
( |
int |
c | ) |
|
|
static |
◆ defnonly()
| void defnonly |
( |
const char * |
s | ) |
|
◆ fgets_unlimited()
◆ fgets_unlimited_nltrans()
◆ follow()
| static int follow |
( |
int |
expect, |
|
|
int |
ifyes, |
|
|
int |
ifno |
|
) |
| |
|
static |
◆ fpecatch()
| RETSIGTYPE fpecatch |
( |
int |
sig | ) |
|
◆ free_arrayinfo()
◆ Getc()
◆ getnb()
◆ hoc_coredump_on_error()
◆ hoc_fgets_unlimited()
◆ hoc_help()
◆ hoc_main1_init()
| void hoc_main1_init |
( |
const char * |
pname, |
|
|
const char ** |
envp |
|
) |
| |
◆ hoc_newobj1_err()
unref partially constructed objects controlled by current longjump handle
Definition at line 546 of file hoc_oop.cpp.
◆ hoc_quit()
◆ hoc_run()
◆ hoc_run1()
| static int hoc_run1 |
( |
void |
| ) |
|
|
static |
◆ hoc_show_errmess_always()
◆ hoc_yyparse()
◆ hocstr_copy()
| void hocstr_copy |
( |
HocStr * |
hs, |
|
|
const char * |
buf |
|
) |
| |
◆ hocstr_create()
| HocStr* hocstr_create |
( |
size_t |
size | ) |
|
◆ hocstr_delete()
◆ hocstr_resize()
◆ moreinput()
◆ nrn_feenableexcept()
◆ nrn_get_hoc_jmp()
| void* nrn_get_hoc_jmp |
( |
| ) |
|
If one of the two jmp_buf is controlling the longjmp hoc_newobj1_err needs handle to know how much to unwrap the newobj1 stack.
Definition at line 697 of file hoc.cpp.
◆ nrn_inputbuf_getline()
| static void nrn_inputbuf_getline |
( |
void |
| ) |
|
|
static |
◆ oc_restore_input_info()
| void oc_restore_input_info |
( |
const char * |
i1, |
|
|
int |
i2, |
|
|
int |
i3, |
|
|
NrnFILEWrap * |
i4 |
|
) |
| |
◆ oc_save_input_info()
| void oc_save_input_info |
( |
const char ** |
i1, |
|
|
int * |
i2, |
|
|
int * |
i3, |
|
|
NrnFILEWrap ** |
i4 |
|
) |
| |
◆ onintr()
| RETSIGTYPE onintr |
( |
int |
sig | ) |
|
◆ optarray()
| static char* optarray |
( |
char * |
buf | ) |
|
|
static |
◆ pr_profile()
◆ print_bt()
◆ readline()
| char* readline |
( |
const char * |
prompt | ) |
|
◆ restore_signals()
◆ rl_deprep_terminal()
◆ set_signals()
◆ sigpipe_handler()
| static RETSIGTYPE sigpipe_handler |
( |
int |
sig | ) |
|
|
static |
◆ start_profile()
| void start_profile |
( |
int |
i | ) |
|
◆ unGetc()
◆ warning()
| void warning |
( |
const char * |
s, |
|
|
const char * |
t |
|
) |
| |
◆ yylex()
◆ begin
◆ cbuf
◆ control_jmpbuf
◆ coredump
◆ ctp
◆ debug_message_
◆ eos
◆ gargc
◆ gargv
◆ hoc_cbufstr
◆ hoc_execerror_messages
| int hoc_execerror_messages |
◆ hoc_ictp
◆ hoc_in_yyparse
◆ hoc_interviews
◆ hoc_main1_inited_
◆ hoc_oc_begin
◆ hoc_oc_jmpbuf
◆ hoc_print_first_instance
| int hoc_print_first_instance |
|
extern |
◆ hoc_promptstr
| const char* hoc_promptstr |
◆ hoc_tmpbuf
◆ hoc_usegui
◆ hoc_xopen_file_
◆ hoc_xopen_file_size_
| size_t hoc_xopen_file_size_ |
|
extern |
◆ indef
◆ infile
◆ intset
◆ lineno
◆ neuron_home
◆ nrn_feenableexcept_
| int nrn_feenableexcept_ = 0 |
◆ nrn_global_argc
◆ nrn_global_argv
◆ nrn_inputbufptr
| const char* nrn_inputbufptr |
|
static |
◆ nrn_istty_
◆ nrn_nobanner_
◆ oc_jump_target_
◆ p_nrnpy_pyrun
| int(* p_nrnpy_pyrun) (const char *fname) |
( |
const char * |
fname | ) |
|
◆ pipeflag
◆ progname
◆ RCS_hoc_date
◆ RCS_hoc_version
◆ signals
◆ yystart