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"

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_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_
 
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 558 of file fileio.cpp.

◆ oc_popen

#define oc_popen   popen

Definition at line 557 of file fileio.cpp.

◆ va_copy

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

Function Documentation

◆ Fprint()

void Fprint ( void  )

Definition at line 302 of file fileio.cpp.

◆ Fscan()

void Fscan ( void  )

Definition at line 381 of file fileio.cpp.

◆ hoc_back2forward()

char* hoc_back2forward ( char *  )

◆ hoc_Chdir()

void hoc_Chdir ( void  )

Definition at line 836 of file fileio.cpp.

◆ hoc_current_xopen()

char* hoc_current_xopen ( void  )

Definition at line 203 of file fileio.cpp.

◆ hoc_fw_scan()

double hoc_fw_scan ( NrnFILEWrap fi)

Definition at line 361 of file fileio.cpp.

◆ hoc_getcwd()

void hoc_getcwd ( void  )

Definition at line 791 of file fileio.cpp.

◆ hoc_Getstr()

void hoc_Getstr ( void  )

Definition at line 396 of file fileio.cpp.

◆ hoc_load()

static void hoc_load ( const char *  stype)
static

Definition at line 563 of file fileio.cpp.

◆ hoc_Load_file()

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

Definition at line 628 of file fileio.cpp.

◆ hoc_load_file()

void hoc_load_file ( void  )

Definition at line 614 of file fileio.cpp.

◆ hoc_load_func()

void hoc_load_func ( void  )

Definition at line 603 of file fileio.cpp.

◆ hoc_load_proc()

void hoc_load_proc ( void  )

Definition at line 598 of file fileio.cpp.

◆ hoc_load_template()

void hoc_load_template ( void  )

Definition at line 608 of file fileio.cpp.

◆ hoc_machine_name()

void hoc_machine_name ( void  )

Definition at line 819 of file fileio.cpp.

◆ hoc_Sprint()

void hoc_Sprint ( void  )

Definition at line 327 of file fileio.cpp.

◆ hoc_stdout()

void hoc_stdout ( void  )

Definition at line 40 of file fileio.cpp.

◆ nrnpy_set_pr_etal()

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

Definition at line 846 of file fileio.cpp.

◆ PRintf()

void PRintf ( void  )

Definition at line 313 of file fileio.cpp.

◆ ropen()

void ropen ( void  )

Definition at line 71 of file fileio.cpp.

◆ vnrnpy_pr_stdoe()

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

Definition at line 861 of file fileio.cpp.

◆ wopen()

void wopen ( void  )

Definition at line 99 of file fileio.cpp.

◆ xopen()

void xopen ( void  )

Definition at line 291 of file fileio.cpp.

Variable Documentation

◆ begin

jmp_buf begin
extern

Definition at line 193 of file hoc.cpp.

◆ fout

FILE* fout

Definition at line 23 of file fileio.cpp.

◆ frin

NrnFILEWrap* frin

Definition at line 22 of file fileio.cpp.

◆ hoc_xopen_file_

char* hoc_xopen_file_

Definition at line 201 of file fileio.cpp.

◆ hoc_xopen_file_size_

size_t hoc_xopen_file_size_

Definition at line 200 of file fileio.cpp.

◆ neuron_home

char* neuron_home
extern

Definition at line 404 of file hoc_init.cpp.

◆ nrn_is_python_extension

int nrn_is_python_extension

Definition at line 842 of file fileio.cpp.

◆ nrnpy_pass_callback

int(* nrnpy_pass_callback) () ( )
static

Definition at line 844 of file fileio.cpp.

◆ nrnpy_pr_stdoe_callback

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

Definition at line 843 of file fileio.cpp.