string.c: Fix typos in comment.
[paraslash.git] / bitstream.h
index 3bcd2759a703ab3d62567d9da4d5ae07dfdc1a71..98937e89f2b98f126007d795f8070c0b33508598 100644 (file)
@@ -3,8 +3,7 @@
  *
  * copyright (c) 2004 Michael Niedermayer <michaelni@gmx.at>
  *
- * Licensed under the GNU Lesser General Public License.
- * For licencing details see COPYING.LIB.
+ * Licensed under the GNU Lesser General Public License, see file COPYING.LIB.
  */
 
 /** \file bitstream.h Bitstream structures and inline functions. */
@@ -19,14 +18,12 @@ struct getbit_context {
        int index;
 };
 
-#define VLC_TYPE int16_t
-
 /** A variable length code table. */
 struct vlc {
        /** Number of bits of the table. */
        int bits;
        /** The code and the bits table. */
-       VLC_TYPE(*table)[2];
+       int16_t (*table)[2];
        /** The size of the table. */
        int table_size;
        /** Amount of memory allocated so far. */
@@ -98,4 +95,4 @@ static inline void init_get_bits(struct getbit_context *gbc,
 void init_vlc(struct vlc *vlc, int nb_bits, int nb_codes, const void *bits,
                const void *codes, int codes_size);
 void free_vlc(struct vlc *vlc);
-int get_vlc(struct getbit_context *gbc, VLC_TYPE(*table)[2], int bits);
+int get_vlc(struct getbit_context *gbc, const struct vlc *vlc);