FreeCalypso > hg > freecalypso-tools
diff rvinterf/lowlevel/output.c @ 940:ec5f51d33fdc
rvinterf code structure: factor out output_cont_logpref()
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Wed, 24 May 2023 06:43:15 +0000 |
parents | 65953c172f24 |
children |
line wrap: on
line diff
--- a/rvinterf/lowlevel/output.c Wed May 24 06:29:13 2023 +0000 +++ b/rvinterf/lowlevel/output.c Wed May 24 06:43:15 2023 +0000 @@ -50,3 +50,13 @@ if (logF) fprintf(logF, "%s\n", item); } + +void +output_cont_logpref(item) + char *item; +{ + if (logF) + fprintf(logF, "%s\n", item); + else if (!no_output) + printf("%s\n", item); +}