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 |
Requires: |
24 |
#include <stdio.h> |
25 |
#include "utilities/ascConfig.h" |
26 |
#include "compiler.h" |
27 |
#include "expr_types.h" |
28 |
#include "symtab.h" |
29 |
*//* |
30 |
by Tom Epperly |
31 |
Last in CVS: $Revision: 1.5 $ $Date: 1998/04/16 00:43:29 $ $Author: ballan $ |
32 |
*/ |
33 |
|
34 |
#ifndef ASC_NAMEIO_H |
35 |
#define ASC_NAMEIO_H |
36 |
|
37 |
#include <utilities/ascConfig.h> |
38 |
|
39 |
extern void WriteName(FILE *f, CONST struct Name *n); |
40 |
/**< |
41 |
* Write n to file f. No leading or trailing spaces are added, |
42 |
* and no trailing newline is added. |
43 |
*/ |
44 |
|
45 |
extern void WriteNameNode(FILE *f, CONST struct Name *n); |
46 |
/**< |
47 |
* Write just this one name node, and not any of the ones following it. |
48 |
*/ |
49 |
|
50 |
ASC_DLLSPEC(char*) WriteNameString(CONST struct Name *n); |
51 |
/**< |
52 |
* Return a string containing the name. |
53 |
* User is responsible for freeing string. |
54 |
*/ |
55 |
|
56 |
extern void WriteName2Str(Asc_DString *dstring, CONST struct Name *n); |
57 |
/**< |
58 |
* Write n to dstring. No leading or trailing spaces are added, |
59 |
* and no trailing newline is added. |
60 |
*/ |
61 |
|
62 |
extern void WriteNameNode2Str(Asc_DString *dstring,CONST struct Name *n); |
63 |
/**< |
64 |
* Write just this one name node, and not any of the ones following it. |
65 |
*/ |
66 |
|
67 |
#endif /* ASC_NAMEIO_H */ |
68 |
|