From ac412eb456007ab69dd246b91795eb356eb24fc4 Mon Sep 17 00:00:00 2001 From: Dan Kalowsky Date: Thu, 16 Apr 2015 12:25:11 -0700 Subject: [PATCH] Renaming _StackPush _stack_push 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_stack.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/kernel/nanokernel/core/nano_stack.c b/kernel/nanokernel/core/nano_stack.c index 482648b306b..a29ea386557 100644 --- a/kernel/nanokernel/core/nano_stack.c +++ b/kernel/nanokernel/core/nano_stack.c @@ -87,15 +87,15 @@ void nano_stack_init(struct nano_stack *chan, /* stack to initialize */ * an alias will be generated. */ -FUNC_ALIAS(_StackPush, _Cpsh, void); +FUNC_ALIAS(_stack_push, _Cpsh, void); #endif /* CONFIG_MICROKERNEL */ -FUNC_ALIAS(_StackPush, nano_isr_stack_push, void); -FUNC_ALIAS(_StackPush, nano_fiber_stack_push, void); +FUNC_ALIAS(_stack_push, nano_isr_stack_push, void); +FUNC_ALIAS(_stack_push, nano_fiber_stack_push, void); /******************************************************************************* * -* _StackPush - push data onto a nanokernel stack +* _stack_push - push data onto a nanokernel stack * * This routine pushes a data item onto a stack object; it may be called from * either a fiber or ISR context. A fiber pending on the stack object will be @@ -111,7 +111,7 @@ FUNC_ALIAS(_StackPush, nano_fiber_stack_push, void); * without introducing a source code migration issue. */ -void _StackPush(struct nano_stack *chan, /* stack channel on +void _stack_push(struct nano_stack *chan, /* stack channel on which to interact */ uint32_t data /* data to push on stack */ )