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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 373 - (show annotations) (download) (as text)
Tue Mar 14 08:39:37 2006 UTC (16 years, 6 months ago) by johnpye
File MIME type: text/x-chdr
File size: 2580 byte(s)
Tidied up formatting in measures.a4l
Added GPL notice to cavity.a4c
Fixed up reconfig to turn OFF gcov testing by default.
Removed some debug output from typedef.c and instantiate.c and arrayinst.c.
Commenting changes in extinst.h.
Working on getting the buildbot working :-)
1 /*
2 * Ascend Instance Tree Type Definitions
3 * by Tom Epperly
4 * 8/16/89
5 * Version: $Revision: 1.6 $
6 * Version control file: $RCSfile: extinst.h,v $
7 * Date last modified: $Date: 1997/07/18 12:29:35 $
8 * Last modified by: $Author: mthomas $
9 *
10 * This file is part of the Ascend Language Interpreter.
11 *
12 * Copyright (C) 1990, 1993, 1994 Thomas Guthrie Epperly
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
30 /** @file
31 * Ascend Instance Tree Type Definitions.
32 * Special stuff for External Relations.
33 * <pre>
34 * When #including extinst.h, make sure these files are #included first:
35 * #include "utilities/ascConfig.h"
36 * #include "instance_enum.h"
37 * </pre>
38 */
39
40 #ifndef ASC_EXTINST_H
41 #define ASC_EXTINST_H
42
43 extern struct Instance **g_ExtVariablesTable;
44 /**<
45 * A global variable which is non NULL if external relations have been
46 * processed and have hence added variables to the table. After use it
47 * should be appropriately reset.
48 */
49
50 extern struct Instance **AddVarToTable(struct Instance *inst, int *added);
51 /**<
52 * Given an instance will store it in the ExtVariablesTable and will return
53 * the 'handle' to the instance. If variable existed already, it will not
54 * be added. If there was a failure then the variable will not be added.
55 * This is reflected in the variable "added".
56 */
57
58 extern void FixExternalVars(struct Instance *old, struct Instance *new);
59 /**<
60 * Replaces old with new in the table.
61 * This will be called only for MODEL_INSTS.
62 */
63
64 extern void SetSimulationExtVars(struct Instance *i, struct Instance **extvars);
65 /**<
66 * Will set the given extvar table to the instance. Not for the casual user !!
67 * Could not avoid exporting this one. I would rather have not.
68 * However instantiate needs to be able to set this table when finished.
69 */
70
71 #endif /* ASC_EXTINST_H */
72

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