Renaming _LifoPut to _lifo_put

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 7c558249ae

View file

@ -85,15 +85,15 @@ void nano_lifo_init(struct nano_lifo *chan /* channel to initialize */
* an alias will be generated.
*/
FUNC_ALIAS(_LifoPut, _Cput, void);
FUNC_ALIAS(_lifo_put, _Cput, void);
#endif /* CONFIG_MICROKERNEL */
FUNC_ALIAS(_LifoPut, nano_isr_lifo_put, void);
FUNC_ALIAS(_LifoPut, nano_fiber_lifo_put, void);
FUNC_ALIAS(_lifo_put, nano_isr_lifo_put, void);
FUNC_ALIAS(_lifo_put, nano_fiber_lifo_put, void);
/*******************************************************************************
*
* _LifoPut - add an element to the head of a linked list lifo
* _lifo_put - add an element to the head of a linked list lifo
*
* This routine adds an element to the head of a lifo object; it may be
* called from either a fiber or an ISR context. A fiber pending on the lifo
@ -108,7 +108,7 @@ FUNC_ALIAS(_LifoPut, nano_fiber_lifo_put, void);
* without introducing a source code migration issue.
*/
void _LifoPut(struct nano_lifo *chan, /* channel on which to put */
void _lifo_put(struct nano_lifo *chan, /* channel on which to put */
void *data /* data to insert */
)
{