diff options
| author | Lim-LinYuanbo <[email protected]> | 2021-08-15 14:50:31 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-08-15 14:50:31 +0800 |
| commit | 7c5f552103f82d37d694c6d2c1c60e35a4503f72 (patch) | |
| tree | eef14793c2f0f196ead869341afbe06ab9b7944e /src/object.c | |
| parent | 0e28321c2cfe8273234135a78ce78ac0c4d1d505 (diff) | |
| parent | fea12e0903bf0d2e6efed7aa6838c28d1006e1f5 (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; } |
