aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Markgraf <steve@steve-m.de>2019-08-25 17:29:34 +0200
committerSteve Markgraf <steve@steve-m.de>2019-08-25 17:29:34 +0200
commitd56968352c626dda51552bb469ac23a8964d6d29 (patch)
tree6ddae90629099c711c80c4f1f3fda9f7bb981f0e
parentfb206158f9ba8b426ca7c8fb180f4fc324ff208a (diff)
downloadosmo-fl2k-d56968352c626dda51552bb469ac23a8964d6d29.tar.gz
osmo-fl2k-d56968352c626dda51552bb469ac23a8964d6d29.tar.bz2
osmo-fl2k-d56968352c626dda51552bb469ac23a8964d6d29.zip
fl2k_fm: make inline functions static
Otherwise the linker will complain when building with -DCMAKE_BUILD_TYPE=Debug
-rw-r--r--src/fl2k_fm.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/fl2k_fm.c b/src/fl2k_fm.c
index 4aae95b..5d14fba 100644
--- a/src/fl2k_fm.c
+++ b/src/fl2k_fm.c
@@ -153,17 +153,17 @@ typedef struct {
unsigned long int phase_slope;
} dds_t;
-inline void dds_setphase(dds_t *dds, double phase)
+static inline void dds_setphase(dds_t *dds, double phase)
{
dds->phase = phase * ANG_INCR;
}
-inline double dds_getphase(dds_t *dds)
+static inline double dds_getphase(dds_t *dds)
{
return dds->phase / ANG_INCR;
}
-inline void dds_set_freq(dds_t *dds, double freq, double fslope)
+static inline void dds_set_freq(dds_t *dds, double freq, double fslope)
{
dds->fslope = fslope;
dds->phase_step = (freq / dds->sample_freq) * 2 * M_PI * ANG_INCR;
@@ -196,7 +196,7 @@ dds_t dds_init(double sample_freq, double freq, double phase)
return dds;
}
-inline int8_t dds_real(dds_t *dds)
+static inline int8_t dds_real(dds_t *dds)
{
int tmp;
@@ -209,7 +209,7 @@ inline int8_t dds_real(dds_t *dds)
return sine_table[tmp];
}
-inline void dds_real_buf(dds_t *dds, int8_t *buf, int count)
+static inline void dds_real_buf(dds_t *dds, int8_t *buf, int count)
{
int i;
for (i = 0; i < count; i++)
@@ -267,7 +267,7 @@ static void *fm_worker(void *arg)
pthread_exit(NULL);
}
-inline int writelen(int maxlen)
+static inline int writelen(int maxlen)
{
int rp = readpos;
int len;
@@ -283,7 +283,7 @@ inline int writelen(int maxlen)
return r;
}
-inline double modulate_sample(int lastwritepos, double lastfreq, double sample)
+static inline double modulate_sample(int lastwritepos, double lastfreq, double sample)
{
double freq, slope;