NEURON
nrnfilewrap.h
Go to the documentation of this file.
1
#pragma once
2
#include "
hocstr.h
"
3
#include "
nrnmpiuse.h
"
4
5
#include <stdio.h>
6
#include <stdlib.h>
7
8
using
NrnFILEWrap
= FILE;
9
#define nrn_fw_wrap(f) f
10
#define nrn_fw_delete(fw)
/**/
11
#define nrn_fw_eq(fw, ff) (fw == ff)
12
#define nrn_fw_fclose fclose
13
#define nrn_fw_set_stdin() stdin
14
#define nrn_fw_fopen fopen
15
#define nrn_fw_fseek fseek
16
#define nrn_fw_getc(fw) getc(fw)
17
#define nrn_fw_ungetc(c, fw) ungetc(c, fw)
18
#define nrn_fw_fscanf fscanf
19
20
extern
char
*
fgets_unlimited
(
HocStr
*
s
,
NrnFILEWrap
* f);
21
extern
NrnFILEWrap
*
hoc_fin
;
hocstr.h
fgets_unlimited
char * fgets_unlimited(HocStr *s, NrnFILEWrap *f)
Definition:
hoc.cpp:838
hoc_fin
NrnFILEWrap * hoc_fin
Definition:
hoc.cpp:152
NrnFILEWrap
FILE NrnFILEWrap
Definition:
nrnfilewrap.h:8
s
s
Definition:
multisend.cpp:521
nrnmpiuse.h
HocStr
Definition:
hocstr.h:6
src
oc
nrnfilewrap.h