Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.xiph.org/xiph/opus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalph Giles <giles@mozilla.com>2011-11-26 01:02:00 +0400
committerJean-Marc Valin <jmvalin@jmvalin.ca>2011-12-02 21:31:36 +0400
commit120800f8fa478d75ad9f94d91dae775386c6b0d5 (patch)
tree12d06687371998fa8d682443f25b3f1d1ac6a054 /include/opus_types.h
parente1be1920bac28c897a940be55319abbb1bed0f51 (diff)
Rename '_FOO' to avoid potentional collisions with reserved identifiers.
C reserves identifiers of the from _[A-Z]+ and we have a number of those in the code. This patch renames the various function arguments, MACROS and preprocessor symbols to avoid the reserved form. It also removes the CHANNELS() macro altogether. This was a minor optimization for TI DSP to force a mono-only build, as were the associated local 'const' versions. Since stereo support is manditory, it wasn't worth keeping. Thanks to John Ridges for raising the issue, and Jean-Marc Valin and Greg Maxwell for reviewing the changes.
Diffstat (limited to 'include/opus_types.h')
-rw-r--r--include/opus_types.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/opus_types.h b/include/opus_types.h
index ad0b9dd9..b001eb47 100644
--- a/include/opus_types.h
+++ b/include/opus_types.h
@@ -30,8 +30,8 @@
@file opus_types.h
@brief Opus reference implementation types
*/
-#ifndef _OPUS_TYPES_H
-#define _OPUS_TYPES_H
+#ifndef OPUS_TYPES_H
+#define OPUS_TYPES_H
/* Use the real stdint.h if it's there (taken from Paul Hsieh's pstdint.h) */
#if (defined(__STDC__) && __STDC__ && __STDC_VERSION__ >= 199901L) || (defined(__GNUC__) && (defined(_STDINT_H) || defined(_STDINT_H_)) || defined (HAVE_STDINT_H))
@@ -156,4 +156,4 @@
#define opus_uint64 unsigned long long
#define opus_uint8 unsigned char
-#endif /* _OPUS_TYPES_H */
+#endif /* OPUS_TYPES_H */