From 6ca400efcdc1592d9187c9de2d445a445396c205 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Fri, 29 May 2009 18:59:44 +0000 Subject: [PATCH] use __cdecl calling convention for span_rx_handler_t and span_tx_handler_t type functions git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13509 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- libs/spandsp/src/fsk.c | 2 +- libs/spandsp/src/silence_gen.c | 2 +- libs/spandsp/src/spandsp/fsk.h | 2 +- libs/spandsp/src/spandsp/silence_gen.h | 2 +- libs/spandsp/src/spandsp/v17rx.h | 2 +- libs/spandsp/src/spandsp/v17tx.h | 2 +- libs/spandsp/src/spandsp/v27ter_rx.h | 2 +- libs/spandsp/src/spandsp/v29rx.h | 2 +- libs/spandsp/src/v17rx.c | 2 +- libs/spandsp/src/v17tx.c | 2 +- libs/spandsp/src/v27ter_rx.c | 2 +- libs/spandsp/src/v29rx.c | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/libs/spandsp/src/fsk.c b/libs/spandsp/src/fsk.c index e79f6e3f4c..f3a007fa41 100644 --- a/libs/spandsp/src/fsk.c +++ b/libs/spandsp/src/fsk.c @@ -333,7 +333,7 @@ static void report_status_change(fsk_rx_state_t *s, int status) } /*- End of function --------------------------------------------------------*/ -SPAN_DECLARE(int) fsk_rx(fsk_rx_state_t *s, const int16_t *amp, int len) +SPAN_DECLARE_NONSTD(int) fsk_rx(fsk_rx_state_t *s, const int16_t *amp, int len) { int buf_ptr; int baudstate; diff --git a/libs/spandsp/src/silence_gen.c b/libs/spandsp/src/silence_gen.c index a47dac229e..bf481e8b03 100644 --- a/libs/spandsp/src/silence_gen.c +++ b/libs/spandsp/src/silence_gen.c @@ -53,7 +53,7 @@ #include "spandsp/private/silence_gen.h" -SPAN_DECLARE(int) silence_gen(silence_gen_state_t *s, int16_t *amp, int max_len) +SPAN_DECLARE_NONSTD(int) silence_gen(silence_gen_state_t *s, int16_t *amp, int max_len) { if (s->remaining_samples != INT_MAX) { diff --git a/libs/spandsp/src/spandsp/fsk.h b/libs/spandsp/src/spandsp/fsk.h index 2ebd368bd2..45992d3d38 100644 --- a/libs/spandsp/src/spandsp/fsk.h +++ b/libs/spandsp/src/spandsp/fsk.h @@ -214,7 +214,7 @@ SPAN_DECLARE(int) fsk_rx_free(fsk_rx_state_t *s); \param len The number of samples in the buffer. \return The number of samples unprocessed. */ -SPAN_DECLARE(int) fsk_rx(fsk_rx_state_t *s, const int16_t *amp, int len); +SPAN_DECLARE_NONSTD(int) fsk_rx(fsk_rx_state_t *s, const int16_t *amp, int len); /*! Fake processing of a missing block of received FSK modem audio samples (e.g due to packet loss). diff --git a/libs/spandsp/src/spandsp/silence_gen.h b/libs/spandsp/src/spandsp/silence_gen.h index ac014d1ae3..ea395b2497 100644 --- a/libs/spandsp/src/spandsp/silence_gen.h +++ b/libs/spandsp/src/spandsp/silence_gen.h @@ -43,7 +43,7 @@ extern "C" \return The number of samples actually generated. This will be zero when there is nothing to send. */ -SPAN_DECLARE(int) silence_gen(silence_gen_state_t *s, int16_t *amp, int max_len); +SPAN_DECLARE_NONSTD(int) silence_gen(silence_gen_state_t *s, int16_t *amp, int max_len); /*! Set a silence generator context to output continuous silence. \brief Set a silence generator context to output continuous silence. diff --git a/libs/spandsp/src/spandsp/v17rx.h b/libs/spandsp/src/spandsp/v17rx.h index 040461aedd..4946df33c2 100644 --- a/libs/spandsp/src/spandsp/v17rx.h +++ b/libs/spandsp/src/spandsp/v17rx.h @@ -297,7 +297,7 @@ SPAN_DECLARE(void) v17_rx_set_modem_status_handler(v17_rx_state_t *s, modem_rx_s \param len The number of samples in the buffer. \return The number of samples unprocessed. */ -SPAN_DECLARE(int) v17_rx(v17_rx_state_t *s, const int16_t amp[], int len); +SPAN_DECLARE_NONSTD(int) v17_rx(v17_rx_state_t *s, const int16_t amp[], int len); /*! Fake processing of a missing block of received V.17 modem audio samples. (e.g due to packet loss). diff --git a/libs/spandsp/src/spandsp/v17tx.h b/libs/spandsp/src/spandsp/v17tx.h index 48f0462c94..d7b14b4958 100644 --- a/libs/spandsp/src/spandsp/v17tx.h +++ b/libs/spandsp/src/spandsp/v17tx.h @@ -160,7 +160,7 @@ SPAN_DECLARE(void) v17_tx_set_modem_status_handler(v17_tx_state_t *s, modem_tx_s \param len The number of samples to be generated. \return The number of samples actually generated. */ -SPAN_DECLARE(int) v17_tx(v17_tx_state_t *s, int16_t amp[], int len); +SPAN_DECLARE_NONSTD(int) v17_tx(v17_tx_state_t *s, int16_t amp[], int len); #if defined(__cplusplus) } diff --git a/libs/spandsp/src/spandsp/v27ter_rx.h b/libs/spandsp/src/spandsp/v27ter_rx.h index d917464044..9e0e754802 100644 --- a/libs/spandsp/src/spandsp/v27ter_rx.h +++ b/libs/spandsp/src/spandsp/v27ter_rx.h @@ -131,7 +131,7 @@ SPAN_DECLARE(void) v27ter_rx_set_modem_status_handler(v27ter_rx_state_t *s, mode \param len The number of samples in the buffer. \return The number of samples unprocessed. */ -SPAN_DECLARE(int) v27ter_rx(v27ter_rx_state_t *s, const int16_t amp[], int len); +SPAN_DECLARE_NONSTD(int) v27ter_rx(v27ter_rx_state_t *s, const int16_t amp[], int len); /*! Fake processing of a missing block of received V.27ter modem audio samples. (e.g due to packet loss). diff --git a/libs/spandsp/src/spandsp/v29rx.h b/libs/spandsp/src/spandsp/v29rx.h index 48d1e4f497..aee96088c2 100644 --- a/libs/spandsp/src/spandsp/v29rx.h +++ b/libs/spandsp/src/spandsp/v29rx.h @@ -198,7 +198,7 @@ SPAN_DECLARE(void) v29_rx_set_modem_status_handler(v29_rx_state_t *s, modem_rx_s \param amp The audio sample buffer. \param len The number of samples in the buffer. \return The number of samples unprocessed. */ -SPAN_DECLARE(int) v29_rx(v29_rx_state_t *s, const int16_t amp[], int len); +SPAN_DECLARE_NONSTD(int) v29_rx(v29_rx_state_t *s, const int16_t amp[], int len); /*! Fake processing of a missing block of received V.29 modem audio samples. (e.g due to packet loss). diff --git a/libs/spandsp/src/v17rx.c b/libs/spandsp/src/v17rx.c index 7b02958075..4a1e86e8e9 100644 --- a/libs/spandsp/src/v17rx.c +++ b/libs/spandsp/src/v17rx.c @@ -1008,7 +1008,7 @@ static void process_half_baud(v17_rx_state_t *s, const complexf_t *sample) } /*- End of function --------------------------------------------------------*/ -SPAN_DECLARE(int) v17_rx(v17_rx_state_t *s, const int16_t amp[], int len) +SPAN_DECLARE_NONSTD(int) v17_rx(v17_rx_state_t *s, const int16_t amp[], int len) { int i; int step; diff --git a/libs/spandsp/src/v17tx.c b/libs/spandsp/src/v17tx.c index 560591806a..587cc6e123 100644 --- a/libs/spandsp/src/v17tx.c +++ b/libs/spandsp/src/v17tx.c @@ -260,7 +260,7 @@ static __inline__ complexf_t getbaud(v17_tx_state_t *s) } /*- End of function --------------------------------------------------------*/ -SPAN_DECLARE(int) v17_tx(v17_tx_state_t *s, int16_t amp[], int len) +SPAN_DECLARE_NONSTD(int) v17_tx(v17_tx_state_t *s, int16_t amp[], int len) { #if defined(SPANDSP_USE_FIXED_POINT) complexi_t x; diff --git a/libs/spandsp/src/v27ter_rx.c b/libs/spandsp/src/v27ter_rx.c index 25f959b019..543face532 100644 --- a/libs/spandsp/src/v27ter_rx.c +++ b/libs/spandsp/src/v27ter_rx.c @@ -753,7 +753,7 @@ static __inline__ void process_half_baud(v27ter_rx_state_t *s, const complexf_t } /*- End of function --------------------------------------------------------*/ -SPAN_DECLARE(int) v27ter_rx(v27ter_rx_state_t *s, const int16_t amp[], int len) +SPAN_DECLARE_NONSTD(int) v27ter_rx(v27ter_rx_state_t *s, const int16_t amp[], int len) { int i; int step; diff --git a/libs/spandsp/src/v29rx.c b/libs/spandsp/src/v29rx.c index 0b4944add3..bbd93483a9 100644 --- a/libs/spandsp/src/v29rx.c +++ b/libs/spandsp/src/v29rx.c @@ -841,7 +841,7 @@ static void process_half_baud(v29_rx_state_t *s, complexf_t *sample) } /*- End of function --------------------------------------------------------*/ -SPAN_DECLARE(int) v29_rx(v29_rx_state_t *s, const int16_t amp[], int len) +SPAN_DECLARE_NONSTD(int) v29_rx(v29_rx_state_t *s, const int16_t amp[], int len) { int i; int step;