1 #include <../../nrnconf.h>
38 #define AUDIT_SCRIPT_DIR "$NEURONHOME/lib/auditscripts"
39 #define AUDIT_DIR "AUDIT"
65 if (getenv(
"HOCAUDIT")) {
98 if (
argv[
i][0] !=
'-') {
113 hoc_warning(
"auditing failed in pipesend",
"turning off");
176 if ((
faudit = fopen(
buf,
"w")) == (FILE*) 0) {
197 id = (int)
chkarg(1, 0., 1e7);
210 constexpr
auto rm_str =
"rm ";
216 bp[strlen(bp) - 1] =
'\0';
243 fprintf(stderr,
"should now delete %s", retdir);
253 buf[strlen(
buf) - 1] =
'\0';
254 if (strncmp(
buf, fname, strlen(fname)) != 0) {
255 fprintf(stderr,
"Warning: xopen_from_audit files have different names %s %s\n", fname,
buf);
static void hoc_audit_init(void)
struct RetrieveAudit RetrieveAudit
static RetrieveAudit retrieve_audit
void hoc_Retrieveaudit(void)
static void xopen_audit(void)
static void pipesend(int type, const char *s)
void hoc_on_init_register(Pfrv pf)
double chkarg(int, double low, double high)
void hoc_audit_command(const char *buf)
void hoc_xopen_from_audit(const char *fname)
int hoc_retrieving_audit(void)
void hoc_audit_from_xopen1(const char *fname, const char *rcs)
int hoc_retrieve_audit(int id)
void hoc_audit_from_final_exit(void)
void hoc_audit_from_hoc_main1(int argc, const char **argv, const char **envp)
int hoc_xopen1(const char *filename, const char *rcs)
void hoc_execerror(const char *s1, const char *s2)
void hoc_warning(const char *s1, const char *s2)
int Sprintf(char(&buf)[N], const char *fmt, Args &&... args)
Redirect sprintf to snprintf if the buffer size can be deduced.
#define nrn_assert(x)
assert()-like macro, independent of NDEBUG status
int const size_t const size_t n
static double save(void *v)