@@ -125,14 +125,14 @@ static inline void tclie_print_cmd(tclie_t *const tclie,
125125static void tclie_complete (const tclie_t * const tclie ,
126126 const tclie_cmd_t * const cmds ,
127127 const size_t cmd_count , const char * const match ,
128- const size_t match_len , const char * * const compl ,
128+ const size_t match_len , const char * * const completions ,
129129 const size_t max_count , size_t * const count )
130130{
131131 assert (tclie );
132132 assert (cmds );
133133 assert (match );
134134 assert (match_len > 0 );
135- assert (compl );
135+ assert (completions );
136136 assert (count );
137137
138138 for (size_t i = 0 ; i < cmd_count && * count < max_count ; i ++ ) {
@@ -152,19 +152,19 @@ static void tclie_complete(const tclie_t *const tclie,
152152 if (cmd_len == match_len )
153153 return ;
154154
155- compl [(* count )++ ] = cmd -> name ;
155+ completions [(* count )++ ] = cmd -> name ;
156156 }
157157}
158158
159159static void tcli_complete (void * const arg , const int argc ,
160160 const char * * const argv ,
161- const char * * const compl , const size_t max_count ,
161+ const char * * const completions , const size_t max_count ,
162162 size_t * const count )
163163{
164164 assert (arg );
165165 assert (argc > 0 );
166166 assert (argv );
167- assert (compl );
167+ assert (completions );
168168 assert (count );
169169
170170 if (max_count == 0 || argc > 1 )
@@ -183,9 +183,9 @@ static void tcli_complete(void *const arg, const int argc,
183183
184184 tclie_complete (tclie , tclie_internal_cmds ,
185185 TCLIE_ARRAY_SIZE (tclie_internal_cmds ), match , match_len ,
186- compl , max_count , count );
186+ completions , max_count , count );
187187 tclie_complete (tclie , tclie -> cmd .cmds , tclie -> cmd .count , match , match_len ,
188- compl , max_count , count );
188+ completions , max_count , count );
189189}
190190
191191static bool tclie_exec (tclie_t * const tclie , const tclie_cmd_t * const cmds ,
0 commit comments