5
Last change
on this file since 21275b58 was
9c9c6a9,
checked in by Sebastian Huber <sebastian.huber@…>, on 11/21/18 at 16:30:52
|
score: Remove Objects_Information::is_string
Use Objects_Information::name_length to store this information.
Update #3621.
|
-
Property mode set to
100644
|
File size:
979 bytes
|
Line | |
---|
1 | /** |
---|
2 | * @file |
---|
3 | * |
---|
4 | * @brief Removes Object from Namespace |
---|
5 | * |
---|
6 | * @ingroup Score |
---|
7 | */ |
---|
8 | |
---|
9 | /* |
---|
10 | * COPYRIGHT (c) 1989-2008. |
---|
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 |
---|
15 | * http://www.rtems.org/license/LICENSE. |
---|
16 | */ |
---|
17 | |
---|
18 | #if HAVE_CONFIG_H |
---|
19 | #include "config.h" |
---|
20 | #endif |
---|
21 | |
---|
22 | #include <rtems/score/objectimpl.h> |
---|
23 | #include <rtems/score/wkspace.h> |
---|
24 | |
---|
25 | void _Objects_Namespace_remove_u32( |
---|
26 | const Objects_Information *information, |
---|
27 | Objects_Control *the_object |
---|
28 | ) |
---|
29 | { |
---|
30 | _Assert( !_Objects_Has_string_name( information ) ); |
---|
31 | the_object->name.name_u32 = 0; |
---|
32 | } |
---|
33 | |
---|
34 | void _Objects_Namespace_remove_string( |
---|
35 | const Objects_Information *information, |
---|
36 | Objects_Control *the_object |
---|
37 | ) |
---|
38 | { |
---|
39 | char *name; |
---|
40 | |
---|
41 | _Assert( _Objects_Has_string_name( information ) ); |
---|
42 | name = RTEMS_DECONST( char *, the_object->name.name_p ); |
---|
43 | the_object->name.name_p = NULL; |
---|
44 | _Workspace_Free( name ); |
---|
45 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.