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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1291 - (show annotations) (download) (as text)
Mon Feb 26 06:20:43 2007 UTC (17 years, 4 months ago) by johnpye
File MIME type: text/x-chdr
File size: 2054 byte(s)
Added EXTERNAL asc_default_all plus test cases.
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 Temporary name output routine.
22 *//*
23 by Tom Epperly
24 Last in CVS: $Revision: 1.5 $ $Date: 1998/04/16 00:43:29 $ $Author: ballan $
25 */
26
27 #ifndef ASC_NAMEIO_H
28 #define ASC_NAMEIO_H
29
30 #include <stdio.h>
31 #include <utilities/ascConfig.h>
32 #include <general/dstring.h>
33 #include <compiler/compiler.h>
34 #include <compiler/expr_types.h>
35 #include <compiler/symtab.h>
36
37 /** @addtogroup compiler Compiler
38 @{
39 */
40
41 extern void WriteName(FILE *f, CONST struct Name *n);
42 /**<
43 * Write n to file f. No leading or trailing spaces are added,
44 * and no trailing newline is added.
45 */
46
47 extern void WriteNameNode(FILE *f, CONST struct Name *n);
48 /**<
49 * Write just this one name node, and not any of the ones following it.
50 */
51
52 ASC_DLLSPEC char*WriteNameString(CONST struct Name *n);
53 /**<
54 * Return a string containing the name.
55 * User is responsible for freeing string.
56 */
57
58 extern void WriteName2Str(Asc_DString *dstring, CONST struct Name *n);
59 /**<
60 * Write n to dstring. No leading or trailing spaces are added,
61 * and no trailing newline is added.
62 */
63
64 extern void WriteNameNode2Str(Asc_DString *dstring,CONST struct Name *n);
65 /**<
66 * Write just this one name node, and not any of the ones following it.
67 */
68
69 /* @} */
70
71 #endif /* ASC_NAMEIO_H */
72

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