pref 1619 src/simh/sim_console.c t_stat sim_open_logfile (const char *filename, t_bool binary, FILE **pf, FILEREF **pref) pref 1629 src/simh/sim_console.c sim_close_logfile (pref); pref 1635 src/simh/sim_console.c *pref = sim_log_ref; pref 1636 src/simh/sim_console.c if (*pref) pref 1637 src/simh/sim_console.c ++(*pref)->refcount; pref 1643 src/simh/sim_console.c *pref = sim_deb_ref; pref 1644 src/simh/sim_console.c if (*pref) pref 1645 src/simh/sim_console.c ++(*pref)->refcount; pref 1649 src/simh/sim_console.c *pref = NULL; pref 1653 src/simh/sim_console.c *pref = NULL; pref 1656 src/simh/sim_console.c *pref = (FILEREF *)calloc (1, sizeof(**pref)); pref 1657 src/simh/sim_console.c if (!*pref) pref 1660 src/simh/sim_console.c strncpy ((*pref)->name, gbuf, sizeof((*pref)->name)); pref 1666 src/simh/sim_console.c FREE (*pref); pref 1667 src/simh/sim_console.c *pref = NULL; pref 1670 src/simh/sim_console.c (*pref)->file = *pf; pref 1671 src/simh/sim_console.c (*pref)->refcount = 1; /* need close */ pref 1678 src/simh/sim_console.c t_stat sim_close_logfile (FILEREF **pref) pref 1680 src/simh/sim_console.c if (NULL == *pref) pref 1682 src/simh/sim_console.c (*pref)->refcount = (*pref)->refcount - 1; pref 1683 src/simh/sim_console.c if ((*pref)->refcount > 0) { pref 1684 src/simh/sim_console.c *pref = NULL; pref 1687 src/simh/sim_console.c fclose ((*pref)->file); pref 1688 src/simh/sim_console.c FREE (*pref); pref 1689 src/simh/sim_console.c *pref = NULL; pref 107 src/simh/sim_console.h t_stat sim_open_logfile (const char *filename, t_bool binary, FILE **pf, FILEREF **pref); pref 108 src/simh/sim_console.h t_stat sim_close_logfile (FILEREF **pref);