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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1063 - (show annotations) (download) (as text)
Sun Jan 7 07:54:06 2007 UTC (17 years, 9 months ago) by johnpye
File MIME type: text/x-chdr
File size: 2559 byte(s)
Changed ASC_DLLSPEC(TYPE) to ASC_DLLSPEC TYPE, because it was causing havoc with doxygen and ctags.
1 /* ASCEND modelling environment
2 Copyright (C) 1990, 1993, 1994 Thomas Guthrie Epperly
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 *//**
20 @file
21 Instance Checking Routines.
22
23 Requires:
24 #include <stdio.h>
25 #include "utilities/ascConfig.h"
26 #include "instance_enum.h"
27 #include "compiler.h"
28 *//*
29 by Tom Epperly
30 Created: 5/4/1990
31 Version: $Revision: 1.8 $
32 Version control file: $RCSfile: check.h,v $
33 Date last modified: $Date: 1997/07/18 12:28:19 $
34 Last modified by: $Author: mthomas $
35 */
36
37 #ifndef ASC_CHECK_H
38 #define ASC_CHECK_H
39
40 #include <utilities/ascConfig.h>
41
42 #define CheckInstance(a,b) CheckInstanceLevel((a),(b),5)
43 ASC_DLLSPEC void CheckInstanceLevel(FILE *f, CONST struct Instance *i, int pass);
44 /**<
45 * Perform all the possible consistency checks possible, and check for
46 * as many errors as possible. This won't modify anything.
47 * The value of pass determines which pending statements will be
48 * printed.
49 * pass == 0: do not print pendings <br>
50 * pass == 1: IS_As and other constructors only <br>
51 * pass == 2: relations also <br>
52 * pass == 3: logical relations also <br>
53 * pass == 4: whens also <br>
54 * pass == 5: defaults also <br>
55 */
56
57 extern void CheckInstanceStructure(FILE *f, CONST struct Instance *i);
58 /**<
59 * Perform popular consistency checks possible, and check for
60 * as many errors as possible. This won't modify anything.
61 * This doesn't warn about unassigned real constants, basically.
62 */
63
64 extern void InstanceTokenStatistics(FILE *f, CONST struct Instance *i);
65 /**<
66 * This compiles and prints various token relation statistics for
67 * this instance tree.
68 */
69
70 ASC_DLLSPEC void InstanceStatistics(FILE *f, CONST struct Instance *i);
71 /**<
72 * This compiles and prints various statistics about this instance tree.
73 */
74
75 #endif /* ASC_CHECK_H */
76

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