From 3acec988cb2b062c670954e3968c5ad93cc9cb21 Mon Sep 17 00:00:00 2001 From: Dan Kalowsky Date: Thu, 16 Apr 2015 12:25:11 -0700 Subject: [PATCH] Renaming _FifoGet to _fifo_get 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_mwfifo.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/kernel/nanokernel/core/nano_mwfifo.c b/kernel/nanokernel/core/nano_mwfifo.c index 4f18db2573a..f0abb216981 100644 --- a/kernel/nanokernel/core/nano_mwfifo.c +++ b/kernel/nanokernel/core/nano_mwfifo.c @@ -192,13 +192,13 @@ void nano_task_fifo_put( irq_unlock_inline(imask); } -FUNC_ALIAS(_FifoGet, nano_isr_fifo_get, void *); -FUNC_ALIAS(_FifoGet, nano_fiber_fifo_get, void *); -FUNC_ALIAS(_FifoGet, nano_task_fifo_get, void *); +FUNC_ALIAS(_fifo_get, nano_isr_fifo_get, void *); +FUNC_ALIAS(_fifo_get, nano_fiber_fifo_get, void *); +FUNC_ALIAS(_fifo_get, nano_task_fifo_get, void *); /******************************************************************************* * -* _FifoGet - get an element from the head a fifo +* _fifo_get - get an element from the head a fifo * * Remove the head element from the specified nanokernel multiple-waiter * fifo linked list fifo; it may be called from a fiber, task, or ISR context. @@ -216,7 +216,7 @@ FUNC_ALIAS(_FifoGet, nano_task_fifo_get, void *); * differences in the future without introducing a source code migration issue. */ -void *_FifoGet(struct nano_fifo *chan /* channel on which to interact */ +void *_fifo_get(struct nano_fifo *chan /* channel on which to interact */ ) { void *data = NULL;