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 (void)strncpy ((*pref)->name, gbuf, sizeof((*pref)->name) - 1); pref 1686 src/simh/sim_console.c (*pref)->name[sizeof((*pref)->name) - 1] = '\0'; pref 1692 src/simh/sim_console.c FREE (*pref); pref 1693 src/simh/sim_console.c *pref = NULL; pref 1696 src/simh/sim_console.c (*pref)->file = *pf; pref 1697 src/simh/sim_console.c (*pref)->refcount = 1; /* need close */ pref 1704 src/simh/sim_console.c t_stat sim_close_logfile (FILEREF **pref) pref 1706 src/simh/sim_console.c if (NULL == *pref) pref 1708 src/simh/sim_console.c (*pref)->refcount = (*pref)->refcount - 1; pref 1709 src/simh/sim_console.c if ((*pref)->refcount > 0) { pref 1710 src/simh/sim_console.c *pref = NULL; pref 1713 src/simh/sim_console.c fclose ((*pref)->file); pref 1714 src/simh/sim_console.c FREE (*pref); pref 1715 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);