CCUnit  2.1
A C Unit Testing Library
 全て データ構造 ファイル 関数 変数 型定義 列挙型 列挙型の値 マクロ定義 グループ ページ
CCUnitConfig.h
説明を見る。
1 /* -*- C -*- */
2 /* Copyright (C) 2003, 2010 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 
28 #ifndef CCUNITCONFIG_H
29 #define CCUNITCONFIG_H
30 
31 #include <ccunit/config.h>
32 
33 #if CCUNIT_STDC_HEADERS
34 #include <stdlib.h>
35 #include <string.h>
36 #endif
37 
38 #if CCUNIT_WITH_DMALLOC
39 # include <dmalloc.h>
40 #endif
41 
42 #if CCUNIT_HAVE_STDBOOL_H
43 #include <stdbool.h>
44 #elif defined (__cplusplus)
45 #elif CCUNIT_HAVE__BOOL
46 #define bool _Bool
47 #define true ((bool)1)
48 #define false ((bool)0)
49 #elif !defined (bool)
50 #define bool int
51 #define true (1)
52 #define false (0)
53 #endif
54 
60 #define safe_free(p) (!p ? NULL : (free ((void*)p), (p) = NULL))
61 
67 #define safe_strdup(s) (!s ? NULL : strdup (s))
68 
69 #endif
SourceForge.jp hosts this site. Send comments to: CCUnit Developer