OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [tools/] [src/] [infra/] [checkdata.cxx] - Blame information for rev 778

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 26 unneback
//{{{  Banner                                           
2
 
3
//============================================================================
4
//
5
//      checkdata.cxx
6
//
7
//      Host side implementation of the check_func() and check_data()
8
//      utilities.
9
//
10
//============================================================================
11
//####COPYRIGHTBEGIN####
12
//                                                                          
13
// ----------------------------------------------------------------------------
14
// Copyright (C) 1998, 1999, 2000 Red Hat, Inc.
15
//
16
// This file is part of the eCos host tools.
17
//
18
// This program is free software; you can redistribute it and/or modify it 
19
// under the terms of the GNU General Public License as published by the Free 
20
// Software Foundation; either version 2 of the License, or (at your option) 
21
// any later version.
22
// 
23
// This program is distributed in the hope that it will be useful, but WITHOUT 
24
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 
25
// FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for 
26
// more details.
27
// 
28
// You should have received a copy of the GNU General Public License along with
29
// this program; if not, write to the Free Software Foundation, Inc., 
30
// 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
31
//
32
// ----------------------------------------------------------------------------
33
//                                                                          
34
//####COPYRIGHTEND####
35
//============================================================================
36
//#####DESCRIPTIONBEGIN####
37
//
38
// Author(s):   bartv
39
// Contact(s):  bartv
40
// Date:        1998/12/02
41
// Version:     0.01
42
// Purpose:     To provide a host-side implementation of two of the
43
//              eCos assertion facilities. facilities.
44
//
45
//####DESCRIPTIONEND####
46
//============================================================================
47
 
48
//}}}
49
//{{{  #include's                                       
50
 
51
#include "cyg/infra/cyg_ass.h"
52
 
53
//}}}
54
 
55
// -------------------------------------------------------------------------
56
// It is convenient to have cyg_check_data_ptr() and cyg_check_func_ptr()
57
// in a separate file from cyg_assert_fail(). That way users can override
58
// cyg_assert_fail() itself in application code without losing access to
59
// the check_data and check_func routines.
60
//
61
// The actual implementation is very limited. It might be possible to
62
// do better on specific platforms.
63
 
64
extern "C" cyg_bool
65
cyg_check_data_ptr( void * ptr )
66
{
67
    return 0 != ptr;
68
}
69
 
70
extern "C" cyg_bool
71
cyg_check_func_ptr ( void (*ptr)(void) )
72
{
73
    return 0 != ptr;
74
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.