4.115
Last change
on this file since 92d8038 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.2 KB
|
Rev | Line | |
---|
[c42d1a4] | 1 | /** |
---|
| 2 | * @file |
---|
| 3 | * |
---|
| 4 | * @ingroup ClassicUserExtensions |
---|
[ac97074f] | 5 | * |
---|
[c42d1a4] | 6 | * @brief User Extensions Implementation. |
---|
| 7 | */ |
---|
[28352fae] | 8 | |
---|
[c42d1a4] | 9 | /* |
---|
[0e87deaa] | 10 | * COPYRIGHT (c) 1989-2007. |
---|
[ac97074f] | 11 | * On-Line Applications Research Corporation (OAR). |
---|
| 12 | * |
---|
| 13 | * The license and distribution terms for this file may be |
---|
| 14 | * found in the file LICENSE in this distribution or at |
---|
[2ba508b] | 15 | * http://www.rtems.com/license/LICENSE. |
---|
[ac97074f] | 16 | */ |
---|
| 17 | |
---|
[16351f7a] | 18 | #if HAVE_CONFIG_H |
---|
| 19 | #include "config.h" |
---|
| 20 | #endif |
---|
| 21 | |
---|
[ac97074f] | 22 | #include <rtems/system.h> |
---|
| 23 | #include <rtems/rtems/support.h> |
---|
| 24 | #include <rtems/score/object.h> |
---|
| 25 | #include <rtems/score/thread.h> |
---|
| 26 | #include <rtems/extension.h> |
---|
| 27 | |
---|
| 28 | rtems_status_code rtems_extension_delete( |
---|
[c42d1a4] | 29 | rtems_id id |
---|
[ac97074f] | 30 | ) |
---|
| 31 | { |
---|
| 32 | Extension_Control *the_extension; |
---|
| 33 | Objects_Locations location; |
---|
| 34 | |
---|
| 35 | the_extension = _Extension_Get( id, &location ); |
---|
| 36 | switch ( location ) { |
---|
| 37 | case OBJECTS_LOCAL: |
---|
| 38 | _User_extensions_Remove_set( &the_extension->Extension ); |
---|
| 39 | _Objects_Close( &_Extension_Information, &the_extension->Object ); |
---|
| 40 | _Extension_Free( the_extension ); |
---|
| 41 | _Thread_Enable_dispatch(); |
---|
| 42 | return RTEMS_SUCCESSFUL; |
---|
[30cd5393] | 43 | |
---|
| 44 | #if defined(RTEMS_MULTIPROCESSING) |
---|
| 45 | case OBJECTS_REMOTE: /* should never return this */ |
---|
| 46 | #endif |
---|
| 47 | case OBJECTS_ERROR: |
---|
| 48 | break; |
---|
[ac97074f] | 49 | } |
---|
| 50 | |
---|
[30cd5393] | 51 | return RTEMS_INVALID_ID; |
---|
[ac97074f] | 52 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.