From 7c558249aec4cfd8d535958c0becf9d1fbe1d525 Mon Sep 17 00:00:00 2001 From: Dan Kalowsky Date: Thu, 16 Apr 2015 12:25:11 -0700 Subject: [PATCH] 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 --- 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 733880f9ea1..72689b7a82a 100644 --- a/kernel/nanokernel/core/nano_lifo.c +++ b/kernel/nanokernel/core/nano_lifo.c @@ -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 */ ) {