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