/[ascend]/trunk/base/generic/general/listio.h
ViewVC logotype

Contents of /trunk/base/generic/general/listio.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 59 - (show annotations) (download) (as text)
Sun Oct 30 01:38:20 2005 UTC (18 years, 7 months ago) by jds
File MIME type: text/x-chdr
File size: 1776 byte(s)
- prototype unit test suite based on CUnit added.
- unit tests for base/generic/general and base/generic/utilites added.
- 2nd manual rework of doxygen documentation in general and utilities.
- bug fixes (mostly general & utilities) found during test development.
- added asc_assert prototype to redirect failures to Asc_Panic() and enable decoupling assertions from NDEBUG.
- some modifications of interface & implementation to facilitate testing.
- utilities/ascPrint & utilities/ascMalloc functions now always included in base libs to minimize recompilation when an interface chooses different options.
1 /*
2 * List I/O Routines
3 * by Ben Allan
4 * Created: 12/97
5 * Version: $Revision: 1.2 $
6 * Version control file: $RCSfile: listio.h,v $
7 * Date last modified: $Date: 1998/06/16 15:47:42 $
8 * Last modified by: $Author: mthomas $
9 *
10 * This file is part of the ASCEND Language Interpreter
11 *
12 * Copyright (C) 1998 Carnegie Mellon University
13 *
14 * The ASCEND Language Interpreter is free software; you can
15 * redistribute it and/or modify it under the terms of the GNU
16 * General Public License as published by the Free Software
17 * Foundation; either version 2 of the License, or (at your option)
18 * any later version.
19 *
20 * The ASCEND Language Interpreter is distributed in hope that it
21 * will be useful, but WITHOUT ANY WARRANTY; without even the implied
22 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23 * See the GNU General Public License for more details.
24 *
25 * You should have received a copy of the GNU General Public License
26 * along with the program; if not, write to the Free Software
27 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139 USA. Check
28 * the file named COPYING. COPYING is found in ../compiler.
29 */
30
31 /** @file
32 * List I/O Routines.
33 * <pre>
34 * Requires:
35 * #include "utilities/ascConfig.h"
36 * #include "general/list.h"
37 * </pre>
38 */
39
40 #ifndef __listio_h_seen__
41 #define __listio_h_seen__
42
43 /**
44 * Write the data in a list (as ints/pointers) to a file stream.
45 * If fp is NULL, the the listing is to stderr. The list pointer
46 * may not be NULL (checked by assertion).
47 *
48 * @param fp File stream to receive listing (stderr if fp == NULL).
49 * @param l The gl_list_t to write to fp (non-NULL).
50 */
51 extern void gl_write_list(FILE *fp, struct gl_list_t *l);
52
53 #endif /* __listio_h_seen__ */
54

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