diff options
| author | chen zx <[email protected]> | 2021-08-16 16:29:25 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-08-16 16:29:25 +0800 |
| commit | ac824e0ef3d716aec68070b5cceb8fd4ba4eb641 (patch) | |
| tree | 1711cd852680129d0160daba1d6074b37883c135 /src/object.c | |
| parent | 360223a693958584c6befe8c8788c3e529928377 (diff) | |
| parent | 33a50d0eb0c3fdaff3b64db472de784a7c2b3a9d (diff) | |
Merge branch 'RT-Thread:master' into master
Diffstat (limited to 'src/object.c')
| -rw-r--r-- | src/object.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/object.c b/src/object.c index ff96037c52..718b0aa5b2 100644 --- a/src/object.c +++ b/src/object.c @@ -23,7 +23,7 @@ #endif /* RT_USING_MODULE */ /* - * define object_info for the number of rt_object_container items. + * define object_info for the number of _object_container items. */ enum rt_object_info_type { @@ -60,8 +60,9 @@ enum rt_object_info_type }; #define _OBJ_CONTAINER_LIST_INIT(c) \ - {&(rt_object_container[c].object_list), &(rt_object_container[c].object_list)} -static struct rt_object_information rt_object_container[RT_Object_Info_Unknown] = + {&(_object_container[c].object_list), &(_object_container[c].object_list)} + +static struct rt_object_information _object_container[RT_Object_Info_Unknown] = { /* initialize object container - thread */ {RT_Object_Class_Thread, _OBJ_CONTAINER_LIST_INIT(RT_Object_Info_Thread), sizeof(struct rt_thread)}, @@ -211,7 +212,7 @@ rt_object_get_information(enum rt_object_class_type type) int index; for (index = 0; index < RT_Object_Info_Unknown; index ++) - if (rt_object_container[index].type == type) return &rt_object_container[index]; + if (_object_container[index].type == type) return &_object_container[index]; return RT_NULL; } |
