1 #include <../../nrnconf.h>
38 #define AUDIT_SCRIPT_DIR "$NEURONHOME/lib/auditscripts"
39 #define AUDIT_DIR "AUDIT"
98 if (
argv[
i][0] !=
'-') {
113 hoc_warning(
"auditing failed in pipesend",
"turning off");
197 id = (int)
chkarg(1, 0., 1e7);
210 constexpr
auto rm_str =
"rm ";
216 bp[strlen(bp) - 1] =
'\0';
249 fprintf(stderr,
"should now delete %s", retdir);
259 buf[strlen(
buf) - 1] =
'\0';
261 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)
sprintf(buf, " if (secondorder) {\n" " int _i;\n" " for (_i = 0; _i < %d; ++_i) {\n" " _p[_slist%d[_i]] += dt*_p[_dlist%d[_i]];\n" " }}\n", numeqn, listnum, listnum)
double chkarg(int, double low, double high)
void hoc_execerror(const char *, const char *)
void hoc_audit_command(const char *buf)
void hoc_xopen_from_audit(const char *fname)
void hoc_audit_from_xopen1(const char *fname, const char *rcs)
int hoc_retrieve_audit(int id)
void hoc_warning(const char *, const char *)
int hoc_retrieving_audit(void)
void hoc_on_init_register(Pfrv pf)
void hoc_audit_from_hoc_main1(int argc, const char **argv, const char **envp)
void hoc_audit_from_final_exit(void)
int hoc_xopen1(const char *filename, const char *rcs)
char * getenv(const char *s)
FILE * popen(char *s1, char *s2)
int const size_t const size_t n
static double save(void *v)
static const char * fname(const char *name)