summaryrefslogtreecommitdiff
path: root/src/object.c
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2021-08-06 02:56:42 +0800
committerMeco Man <[email protected]>2021-08-06 15:20:27 +0800
commit67f2f323a2d7bfa7ba8efbd291691c12269088a2 (patch)
tree1a5e145faa7def6824c44977773556d67be4684e /src/object.c
parent054f6db3e651cb6e7340913e969f5656626b9e9a (diff)
[kernel] 规范内部函数命名
Diffstat (limited to 'src/object.c')
-rw-r--r--src/object.c9
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;
}