diff options
author | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2023-10-30 04:19:51 +0300 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2023-10-30 04:19:51 +0300 |
commit | 61fb3b16894c8fff523efb4255247d151ed5bad5 (patch) | |
tree | 1f4b6d646bc5820670c32a5d8c582a76ca925950 | |
parent | d53531d0bd600e9d1d2400bb801cb381245321c4 (diff) |
Don't use reserved identifiers for include guards
-rw-r--r-- | celt/mips/celt_mipsr1.h | 6 | ||||
-rw-r--r-- | celt/mips/mdct_mipsr1.h | 6 | ||||
-rw-r--r-- | celt/mips/vq_mipsr1.h | 6 | ||||
-rw-r--r-- | dnn/dred_rdovae_dec.h | 4 | ||||
-rw-r--r-- | dnn/dred_rdovae_enc.h | 4 | ||||
-rw-r--r-- | dnn/lpcnet.h | 4 | ||||
-rw-r--r-- | dnn/nnet.h | 6 | ||||
-rw-r--r-- | dnn/training_tf2/fec_packets.h | 6 | ||||
-rw-r--r-- | silk/mips/NSQ_del_dec_mipsr1.h | 6 | ||||
-rw-r--r-- | silk/mips/macros_mipsr1.h | 6 | ||||
-rw-r--r-- | src/mlp.h | 6 |
11 files changed, 30 insertions, 30 deletions
diff --git a/celt/mips/celt_mipsr1.h b/celt/mips/celt_mipsr1.h index c332fe04..d1b25c20 100644 --- a/celt/mips/celt_mipsr1.h +++ b/celt/mips/celt_mipsr1.h @@ -27,8 +27,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef __CELT_MIPSR1_H__ -#define __CELT_MIPSR1_H__ +#ifndef CELT_MIPSR1_H__ +#define CELT_MIPSR1_H__ #ifdef HAVE_CONFIG_H #include "config.h" @@ -149,4 +149,4 @@ void comb_filter(opus_val32 *y, opus_val32 *x, int T0, int T1, int N, } } -#endif /* __CELT_MIPSR1_H__ */ +#endif /* CELT_MIPSR1_H__ */ diff --git a/celt/mips/mdct_mipsr1.h b/celt/mips/mdct_mipsr1.h index 2934dab7..7456c181 100644 --- a/celt/mips/mdct_mipsr1.h +++ b/celt/mips/mdct_mipsr1.h @@ -38,8 +38,8 @@ MDCT implementation in FFMPEG, but has differences in signs, ordering and scaling in many places. */ -#ifndef __MDCT_MIPSR1_H__ -#define __MDCT_MIPSR1_H__ +#ifndef MDCT_MIPSR1_H__ +#define MDCT_MIPSR1_H__ #ifndef SKIP_CONFIG_H #ifdef HAVE_CONFIG_H @@ -285,4 +285,4 @@ void clt_mdct_backward(const mdct_lookup *l, kiss_fft_scalar *in, kiss_fft_scala } } } -#endif /* __MDCT_MIPSR1_H__ */ +#endif /* MDCT_MIPSR1_H__ */ diff --git a/celt/mips/vq_mipsr1.h b/celt/mips/vq_mipsr1.h index f26a33e7..1621c562 100644 --- a/celt/mips/vq_mipsr1.h +++ b/celt/mips/vq_mipsr1.h @@ -26,8 +26,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef __VQ_MIPSR1_H__ -#define __VQ_MIPSR1_H__ +#ifndef VQ_MIPSR1_H__ +#define VQ_MIPSR1_H__ #ifdef HAVE_CONFIG_H #include "config.h" @@ -113,4 +113,4 @@ void renormalise_vector(celt_norm *X, int N, opus_val16 gain, int arch) /*return celt_sqrt(E);*/ } -#endif /* __VQ_MIPSR1_H__ */ +#endif /* VQ_MIPSR1_H__ */ diff --git a/dnn/dred_rdovae_dec.h b/dnn/dred_rdovae_dec.h index 4e039cf2..2cd49991 100644 --- a/dnn/dred_rdovae_dec.h +++ b/dnn/dred_rdovae_dec.h @@ -25,8 +25,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef _DRED_RDOVAE_DEC_H -#define _DRED_RDOVAE_DEC_H +#ifndef DRED_RDOVAE_DEC_H +#define DRED_RDOVAE_DEC_H #include "dred_rdovae.h" #include "dred_rdovae_dec_data.h" diff --git a/dnn/dred_rdovae_enc.h b/dnn/dred_rdovae_enc.h index 832bd737..43a4e8b2 100644 --- a/dnn/dred_rdovae_enc.h +++ b/dnn/dred_rdovae_enc.h @@ -25,8 +25,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef _DRED_RDOVAE_ENC_H -#define _DRED_RDOVAE_ENC_H +#ifndef DRED_RDOVAE_ENC_H +#define DRED_RDOVAE_ENC_H #include "dred_rdovae.h" diff --git a/dnn/lpcnet.h b/dnn/lpcnet.h index 592b2281..adcba515 100644 --- a/dnn/lpcnet.h +++ b/dnn/lpcnet.h @@ -24,8 +24,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef _LPCNET_H_ -#define _LPCNET_H_ +#ifndef LPCNET_H_ +#define LPCNET_H_ #include "opus_types.h" @@ -25,8 +25,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef _NNET_H_ -#define _NNET_H_ +#ifndef NNET_H_ +#define NNET_H_ #include <stddef.h> #include "opus_types.h" @@ -189,4 +189,4 @@ int gru_init(GRULayer *layer, const WeightArray *arrays, void compute_conv2d(const Conv2dLayer *conv, float *out, float *mem, const float *in, int height, int hstride, int activation); -#endif /* _MLP_H_ */ +#endif /* NNET_H_ */ diff --git a/dnn/training_tf2/fec_packets.h b/dnn/training_tf2/fec_packets.h index 35d35542..01b128b1 100644 --- a/dnn/training_tf2/fec_packets.h +++ b/dnn/training_tf2/fec_packets.h @@ -25,10 +25,10 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef _FEC_PACKETS_H -#define _FEC_PACKETS_H +#ifndef FEC_PACKETS_H +#define FEC_PACKETS_H int get_fec_frame(const char * const filename, float *features, int packet_index, int subframe_index); int get_fec_rate(const char * const filename, int packet_index); -#endif
\ No newline at end of file +#endif diff --git a/silk/mips/NSQ_del_dec_mipsr1.h b/silk/mips/NSQ_del_dec_mipsr1.h index cd70713a..85bfb637 100644 --- a/silk/mips/NSQ_del_dec_mipsr1.h +++ b/silk/mips/NSQ_del_dec_mipsr1.h @@ -25,8 +25,8 @@ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ***********************************************************************/ -#ifndef __NSQ_DEL_DEC_MIPSR1_H__ -#define __NSQ_DEL_DEC_MIPSR1_H__ +#ifndef NSQ_DEL_DEC_MIPSR1_H__ +#define NSQ_DEL_DEC_MIPSR1_H__ #ifdef HAVE_CONFIG_H #include "config.h" @@ -407,4 +407,4 @@ static inline void silk_noise_shape_quantizer_del_dec( } } -#endif /* __NSQ_DEL_DEC_MIPSR1_H__ */ +#endif /* NSQ_DEL_DEC_MIPSR1_H__ */ diff --git a/silk/mips/macros_mipsr1.h b/silk/mips/macros_mipsr1.h index 12ed981a..af408802 100644 --- a/silk/mips/macros_mipsr1.h +++ b/silk/mips/macros_mipsr1.h @@ -26,8 +26,8 @@ POSSIBILITY OF SUCH DAMAGE. ***********************************************************************/ -#ifndef __SILK_MACROS_MIPSR1_H__ -#define __SILK_MACROS_MIPSR1_H__ +#ifndef SILK_MACROS_MIPSR1_H__ +#define SILK_MACROS_MIPSR1_H__ #define mips_clz(x) __builtin_clz(x) @@ -89,4 +89,4 @@ static inline opus_int32 silk_CLZ32(opus_int32 in32) return re32; } -#endif /* __SILK_MACROS_MIPSR1_H__ */ +#endif /* SILK_MACROS_MIPSR1_H__ */ @@ -24,8 +24,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef _MLP_H_ -#define _MLP_H_ +#ifndef MLP_H_ +#define MLP_H_ #include "opus_types.h" @@ -57,4 +57,4 @@ void analysis_compute_dense(const AnalysisDenseLayer *layer, float *output, cons void analysis_compute_gru(const AnalysisGRULayer *gru, float *state, const float *input); -#endif /* _MLP_H_ */ +#endif /* MLP_H_ */ |