|
0
|
1 //=========================================================================== |
|
|
2 // |
|
|
3 // matherr.c |
|
|
4 // |
|
|
5 // Default matherr() error handler |
|
|
6 // |
|
|
7 //=========================================================================== |
|
|
8 //####COPYRIGHTBEGIN#### |
|
|
9 // |
|
|
10 // ------------------------------------------- |
|
|
11 // The contents of this file are subject to the Cygnus eCos Public License |
|
|
12 // Version 1.0 (the "License"); you may not use this file except in |
|
|
13 // compliance with the License. You may obtain a copy of the License at |
|
|
14 // http://sourceware.cygnus.com/ecos |
|
|
15 // |
|
|
16 // Software distributed under the License is distributed on an "AS IS" |
|
|
17 // basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the |
|
|
18 // License for the specific language governing rights and limitations under |
|
|
19 // the License. |
|
|
20 // |
|
|
21 // The Original Code is eCos - Embedded Cygnus Operating System, released |
|
|
22 // September 30, 1998. |
|
|
23 // |
|
|
24 // The Initial Developer of the Original Code is Cygnus. Portions created |
|
|
25 // by Cygnus are Copyright (C) 1998 Cygnus Solutions. All Rights Reserved. |
|
|
26 // ------------------------------------------- |
|
|
27 // |
|
|
28 //####COPYRIGHTEND#### |
|
|
29 //=========================================================================== |
|
|
30 //#####DESCRIPTIONBEGIN#### |
|
|
31 // |
|
|
32 // Author(s): jlarmour@cygnus.co.uk |
|
|
33 // Contributors: jlarmour@cygnus.co.uk |
|
|
34 // Date: 1998-02-13 |
|
|
35 // Purpose: |
|
|
36 // Description: Contains an empty default matherr() function which the user |
|
|
37 // can override if they want |
|
|
38 // Usage: |
|
|
39 // |
|
|
40 //####DESCRIPTIONEND#### |
|
|
41 // |
|
|
42 //=========================================================================== |
|
|
43 |
|
|
44 // CONFIGURATION |
|
|
45 |
|
|
46 #include <pkgconf/libm.h> // Configuration header |
|
|
47 |
|
|
48 // Include the Math library? |
|
|
49 #if defined(CYGPKG_LIBM) |
|
|
50 |
|
|
51 // INCLUDES |
|
|
52 |
|
|
53 #include <cyg/infra/cyg_type.h> // Common type definitions and support |
|
|
54 #include <cyg/infra/cyg_trac.h> // Tracing macros |
|
|
55 |
|
|
56 #include <math.h> // Main header for math library |
|
|
57 #include "mathincl/fdlibm.h" // Internal header for math library |
|
|
58 |
|
|
59 int |
|
|
60 matherr( struct exception *x ) __attribute__ ((weak)); |
|
|
61 |
|
|
62 int |
|
|
63 matherr( struct exception *x ) |
|
|
64 { |
|
|
65 CYG_REPORT_FUNCNAMETYPE( "matherr", "returning %d" ); |
|
|
66 |
|
|
67 CYG_UNUSED_PARAM( struct exception *, x ); |
|
|
68 CYG_EMPTY_STATEMENT; |
|
|
69 |
|
|
70 CYG_REPORT_RETVAL( 0 ); |
|
|
71 return 0; |
|
|
72 } // matherr() |
|
|
73 |
|
|
74 |
|
|
75 #endif // if defined(CYGPKG_LIBM) |
|
|
76 |
|
|
77 // EOF matherr.c |