From 48d35b30ab1136371adaaad64d5770fb3e88e7c0 Mon Sep 17 00:00:00 2001 From: Dan Kalowsky Date: Thu, 16 Apr 2015 12:25:11 -0700 Subject: [PATCH] Renaming _SemGive to _sem_give 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_sema.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kernel/nanokernel/core/nano_sema.c b/kernel/nanokernel/core/nano_sema.c index 2c098275af0..f061d70cd94 100644 --- a/kernel/nanokernel/core/nano_sema.c +++ b/kernel/nanokernel/core/nano_sema.c @@ -83,12 +83,12 @@ void nano_sem_init(struct nano_sem *chan /* semaphore object to initialize */ chan->proc = (tCCS *)0; } -FUNC_ALIAS(_SemGive, nano_isr_sem_give, void); -FUNC_ALIAS(_SemGive, nano_fiber_sem_give, void); +FUNC_ALIAS(_sem_give, nano_isr_sem_give, void); +FUNC_ALIAS(_sem_give, nano_fiber_sem_give, void); /******************************************************************************* * -* _SemGive - give a nanokernel semaphore +* _sem_give - give a nanokernel semaphore * * This routine performs a "give" operation on a nanokernel sempahore object; * it may be call from either a fiber or an ISR context. A fiber pending on the @@ -103,7 +103,7 @@ FUNC_ALIAS(_SemGive, nano_fiber_sem_give, void); * without introducing a source code migration issue. */ -void _SemGive(struct nano_sem *chan /* semaphore on which to signal */ +void _sem_give(struct nano_sem *chan /* semaphore on which to signal */ ) { tCCS *ccs;