/[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 502 - (show annotations) (download) (as text)
Tue Apr 18 12:57:30 2006 UTC (18 years, 2 months ago) by johnpye
File MIME type: text/x-chdr
File size: 2250 byte(s)
Added check to see that YACC runs OK.
Fixing build with MSVC++ 2005.
All builds now except for some problems in the SWIG-generated code.
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 ASC_DLLSPEC(FILE *) g_ascend_errors; /**< File for error messages. Default is stderr. */
49 ASC_DLLSPEC(FILE *) g_ascend_warnings; /**< File for warning messages. Default is stderr. */
50 ASC_DLLSPEC(FILE *) g_ascend_information; /**< File for informational messages. Default is stderr. */
51
52 ASC_DLLSPEC(void) Asc_RedirectCompilerDefault(void);
53 /**< Set the default files/streams to receive ASCEND messages. */
54
55 extern void Asc_RedirectCompilerStreams(FILE *errfile,
56 FILE *warnfile,
57 FILE *infofile);
58 /**< Set specific files/streams to receive ASCEND messages. */
59
60 #endif /* ASC_REDIRECTFILE_H*/
61

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