summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdwin Vane <edwin.vane@intel.com>2012-05-31 14:29:24 -0400
committerEdwin Vane <edwin.vane@intel.com>2012-11-22 12:09:18 -0500
commitb3ebba80015c624b4fe5c24b6b2067ee4ca3dd22 (patch)
tree294e7d7bf43b92a97fa000ce604da01a35b663bd
parent0ea9fd9cea14dd70b809238e07d85f383f1fa747 (diff)
downloadsrec-b3ebba80015c624b4fe5c24b6b2067ee4ca3dd22.tar.gz
Marking file-local inline functions as static
Compiling with clang results with undefined symbol errors at link time for functions marked inline but not marked static or extern. A look at the C spec indicates the compiler is free to assume the function exists as a symbol elsewhere if static/extern are not used. Since this function really is meant to have static linkage, applied the static keyword and the build is now fine. Change-Id: I7c279c2592fe19ceda57fa3ecd565cc6f323b307 Author: Edwin Vane <edwin.vane@intel.com> Reviewed-by: Kevin P Schoedel <kevin.p.schoedel@intel.com>
-rw-r--r--srec/Recognizer/src/RecognizerImpl.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/srec/Recognizer/src/RecognizerImpl.c b/srec/Recognizer/src/RecognizerImpl.c
index f64a1db..4edf2dc 100644
--- a/srec/Recognizer/src/RecognizerImpl.c
+++ b/srec/Recognizer/src/RecognizerImpl.c
@@ -2601,7 +2601,7 @@ CLEANUP:
* INPUT STATES: SR_RECOGNIZER_INTERNAL_BOS_DETECTION, SR_RECOGNIZER_INTERNAL_EOS_DETECTION
* OUTPUT STATES: same or SR_RECOGNIZER_INTERNAL_EOI
*/
-PINLINE ESR_ReturnCode canPushAudioIntoRecognizer(SR_RecognizerImpl* impl)
+static PINLINE ESR_ReturnCode canPushAudioIntoRecognizer(SR_RecognizerImpl* impl)
{
ESR_ReturnCode rc;
@@ -2654,7 +2654,7 @@ CLEANUP:
* INPUT STATES: SR_RECOGNIZER_INTERNAL_BOS_DETECTION, SR_RECOGNIZER_INTERNAL_EOS_DETECTION
* OUTPUT STATES: same
*/
-PINLINE ESR_ReturnCode pushAudioIntoRecognizer(SR_RecognizerImpl* impl, SR_RecognizerStatus* status,
+static PINLINE ESR_ReturnCode pushAudioIntoRecognizer(SR_RecognizerImpl* impl, SR_RecognizerStatus* status,
SR_RecognizerResultType* type,
SR_RecognizerResult* result)
{
@@ -2714,7 +2714,7 @@ CLEANUP:
* INPUT STATES: SR_RECOGNIZER_INTERNAL_BOS_DETECTION, SR_RECOGNIZER_INTERNAL_EOS_DETECTION
* OUTPUT STATES: same
*/
-PINLINE ESR_ReturnCode generateFrameFromAudio(SR_RecognizerImpl* impl, SR_RecognizerStatus* status,
+static PINLINE ESR_ReturnCode generateFrameFromAudio(SR_RecognizerImpl* impl, SR_RecognizerStatus* status,
SR_RecognizerResultType* type,
SR_RecognizerResult* result)
{
@@ -2757,7 +2757,7 @@ PINLINE ESR_ReturnCode generateFrameFromAudio(SR_RecognizerImpl* impl, SR_Recogn
* INPUT STATES: SR_RECOGNIZER_INTERNAL_EOS_DETECTION
* OUTPUT STATES: same
*/
-PINLINE ESR_ReturnCode generateFrameStats(SR_RecognizerImpl* impl, SR_RecognizerStatus* status,
+static PINLINE ESR_ReturnCode generateFrameStats(SR_RecognizerImpl* impl, SR_RecognizerStatus* status,
SR_RecognizerResultType* type,
SR_RecognizerResult* result)
{
@@ -2780,7 +2780,7 @@ PINLINE ESR_ReturnCode generateFrameStats(SR_RecognizerImpl* impl, SR_Recognizer
* INPUT STATES: SR_RECOGNIZER_INTERNAL_EOS_DETECTION
* OUTPUT STATES: same or SR_RECOGNIZER_INTERNAL_EOI, SR_RECOGNIZER_INTERNAL_EOS
*/
-PINLINE ESR_ReturnCode generatePatternFromFrame(SR_RecognizerImpl* impl, SR_RecognizerStatus* status,
+static PINLINE ESR_ReturnCode generatePatternFromFrame(SR_RecognizerImpl* impl, SR_RecognizerStatus* status,
SR_RecognizerResultType* type,
SR_RecognizerResult* result)
{
@@ -2889,7 +2889,7 @@ CLEANUP:
* INPUT STATES: SR_RECOGNIZER_INTERNAL_EOI
* OUTPUT STATES: same or SR_RECOGNIZER_INTERNAL_EOS
*/
-PINLINE ESR_ReturnCode generatePatternFromFrameEOI(SR_RecognizerImpl* impl, SR_RecognizerStatus* status,
+static PINLINE ESR_ReturnCode generatePatternFromFrameEOI(SR_RecognizerImpl* impl, SR_RecognizerStatus* status,
SR_RecognizerResultType* type,
SR_RecognizerResult* result)
{