CCUnit
2.1
A C Unit Testing Library
メインページ
関連ページ
モジュール
データ構造
ファイル
ファイル一覧
グローバル
全て
データ構造
ファイル
関数
変数
型定義
列挙型
列挙型の値
マクロ定義
グループ
ページ
src
ccunit
CCUnitList.h
説明を見る。
1
/* -*- mode: C; -*- */
2
/* Copyright (C) 2003 TSUTSUMI Kikuo.
3
This file is part of the CCUnit Library.
4
5
The CCUnit Library is free software; you can redistribute it and/or
6
modify it under the terms of the GNU Lesser General Public License
7
as published by the Free Software Foundation; either version 2.1 of
8
the License, or (at your option) any later version.
9
10
The CCUnit Library is distributed in the hope that it will be
11
useful, but WITHOUT ANY WARRANTY; without even the implied warranty
12
of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU Lesser General Public License for more details.
14
15
You should have received a copy of the GNU Lesser General Public
16
License along with the CCUnit Library; see the file COPYING.LESSER.
17
If not, write to the Free Software Foundation, Inc., 59 Temple
18
Place - Suite 330, Boston, MA 02111-1307, USA.
19
*/
20
21
/*
22
* $Id$
23
*/
24
29
#ifndef CCUNITLIST_H
30
#define CCUNITLIST_H
31
32
#include <
ccunit/CCUnitConfig.h
>
33
44
typedef
struct
CCUnitList
45
{
46
struct
CCUnitListCell
*
head
;
47
struct
CCUnitListCell
**
tailp
;
48
size_t
length
;
49
bool
isAllocated
;
50
}
CCUnitList
;
51
56
extern
inline
CCUnitList
*
ccunit_newList
();
57
63
extern
void
ccunit_addList
(
CCUnitList
* list,
void
*
contents
);
64
70
extern
CCUnitList
*
ccunit_initList
(
CCUnitList
* list);
71
79
extern
void
ccunit_deleteList
(
CCUnitList
* list,
void
(*deleteContents)(
void
*));
80
90
typedef
struct
CCUnitListIterator
91
{
92
struct
CCUnitListCell
*
current
;
93
bool
isAllocated
;
94
}
CCUnitListIterator
;
95
102
extern
CCUnitListIterator
*
ccunit_newListIterator
(
const
struct
CCUnitList
* list);
103
110
extern
inline
111
CCUnitListIterator
*
ccunit_initListIterator
(
const
struct
CCUnitList
* list,
112
struct
CCUnitListIterator
* it);
113
119
extern
inline
void
ccunit_deleteListIterator
(
struct
CCUnitListIterator
* it);
120
126
extern
void
*
ccunit_nextListIterator
(
struct
CCUnitListIterator
* it);
127
133
extern
bool
ccunit_hasNextListIterator
(
struct
CCUnitListIterator
* it);
134
143
#endif
144
hosts this site.
Send comments to:
CCUnit Developer
CCUnitに対してSat Jul 13 2013 15:09:23に生成されました。
1.8.1.1