From 338f3e2244c30cf2ef10710230043a224346e54e Mon Sep 17 00:00:00 2001 From: Dan Kalowsky Date: Thu, 16 Apr 2015 12:25:11 -0700 Subject: [PATCH] Renaming _LifoGet to _lifo_get Updating nano kernel functions to follow a consistent naming convention. Part of that process is the removal of camelCase naming conventions for the preferred_underscore_method. Change accomplished with the following script: #!/bin/bash echo "Searching for ${1} to replace with ${2}" find . -type f \( -iname \*.c -o -iname \*.h -o -iname \*.s -o -iname \*.kconf \) \ -not \( -path host/src/genIdt -prune \) \ \ -not \( -path host/src/gen_tables -prune \) \ -print | xargs sed -i "s/"${1}"/"${2}"/g" Signed-off-by: Dan Kalowsky --- kernel/nanokernel/core/nano_lifo.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/kernel/nanokernel/core/nano_lifo.c b/kernel/nanokernel/core/nano_lifo.c index 72689b7a82a..d6ba1e7efd2 100644 --- a/kernel/nanokernel/core/nano_lifo.c +++ b/kernel/nanokernel/core/nano_lifo.c @@ -169,13 +169,13 @@ void nano_task_lifo_put( irq_unlock_inline(imask); } -FUNC_ALIAS(_LifoGet, nano_isr_lifo_get, void *); -FUNC_ALIAS(_LifoGet, nano_fiber_lifo_get, void *); -FUNC_ALIAS(_LifoGet, nano_task_lifo_get, void *); +FUNC_ALIAS(_lifo_get, nano_isr_lifo_get, void *); +FUNC_ALIAS(_lifo_get, nano_fiber_lifo_get, void *); +FUNC_ALIAS(_lifo_get, nano_task_lifo_get, void *); /******************************************************************************* * -* _LifoGet - remove the first element from a linked list lifo +* _lifo_get - remove the first element from a linked list lifo * * Remove the first element from the specified nanokernel linked list lifo; * it may be called from a fiber, task, or ISR context. @@ -193,7 +193,7 @@ FUNC_ALIAS(_LifoGet, nano_task_lifo_get, void *); * differences in the future without introducing a source code migration issue. */ -void *_LifoGet(struct nano_lifo *chan /* channel on which to receive */ +void *_lifo_get(struct nano_lifo *chan /* channel on which to receive */ ) { void *data;