File: internal.h

package info (click to toggle)
shhmsg 1.4.1-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 148 kB
  • ctags: 78
  • sloc: ansic: 319; makefile: 134; sh: 10
file content (31 lines) | stat: -rw-r--r-- 870 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/* $Id: internal.h,v 1.4 2002/03/02 19:37:36 sverrehu Exp $ */
#ifndef INTERNAL_SHHMSG_H
#define INTERNAL_SHHMSG_H

#include <stdio.h>  /* FILE */

/* streams for error messages, verbose messages, and general messages. */
#define MSG_DEFAULT_ERROR_STREAM stderr
#define MSG_DEFAULT_VERBOSE_STREAM stderr
#define MSG_DEFAULT_MESSAGE_STREAM stdout

extern FILE *_msgErrorStream;
extern FILE *_msgVerboseStream;
extern FILE *_msgMessageStream;

#define GET_ERROR_STREAM \
    ((_msgErrorStream == NULL) \
        ? MSG_DEFAULT_ERROR_STREAM \
        : _msgErrorStream)
#define GET_VERBOSE_STREAM \
    ((_msgVerboseStream == NULL) \
        ? MSG_DEFAULT_VERBOSE_STREAM \
        : _msgVerboseStream)
#define GET_MESSAGE_STREAM \
    ((_msgMessageStream == NULL) \
        ? MSG_DEFAULT_MESSAGE_STREAM \
        : _msgMessageStream)

extern int _msgShowNameAlways;

#endif