Renaming _FifoGet to _fifo_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 <daniel.kalowsky@intel.com>
This commit is contained in:
Dan Kalowsky 2015-04-16 12:25:11 -07:00 committed by Anas Nashif
commit 3acec988cb

View file

@ -192,13 +192,13 @@ void nano_task_fifo_put(
irq_unlock_inline(imask);
}
FUNC_ALIAS(_FifoGet, nano_isr_fifo_get, void *);
FUNC_ALIAS(_FifoGet, nano_fiber_fifo_get, void *);
FUNC_ALIAS(_FifoGet, nano_task_fifo_get, void *);
FUNC_ALIAS(_fifo_get, nano_isr_fifo_get, void *);
FUNC_ALIAS(_fifo_get, nano_fiber_fifo_get, void *);
FUNC_ALIAS(_fifo_get, nano_task_fifo_get, void *);
/*******************************************************************************
*
* _FifoGet - get an element from the head a fifo
* _fifo_get - get an element from the head a fifo
*
* Remove the head element from the specified nanokernel multiple-waiter
* fifo linked list fifo; it may be called from a fiber, task, or ISR context.
@ -216,7 +216,7 @@ FUNC_ALIAS(_FifoGet, nano_task_fifo_get, void *);
* differences in the future without introducing a source code migration issue.
*/
void *_FifoGet(struct nano_fifo *chan /* channel on which to interact */
void *_fifo_get(struct nano_fifo *chan /* channel on which to interact */
)
{
void *data = NULL;