1 |
/* ASCEND modelling environment |
2 |
Copyright (C) 1999 Benjamin A Allan |
3 |
Copyright (C) 2006 Carnegie Mellon University |
4 |
|
5 |
This program is free software; you can redistribute it and/or modify |
6 |
it under the terms of the GNU General Public License as published by |
7 |
the Free Software Foundation; either version 2, or (at your option) |
8 |
any later version. |
9 |
|
10 |
This program is distributed in the hope that it will be useful, |
11 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 |
GNU General Public License for more details. |
14 |
|
15 |
You should have received a copy of the GNU General Public License |
16 |
along with this program; if not, write to the Free Software |
17 |
Foundation, Inc., 59 Temple Place - Suite 330, |
18 |
Boston, MA 02111-1307, USA. |
19 |
*//** @file |
20 |
File redirection for ascend. |
21 |
|
22 |
This module defines the fundamental constants used by the rest of |
23 |
Ascend and pulls in system headers. |
24 |
There is not corresponding compiler.c. The variables |
25 |
declared in this header are defined in ascParse.y. |
26 |
|
27 |
This header and tcl/tk headers are known to conflict. This header |
28 |
should be included AFTER tcl.h or tk.h, not before. |
29 |
|
30 |
Requires: |
31 |
#include "utilities/ascConfig.h" |
32 |
*//* |
33 |
by Ben Allan |
34 |
Version: $Revision: 1.1 $ |
35 |
Version control file: $RCSfile: redirectFile.h,v $ |
36 |
Date last modified: $Date: 2000/01/25 02:26:22 $ |
37 |
Last modified by: $Author: ballan $ |
38 |
|
39 |
ChangeLog |
40 |
10/13/2005 Added Asc_RedirectCompilerStreams() (J.D. St.Clair) |
41 |
*/ |
42 |
|
43 |
#ifndef ASC_REDIRECTFILE_H |
44 |
#define ASC_REDIRECTFILE_H |
45 |
|
46 |
/** addtogroup compiler Compiler |
47 |
@{ |
48 |
*/ |
49 |
|
50 |
#include <utilities/ascConfig.h> |
51 |
|
52 |
#ifdef REIMPLEMENT_STREAMS |
53 |
ASC_DLLSPEC FILE *g_ascend_errors; /**< File for error messages. Default is stderr. */ |
54 |
ASC_DLLSPEC FILE *g_ascend_warnings; /**< File for warning messages. Default is stderr. */ |
55 |
ASC_DLLSPEC FILE *g_ascend_information; /**< File for informational messages. Default is stderr. */ |
56 |
|
57 |
ASC_DLLSPEC void Asc_RedirectCompilerDefault(void); |
58 |
/**< Set the default files/streams to receive ASCEND messages. */ |
59 |
|
60 |
ASC_DLLSPEC void Asc_RedirectCompilerStreams(FILE *errfile, |
61 |
FILE *warnfile, |
62 |
FILE *infofile); |
63 |
/**< Set specific files/streams to receive ASCEND messages. */ |
64 |
|
65 |
#endif /* REIMPLEMENT_STREAMS */ |
66 |
|
67 |
/* @} */ |
68 |
|
69 |
#endif /* ASC_REDIRECTFILE_H*/ |
70 |
|