4.115
Last change
on this file since da154e14 was
9b4422a2,
checked in by Joel Sherrill <joel.sherrill@…>, on 05/03/12 at 15:09:24
|
Remove All CVS Id Strings Possible Using a Script
Script does what is expected and tries to do it as
smartly as possible.
+ remove occurrences of two blank comment lines
next to each other after Id string line removed.
+ remove entire comment blocks which only exited to
contain CVS Ids
+ If the processing left a blank line at the top of
a file, it was removed.
|
-
Property mode set to
100644
|
File size:
1.0 KB
|
Line | |
---|
1 | /* __assert - small RTEMS Specific Implementation |
---|
2 | * |
---|
3 | * COPYRIGHT (c) 2007. |
---|
4 | * On-Line Applications Research Corporation (OAR). |
---|
5 | * |
---|
6 | * The license and distribution terms for this file may be |
---|
7 | * found in the file LICENSE in this distribution or at |
---|
8 | * http://www.rtems.com/license/LICENSE. |
---|
9 | */ |
---|
10 | |
---|
11 | #if HAVE_CONFIG_H |
---|
12 | #include "config.h" |
---|
13 | #endif |
---|
14 | |
---|
15 | #include <rtems/bspIo.h> |
---|
16 | #include <rtems.h> |
---|
17 | |
---|
18 | #if defined(RTEMS_NEWLIB) && !defined(HAVE___ASSERT_FUNC) |
---|
19 | /* |
---|
20 | * Newlib 1.16.0 added this method. Together these provide an |
---|
21 | * RTEMS safe, low memory implementation. |
---|
22 | */ |
---|
23 | void __assert_func( |
---|
24 | const char *file, |
---|
25 | int line, |
---|
26 | const char *func, |
---|
27 | const char *failedexpr |
---|
28 | ) |
---|
29 | { |
---|
30 | printk("assertion \"%s\" failed: file \"%s\", line %d%s%s\n", |
---|
31 | failedexpr, |
---|
32 | file, |
---|
33 | line, |
---|
34 | (func) ? ", function: " : "", |
---|
35 | (func) ? func : "" |
---|
36 | ); |
---|
37 | rtems_fatal_error_occurred(0); |
---|
38 | } |
---|
39 | #endif |
---|
40 | |
---|
41 | #if defined(RTEMS_NEWLIB) && !defined(HAVE___ASSERT) |
---|
42 | void __assert( |
---|
43 | const char *file, |
---|
44 | int line, |
---|
45 | const char *failedexpr |
---|
46 | ) |
---|
47 | { |
---|
48 | __assert_func (file, line, NULL, failedexpr); |
---|
49 | } |
---|
50 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.