Skip to content

Commit cc377d5

Browse files
committed
Use CDIO_INLINE instead of inline.
1 parent 09ab19d commit cc377d5

File tree

2 files changed

+17
-16
lines changed

2 files changed

+17
-16
lines changed

lib/cdda_interface/utils.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ struct timespec
3232
/* I wonder how many alignment issues this is gonna trip in the
3333
future... it shouldn't trip any... I guess we'll find out :) */
3434

35-
static inline int
35+
static CDIO_INLINE int
3636
bigendianp(void)
3737
{
3838
int test=1;
@@ -49,32 +49,32 @@ extern int gettime(struct timespec *);
4949

5050
#ifndef WORDS_BIGENDIAN
5151

52-
static inline int16_t be16_to_cpu(int16_t x){
52+
static CDIO_INLINE int16_t be16_to_cpu(int16_t x){
5353
return(UINT16_SWAP_LE_BE_C(x));
5454
}
5555

56-
static inline int16_t le16_to_cpu(int16_t x){
56+
static CDIO_INLINE int16_t le16_to_cpu(int16_t x){
5757
return(x);
5858
}
5959

6060
#else
6161

62-
static inline int16_t be16_to_cpu(int16_t x){
62+
static CDIO_INLINE int16_t be16_to_cpu(int16_t x){
6363
return(x);
6464
}
6565

66-
static inline int16_t le16_to_cpu(int16_t x){
66+
static CDIO_INLINE int16_t le16_to_cpu(int16_t x){
6767
return(UINT16_SWAP_LE_BE_C(x));
6868
}
6969

7070

7171
#endif
7272

73-
static inline int16_t cpu_to_be16(int16_t x){
73+
static CDIO_INLINE int16_t cpu_to_be16(int16_t x){
7474
return(be16_to_cpu(x));
7575
}
7676

77-
static inline int16_t cpu_to_le16(int16_t x){
77+
static CDIO_INLINE int16_t cpu_to_le16(int16_t x){
7878
return(le16_to_cpu(x));
7979
}
8080

lib/paranoia/paranoia.c

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@
103103
#include <string.h>
104104
#endif
105105
#include <math.h>
106+
#include <cdio/bytesex.h>
106107
#include <cdio/paranoia/cdda.h>
107108
#include "../cdda_interface/smallft.h"
108109
#include <cdio/paranoia/version.h>
@@ -140,31 +141,31 @@ const char *paranoia_cb_mode2str[] = {
140141
paranoia_mode_t debug_paranoia_mode;
141142
paranoia_cb_mode_t debug_paranoia_cb_mode;
142143

143-
static inline long
144+
static CDIO_INLINE long
144145
re(root_block *root)
145146
{
146147
if (!root)return(-1);
147148
if (!root->vector)return(-1);
148149
return(ce(root->vector));
149150
}
150151

151-
static inline long
152+
static CDIO_INLINE long
152153
rb(root_block *root)
153154
{
154155
if (!root)return(-1);
155156
if (!root->vector)return(-1);
156157
return(cb(root->vector));
157158
}
158159

159-
static inline
160+
static CDIO_INLINE
160161
long rs(root_block *root)
161162
{
162163
if (!root)return(-1);
163164
if (!root->vector)return(-1);
164165
return(cs(root->vector));
165166
}
166167

167-
static inline int16_t *
168+
static CDIO_INLINE int16_t *
168169
rv(root_block *root){
169170
if (!root)return(NULL);
170171
if (!root->vector)return(NULL);
@@ -206,7 +207,7 @@ enum {
206207
* If (ret_begin) or (ret_end) are not NULL, it fills them with the
207208
* offsets of the first and last matching samples in A.
208209
*/
209-
static inline long
210+
static CDIO_INLINE long
210211
i_paranoia_overlap(int16_t *buffA,int16_t *buffB,
211212
long offsetA, long offsetB,
212213
long sizeA,long sizeB,
@@ -248,7 +249,7 @@ i_paranoia_overlap(int16_t *buffA,int16_t *buffB,
248249
* If (ret_begin) or (ret_end) are not NULL, it fills them with the
249250
* offsets of the first and last matching samples in A.
250251
*/
251-
static inline long
252+
static CDIO_INLINE long
252253
i_paranoia_overlap2(int16_t *buffA,int16_t *buffB,
253254
unsigned char *flagsA,
254255
unsigned char *flagsB,
@@ -327,7 +328,7 @@ i_paranoia_overlap2(int16_t *buffA,int16_t *buffB,
327328
* (I.e., offset indicates the distance between what A considers sample N
328329
* on the CD and what B considers sample N.)
329330
*/
330-
static inline long int
331+
static CDIO_INLINE long int
331332
do_const_sync(c_block_t *A,
332333
sort_info_t *B,
333334
unsigned char *flagB,
@@ -397,7 +398,7 @@ do_const_sync(c_block_t *A,
397398
post from root. Begin, end, offset count from B's frame of
398399
reference */
399400

400-
static inline long int
401+
static CDIO_INLINE long int
401402
try_sort_sync(cdrom_paranoia_t *p,
402403
sort_info_t *A, unsigned char *Aflags,
403404
c_block_t *B,
@@ -548,7 +549,7 @@ afterward. */
548549
* into the verified root (and its absolute position determined) in
549550
* stage 2.
550551
*/
551-
static inline void
552+
static CDIO_INLINE void
552553
stage1_matched(c_block_t *old, c_block_t *new,
553554
long matchbegin,long matchend,
554555
long matchoffset,

0 commit comments

Comments
 (0)