From 2d5fa0198f4bc3b8eef3d8498d9c4200894efa12 Mon Sep 17 00:00:00 2001 From: Dan Kalowsky Date: Thu, 16 Apr 2015 12:25:11 -0700 Subject: [PATCH] Renaming _StackPop _stack_pop 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 a29ea386557..dc1a6a2da0c 100644 --- a/kernel/nanokernel/core/nano_stack.c +++ b/kernel/nanokernel/core/nano_stack.c @@ -173,13 +173,13 @@ void nano_task_stack_push( irq_unlock_inline(imask); } -FUNC_ALIAS(_StackPop, nano_isr_stack_pop, int); -FUNC_ALIAS(_StackPop, nano_fiber_stack_pop, int); -FUNC_ALIAS(_StackPop, nano_task_stack_pop, int); +FUNC_ALIAS(_stack_pop, nano_isr_stack_pop, int); +FUNC_ALIAS(_stack_pop, nano_fiber_stack_pop, int); +FUNC_ALIAS(_stack_pop, nano_task_stack_pop, int); /******************************************************************************* * -* _StackPop - pop data from a nanokernel stack +* _stack_pop - pop data from a nanokernel stack * * Pop the first data word from a nanokernel stack object; it may be called * from a fiber, task, or ISR context. @@ -198,7 +198,7 @@ FUNC_ALIAS(_StackPop, nano_task_stack_pop, int); * migration issue. */ -int _StackPop(struct nano_stack *chan, /* channel on which to interact */ +int _stack_pop(struct nano_stack *chan, /* channel on which to interact */ uint32_t *pData /* container for data to pop */ ) {