Merge branch 'finley'
This commit is contained in:
commit
522c14710e
@ -8,17 +8,16 @@
|
||||
// initilises a CMDList_t with all NULL pointers
|
||||
CMDList_t* CMDList_init()
|
||||
{
|
||||
CMDList_t *list = malloc(sizeof(CMDList_t));
|
||||
CMDList_t* list = malloc(sizeof(CMDList_t));
|
||||
memset(list, 0, sizeof(CMDList_t));
|
||||
return list;
|
||||
}
|
||||
|
||||
// free up the full tree from memory
|
||||
// does not free up the commands
|
||||
int CMDList_deinit(CMDList_t *list)
|
||||
int CMDList_deinit(CMDList_t* list)
|
||||
{
|
||||
CMDList_t** list_p;
|
||||
*list_p = list;
|
||||
CMDList_t** list_p = (CMDList_t**)list;
|
||||
|
||||
int i;
|
||||
for (i = 0; i < 26; i++)
|
||||
|
||||
@ -11,7 +11,7 @@ add_library(history History/History.c)
|
||||
|
||||
# CLI
|
||||
add_library(CLI CLI/CLI.c)
|
||||
target_link_libraries(CLI CMDList FIFOBuffChar)
|
||||
target_link_libraries(CLI CMDList FIFOBuffChar history)
|
||||
|
||||
add_library(CLI_History CLI/CLI.c)
|
||||
target_link_libraries(CLI_History CMDList FIFOBuffChar history)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user