/[ascend]/trunk/base/generic/compiler/redirectFile.h
ViewVC logotype

Contents of /trunk/base/generic/compiler/redirectFile.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 928 - (show annotations) (download) (as text)
Wed Nov 22 10:32:18 2006 UTC (17 years ago) by johnpye
File MIME type: text/x-chdr
File size: 2318 byte(s)
Commented out some stream redirection stuff for simplicity.
The CUnit test suite now works as expected (but without output suppression, for the moment).
Some more effort on IDA (ongoing).
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 #include <utilities/ascConfig.h>
47
48 #ifdef REIMPLEMENT_STREAMS
49 ASC_DLLSPEC(FILE *) g_ascend_errors; /**< File for error messages. Default is stderr. */
50 ASC_DLLSPEC(FILE *) g_ascend_warnings; /**< File for warning messages. Default is stderr. */
51 ASC_DLLSPEC(FILE *) g_ascend_information; /**< File for informational messages. Default is stderr. */
52
53 ASC_DLLSPEC(void) Asc_RedirectCompilerDefault(void);
54 /**< Set the default files/streams to receive ASCEND messages. */
55
56 ASC_DLLSPEC(void ) Asc_RedirectCompilerStreams(FILE *errfile,
57 FILE *warnfile,
58 FILE *infofile);
59 /**< Set specific files/streams to receive ASCEND messages. */
60
61 #endif /* REIMPLEMENT_STREAMS */
62
63 #endif /* ASC_REDIRECTFILE_H*/
64

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22