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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 669 - (show annotations) (download) (as text)
Wed Jun 21 07:00:45 2006 UTC (13 years, 8 months ago) by johnpye
File MIME type: text/x-chdr
File size: 3138 byte(s)
Merged changes from DAE branch (revisions 702 to 819) back into trunk.
This adds the Integration API to the ASCEND solver (in base/generic).
Also provides pre-alpha support for 'IDA' from the SUNDIALS suite, a DAE solver.
Many other minor code clean-ups, including adoption of new 'ASC_NEW' and friends (to replace 'ascmalloc')
Added some very sketchy stuff providing 'DIFF(...)' syntax, although it is anticipated that this will be removed.
1 /*
2 * Temporary Variable Module
3 * by Tom Epperly
4 * Created: 1/17/90
5 * Version: $Revision: 1.6 $
6 * Version control file: $RCSfile: temp.h,v $
7 * Date last modified: $Date: 1998/02/05 16:38:10 $
8 * Last modified by: $Author: ballan $
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 along
25 * with the program; if not, write to the Free Software Foundation, Inc., 675
26 * Mass Ave, Cambridge, MA 02139 USA. Check the file named COPYING.
27 */
28
29 /** @file
30 * Temporary Variable Module.
31 * <pre>
32 * When #including temp.h, make sure these files are #included first:
33 * #include "utilities/ascConfig.h"
34 * #include "fractions.h"
35 * #include "compiler.h"
36 * #include "dimen.h"
37 * #include "expr_types.h"
38 * #include "value_type.h"
39 * </pre>
40 */
41
42 #ifndef __TEMP_H_SEEN__
43 #define __TEMP_H_SEEN__
44
45 extern void AddTemp(symchar *name);
46 /**<
47 * <!-- void AddTemp(name) -->
48 * <!-- const char *name; -->
49 * Make a temporary variable called name. Assume that one doesn't
50 * already exist.
51 */
52
53 extern void SetTemp(symchar *name, struct value_t value);
54 /**<
55 * <!-- void SetTemp(name,value) -->
56 * <!-- const char *name; -->
57 * <!-- struct value_t value; -->
58 * Set the value of a temporary variable.
59 */
60
61 extern void RemoveTemp(symchar *name);
62 /**<
63 * <!-- void RemoveTemp(name) -->
64 * <!-- const char *name; -->
65 * Remove a temporary variable called name.
66 */
67
68 extern int TempExists(symchar *name);
69 /**<
70 * <!-- int TempExists(name) -->
71 * <!-- const char *name; -->
72 * Return true is a temporary variable of the given name exists.
73 */
74
75 extern struct value_t TempValue(symchar *name);
76 /**<
77 * <!-- struct value_t TempValue(name) -->
78 * <!-- const char *name; -->
79 * Return the value of a temporary variable.
80 */
81
82 extern void DestroyTemporaryList(void);
83 /**<
84 * <!-- void DestroyTemporaryList() -->
85 * Free the memory for the temporary variable list.
86 */
87
88 #endif /* __TEMP_H_SEEN__ */
89

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