46 lines
2.0 KiB
C
46 lines
2.0 KiB
C
/* ------------------------------------------------------------ */
|
|
/* file information */
|
|
/* ------------------------------------------------------------ */
|
|
|
|
// Filename: eprintf.h
|
|
// Purpose: TTY and error-message routines
|
|
// License: MIT/X. (c) OldCoder (Robert Kiraly) 1987-2022.
|
|
|
|
/* ------------------------------------------------------------ */
|
|
/* header file setup */
|
|
/* ------------------------------------------------------------ */
|
|
|
|
#ifndef _EPRINTF_H /* skip this file if loaded */
|
|
#define _EPRINTF_H 1 /* flag this file */
|
|
|
|
#include "deps.h"
|
|
|
|
/* ------------------------------------------------------------ */
|
|
/* TTY (console mode) flags */
|
|
/* ------------------------------------------------------------ */
|
|
|
|
UX3_EXT char tty_in; /* standard-input TTY flag */
|
|
UX3_EXT char tty_out; /* standard-output TTY flag */
|
|
UX3_EXT char tty_err; /* standard-error TTY flag */
|
|
UX3_EXT char tty_set; /* TTY initialization flag */
|
|
|
|
/* ------------------------------------------------------------ */
|
|
/* function prototypes */
|
|
/* ------------------------------------------------------------ */
|
|
|
|
V_PROTO init_tty (NO_PARAM);
|
|
|
|
#ifndef EPRINTF_P /* see comments in "eprintf.c" */
|
|
/*VARARGS*/ V_PROTO eprintf (argp2 (char *, ...));
|
|
/*VARARGS*/ V_PROTO eprintf2 (argp2 (char *, ...));
|
|
/*VARARGS*/ V_PROTO x_panic (argp2 (char *, ...));
|
|
/*VARARGS*/ V_PROTO x_error (argp2 (char *, ...));
|
|
/*VARARGS*/ V_PROTO x_warn (argp2 (char *, ...));
|
|
#endif /* endif not EPRINTF_P */
|
|
|
|
/* ------------------------------------------------------------ */
|
|
/* wrap it up */
|
|
/* ------------------------------------------------------------ */
|
|
|
|
#endif /* endif _EPRINTF_H */
|