pref 1644 src/simh/sim_console.c t_stat sim_open_logfile (const char *filename, t_bool binary, FILE **pf, FILEREF **pref) pref 1654 src/simh/sim_console.c sim_close_logfile (pref); pref 1660 src/simh/sim_console.c *pref = sim_log_ref; pref 1661 src/simh/sim_console.c if (*pref) pref 1662 src/simh/sim_console.c ++(*pref)->refcount; pref 1668 src/simh/sim_console.c *pref = sim_deb_ref; pref 1669 src/simh/sim_console.c if (*pref) pref 1670 src/simh/sim_console.c ++(*pref)->refcount; pref 1674 src/simh/sim_console.c *pref = NULL; pref 1678 src/simh/sim_console.c *pref = NULL; pref 1681 src/simh/sim_console.c *pref = (FILEREF *)calloc (1, sizeof(**pref)); pref 1682 src/simh/sim_console.c if (!*pref) pref 1685 src/simh/sim_console.c strncpy ((*pref)->name, gbuf, sizeof((*pref)->name)); pref 1691 src/simh/sim_console.c FREE (*pref); pref 1692 src/simh/sim_console.c *pref = NULL; pref 1695 src/simh/sim_console.c (*pref)->file = *pf; pref 1696 src/simh/sim_console.c (*pref)->refcount = 1; /* need close */ pref 1703 src/simh/sim_console.c t_stat sim_close_logfile (FILEREF **pref) pref 1705 src/simh/sim_console.c if (NULL == *pref) pref 1707 src/simh/sim_console.c (*pref)->refcount = (*pref)->refcount - 1; pref 1708 src/simh/sim_console.c if ((*pref)->refcount > 0) { pref 1709 src/simh/sim_console.c *pref = NULL; pref 1712 src/simh/sim_console.c fclose ((*pref)->file); pref 1713 src/simh/sim_console.c FREE (*pref); pref 1714 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);