NEURON
fileio.cpp File Reference
#include <../../nrnconf.h>
#include <stdio.h>
#include <stdlib.h>
#include <cstdarg>
#include <unistd.h>
#include "hoc.h"
#include "ocmisc.h"
#include "hocstr.h"
#include "hoclist.h"
#include "parse.hpp"
#include "hocparse.h"
#include <setjmp.h>
#include <errno.h>
#include "nrnfilewrap.h"
#include "nrnjava.h"

Go to the source code of this file.

Macros

#define oc_popen   popen
 
#define oc_pclose   pclose
 
#define hoc_load_file_size_   1024
 
#define va_copy(dest, src)   (dest = src)
 

Functions

void hoc_stdout (void)
 
void ropen (void)
 
void wopen (void)
 
const char * expand_env_var (const char *s)
 
char * hoc_current_xopen (void)
 
int hoc_xopen1 (const char *name, const char *rcs)
 
void xopen (void)
 
void Fprint (void)
 
void PRintf (void)
 
void hoc_Sprint (void)
 
double hoc_scan (FILE *fi)
 
double hoc_fw_scan (NrnFILEWrap *fi)
 
void Fscan (void)
 
void hoc_Getstr (void)
 
void hoc_sprint1 (char **ppbuf, int argn)
 
static int hoc_Load_file (int, const char *)
 
static void hoc_load (const char *stype)
 
void hoc_load_java (void)
 
void hoc_load_proc (void)
 
void hoc_load_func (void)
 
void hoc_load_template (void)
 
void hoc_load_file (void)
 
char * hoc_back2forward (char *)
 
void hoc_getcwd (void)
 
void hoc_machine_name (void)
 
int hoc_chdir (const char *path)
 
void hoc_Chdir (void)
 
void nrnpy_set_pr_etal (int(*cbpr_stdoe)(int, char *), int(*cbpass)())
 
void nrnpy_pass ()
 
static int vnrnpy_pr_stdoe (FILE *stream, const char *fmt, va_list ap)
 
int nrnpy_pr (const char *fmt,...)
 
int Fprintf (FILE *stream, const char *fmt,...)
 
void hoc_execerr_ext (const char *fmt,...)
 printf style specification of hoc_execerror message. More...
 

Variables

jmp_buf begin
 
char * neuron_home
 
NrnFILEWrapfrin
 
FILE * fout
 
size_t hoc_xopen_file_size_
 
char * hoc_xopen_file_
 
Pfri p_hoc_load_java
 
int nrn_is_python_extension
 
static int(* nrnpy_pr_stdoe_callback )(int, char *)
 
static int(* nrnpy_pass_callback )()
 

Macro Definition Documentation

◆ hoc_load_file_size_

#define hoc_load_file_size_   1024

◆ oc_pclose

#define oc_pclose   pclose

Definition at line 578 of file fileio.cpp.

◆ oc_popen

#define oc_popen   popen

Definition at line 577 of file fileio.cpp.

◆ va_copy

#define va_copy (   dest,
  src 
)    (dest = src)

Function Documentation

◆ Fprint()

void Fprint ( void  )

Definition at line 326 of file fileio.cpp.

◆ Fscan()

void Fscan ( void  )

Definition at line 404 of file fileio.cpp.

◆ hoc_back2forward()

char* hoc_back2forward ( char *  )

Definition at line 193 of file mswinprt.cpp.

◆ hoc_Chdir()

void hoc_Chdir ( void  )

Definition at line 865 of file fileio.cpp.

◆ hoc_current_xopen()

char* hoc_current_xopen ( void  )

Definition at line 225 of file fileio.cpp.

◆ hoc_fw_scan()

double hoc_fw_scan ( NrnFILEWrap fi)

Definition at line 384 of file fileio.cpp.

◆ hoc_getcwd()

void hoc_getcwd ( void  )

Definition at line 817 of file fileio.cpp.

◆ hoc_Getstr()

void hoc_Getstr ( void  )

Definition at line 419 of file fileio.cpp.

◆ hoc_load()

static void hoc_load ( const char *  stype)
static

Definition at line 583 of file fileio.cpp.

◆ hoc_Load_file()

static int hoc_Load_file ( int  always,
const char *  name 
)
static

Definition at line 659 of file fileio.cpp.

◆ hoc_load_file()

void hoc_load_file ( void  )

Definition at line 645 of file fileio.cpp.

◆ hoc_load_func()

void hoc_load_func ( void  )

Definition at line 634 of file fileio.cpp.

◆ hoc_load_java()

void hoc_load_java ( void  )

Definition at line 620 of file fileio.cpp.

◆ hoc_load_proc()

void hoc_load_proc ( void  )

Definition at line 629 of file fileio.cpp.

◆ hoc_load_template()

void hoc_load_template ( void  )

Definition at line 639 of file fileio.cpp.

◆ hoc_machine_name()

void hoc_machine_name ( void  )

Definition at line 847 of file fileio.cpp.

◆ hoc_Sprint()

void hoc_Sprint ( void  )

Definition at line 351 of file fileio.cpp.

◆ hoc_stdout()

void hoc_stdout ( void  )

Definition at line 43 of file fileio.cpp.

◆ nrnpy_set_pr_etal()

void nrnpy_set_pr_etal ( int(*)(int, char *)  cbpr_stdoe,
int(*)()  cbpass 
)

Definition at line 875 of file fileio.cpp.

◆ PRintf()

void PRintf ( void  )

Definition at line 337 of file fileio.cpp.

◆ ropen()

void ropen ( void  )

Definition at line 93 of file fileio.cpp.

◆ vnrnpy_pr_stdoe()

static int vnrnpy_pr_stdoe ( FILE *  stream,
const char *  fmt,
va_list  ap 
)
static

Definition at line 888 of file fileio.cpp.

◆ wopen()

void wopen ( void  )

Definition at line 122 of file fileio.cpp.

◆ xopen()

void xopen ( void  )

Definition at line 314 of file fileio.cpp.

Variable Documentation

◆ begin

jmp_buf begin

Definition at line 193 of file hoc.cpp.

◆ fout

FILE* fout

Definition at line 26 of file fileio.cpp.

◆ frin

NrnFILEWrap* frin

Definition at line 25 of file fileio.cpp.

◆ hoc_xopen_file_

char* hoc_xopen_file_

Definition at line 223 of file fileio.cpp.

◆ hoc_xopen_file_size_

size_t hoc_xopen_file_size_

Definition at line 222 of file fileio.cpp.

◆ neuron_home

char* neuron_home

Definition at line 268 of file hoc_init.cpp.

◆ nrn_is_python_extension

int nrn_is_python_extension

Definition at line 871 of file fileio.cpp.

◆ nrnpy_pass_callback

int(* nrnpy_pass_callback) ()
static

Definition at line 873 of file fileio.cpp.

◆ nrnpy_pr_stdoe_callback

int(* nrnpy_pr_stdoe_callback) (int, char *)
static

Definition at line 872 of file fileio.cpp.

◆ p_hoc_load_java

Pfri p_hoc_load_java

Definition at line 619 of file fileio.cpp.