pref 1640 src/simh/sim_console.c t_stat sim_open_logfile (const char *filename, t_bool binary, FILE **pf, FILEREF **pref) pref 1650 src/simh/sim_console.c sim_close_logfile (pref); pref 1656 src/simh/sim_console.c *pref = sim_log_ref; pref 1657 src/simh/sim_console.c if (*pref) pref 1658 src/simh/sim_console.c ++(*pref)->refcount; pref 1664 src/simh/sim_console.c *pref = sim_deb_ref; pref 1665 src/simh/sim_console.c if (*pref) pref 1666 src/simh/sim_console.c ++(*pref)->refcount; pref 1670 src/simh/sim_console.c *pref = NULL; pref 1674 src/simh/sim_console.c *pref = NULL; pref 1677 src/simh/sim_console.c *pref = (FILEREF *)calloc (1, sizeof(**pref)); pref 1678 src/simh/sim_console.c if (!*pref) pref 1681 src/simh/sim_console.c strncpy ((*pref)->name, gbuf, sizeof((*pref)->name)); pref 1687 src/simh/sim_console.c FREE (*pref); pref 1688 src/simh/sim_console.c *pref = NULL; pref 1691 src/simh/sim_console.c (*pref)->file = *pf; pref 1692 src/simh/sim_console.c (*pref)->refcount = 1; /* need close */ pref 1699 src/simh/sim_console.c t_stat sim_close_logfile (FILEREF **pref) pref 1701 src/simh/sim_console.c if (NULL == *pref) pref 1703 src/simh/sim_console.c (*pref)->refcount = (*pref)->refcount - 1; pref 1704 src/simh/sim_console.c if ((*pref)->refcount > 0) { pref 1705 src/simh/sim_console.c *pref = NULL; pref 1708 src/simh/sim_console.c fclose ((*pref)->file); pref 1709 src/simh/sim_console.c FREE (*pref); pref 1710 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);