Skip to content

Commit 7c0b9cd

Browse files
committed
FIX: Include guards
1 parent 5399a7f commit 7c0b9cd

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

include/renamenoise.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
*/
2727

2828
#ifndef RENAMENOISE_H
29-
#define RENAMENOISE_H 1
29+
#define RENAMENOISE_H
3030

3131
#include <stdio.h>
3232

@@ -111,4 +111,4 @@ RENAMENOISE_EXPORT void renamenoise_model_free(ReNameNoiseModel *model);
111111
}
112112
#endif
113113

114-
#endif
114+
#endif /* RENAMENOISE_H */

src/common.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
2-
31
#ifndef COMMON_H
42
#define COMMON_H
53

@@ -42,6 +40,4 @@ static RENAMENOISE_INLINE void renamenoise_free (void *ptr)
4240
#define RENAMENOISE_CLEAR(dst, n) (memset((dst), 0, (n)*sizeof(*(dst))))
4341
#endif
4442

45-
46-
47-
#endif
43+
#endif /* COMMON_H */

src/pitch.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,4 +146,4 @@ static RENAMENOISE_INLINE renamenoise_val32 renamenoise_inner_prod(const renamen
146146
void renamenoise_pitch_xcorr(const renamenoise_val16 *_x, const renamenoise_val16 *_y,
147147
renamenoise_val32 *xcorr, int len, int max_pitch);
148148

149-
#endif
149+
#endif /* PITCH_H */

src/rnn_data.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,4 @@ struct ReNameNoiseRNNState {
3030
float *denoise_gru_state;
3131
};
3232

33-
34-
#endif
33+
#endif /* RNN_DATA_H */

src/tansig_table.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
/* This file is auto-generated by gen_tables */
22

3+
#ifndef TANSIG_TABLE_H
4+
#define TANSIG_TABLE_H
5+
36
static const float renamenoise_tansig_table[201] = {
47
0.000000f, 0.039979f, 0.079830f, 0.119427f, 0.158649f,
58
0.197375f, 0.235496f, 0.272905f, 0.309507f, 0.345214f,
@@ -43,3 +46,5 @@ static const float renamenoise_tansig_table[201] = {
4346
1.000000f, 1.000000f, 1.000000f, 1.000000f, 1.000000f,
4447
1.000000f,
4548
};
49+
50+
#endif /* TANSIG_TABLE_H */

0 commit comments

Comments
 (0)