1305
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
1 /******************************************************************************
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
2 * *
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
3 * Copyright (C) 1992-1995 Tony Robinson *
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
4 * *
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
5 * See the file doc/LICENSE.shorten for conditions on distribution and usage *
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
6 * *
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
7 ******************************************************************************/
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
8
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
9 /*
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
10 * $Id: shorten.h,v 1.4 2001/12/30 05:12:04 jason Exp $
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
11 */
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
12
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
13 #ifndef _SHORTEN_H
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
14 #define _SHORTEN_H
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
15
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
16 #ifdef HAVE_CONFIG_H
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
17 #include "config.h"
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
18 #endif
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
19
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
20 #include <stdlib.h>
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
21 #include <pthread.h>
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
22
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
23 #ifdef HAVE_INTTYPES_H
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
24 # include <inttypes.h>
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
25 #else
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
26 # if SIZEOF_UNSIGNED_LONG == 4
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
27 # define uint32_t unsigned long
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
28 # define int32_t long
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
29 # else
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
30 # define uint32_t unsigned int
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
31 # define int32_t int
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
32 # endif
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
33 # define uint16_t unsigned short
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
34 # define uint8_t unsigned char
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
35 # define int16_t short
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
36 # define int8_t char
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
37 #endif
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
38
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
39 #undef ulong
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
40 #undef ushort
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
41 #undef uchar
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
42 #undef slong
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
43 #undef sshort
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
44 #undef schar
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
45 #define ulong uint32_t
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
46 #define ushort uint16_t
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
47 #define uchar uint8_t
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
48 #define slong int32_t
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
49 #define sshort int16_t
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
50 #define schar int8_t
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
51
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
52 #include "shn.h"
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
53
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
54 extern shn_file *shnfile;
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
55
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
56 #define MAGIC "ajkg"
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
57 #define FORMAT_VERSION 2
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
58 #define MIN_SUPPORTED_VERSION 1
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
59 #define MAX_SUPPORTED_VERSION 3
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
60 #define MAX_VERSION 7
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
61
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
62 #define UNDEFINED_UINT -1
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
63 #define DEFAULT_BLOCK_SIZE 256
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
64 #define DEFAULT_V0NMEAN 0
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
65 #define DEFAULT_V2NMEAN 4
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
66 #define DEFAULT_MAXNLPC 0
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
67 #define DEFAULT_NCHAN 1
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
68 #define DEFAULT_NSKIP 0
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
69 #define DEFAULT_NDISCARD 0
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
70 #define NBITPERLONG 32
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
71 #define DEFAULT_MINSNR 256
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
72 #define DEFAULT_MAXRESNSTR "32.0"
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
73 #define DEFAULT_QUANTERROR 0
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
74 #define MINBITRATE 2.5
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
75
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
76 #define MAX_LPC_ORDER 64
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
77 #define CHANSIZE 0
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
78 #define ENERGYSIZE 3
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
79 #define BITSHIFTSIZE 2
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
80 #define NWRAP 3
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
81
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
82 #define FNSIZE 2
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
83 #define FN_DIFF0 0
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
84 #define FN_DIFF1 1
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
85 #define FN_DIFF2 2
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
86 #define FN_DIFF3 3
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
87 #define FN_QUIT 4
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
88 #define FN_BLOCKSIZE 5
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
89 #define FN_BITSHIFT 6
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
90 #define FN_QLPC 7
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
91 #define FN_ZERO 8
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
92 #define FN_VERBATIM 9
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
93
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
94 #define VERBATIM_CKSIZE_SIZE 5 /* a var_put code size */
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
95 #define VERBATIM_BYTE_SIZE 8 /* code size 8 on single bytes means
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
96 * no compression at all */
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
97 #define VERBATIM_CHUNK_MAX 256 /* max. size of a FN_VERBATIM chunk */
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
98
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
99 #define ULONGSIZE 2
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
100 #define NSKIPSIZE 1
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
101 #define LPCQSIZE 2
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
102 #define LPCQUANT 5
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
103 #define XBYTESIZE 7
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
104
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
105 #define TYPESIZE 4
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
106 #define TYPE_AU1 0 /* original lossless ulaw */
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
107 #define TYPE_S8 1 /* signed 8 bit characters */
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
108 #define TYPE_U8 2 /* unsigned 8 bit characters */
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
109 #define TYPE_S16HL 3 /* signed 16 bit shorts: high-low */
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
110 #define TYPE_U16HL 4 /* unsigned 16 bit shorts: high-low */
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
111 #define TYPE_S16LH 5 /* signed 16 bit shorts: low-high */
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
112 #define TYPE_U16LH 6 /* unsigned 16 bit shorts: low-high */
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
113 #define TYPE_ULAW 7 /* lossy ulaw: internal conversion to linear */
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
114 #define TYPE_AU2 8 /* new ulaw with zero mapping */
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
115 #define TYPE_AU3 9 /* lossless alaw */
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
116 #define TYPE_ALAW 10 /* lossy alaw: internal conversion to linear */
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
117 #define TYPE_RIFF_WAVE 11 /* Microsoft .WAV files */
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
118 #define TYPE_EOF 12
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
119 #define TYPE_GENERIC_ULAW 128
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
120 #define TYPE_GENERIC_ALAW 129
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
121
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
122 #define POSITIVE_ULAW_ZERO 0xff
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
123 #define NEGATIVE_ULAW_ZERO 0x7f
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
124
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
125 #ifndef MAX_PATH
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
126 #define MAX_PATH 2048
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
127 #endif
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
128
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
129 #ifndef MIN
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
130 #define MIN(a,b) (((a)<(b))?(a):(b))
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
131 #endif
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
132
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
133 #ifndef MAX
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
134 #define MAX(a,b) (((a)>(b))?(a):(b))
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
135 #endif
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
136
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
137 #if defined(unix) && !defined(linux)
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
138 #define labs abs
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
139 #endif
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
140
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
141 #define ROUNDEDSHIFTDOWN(x, n) (((n) == 0) ? (x) : ((x) >> ((n) - 1)) >> 1)
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
142
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
143 #ifndef M_LN2
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
144 #define M_LN2 0.69314718055994530942
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
145 #endif
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
146
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
147 #ifndef M_PI
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
148 #define M_PI 3.14159265358979323846
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
149 #endif
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
150
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
151 /* BUFSIZ must be a multiple of four to contain a whole number of words */
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
152 #ifdef BUFSIZ
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
153 #undef BUFSIZ
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
154 #endif
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
155
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
156 #define BUFSIZ 512
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
157
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
158 #define V2LPCQOFFSET (1 << LPCQUANT);
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
159
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
160 #define UINT_GET(nbit, shnfile) \
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
161 ((version == 0) ? uvar_get(nbit, shnfile) : ulong_get(shnfile))
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
162
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
163 #define putc_exit(val, stream)\
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
164 { char rval;\
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
165 if((rval = putc((val), (stream))) != (char) (val))\
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
166 complain("FATALERROR: write failed: putc returns EOF");\
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
167 }
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
168
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
169 extern int getc_exit_val;
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
170 #define getc_exit(stream)\
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
171 (((getc_exit_val = vfs_getc(stream)) == EOF) ? \
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
172 complain("FATALERROR: read failed: getc returns EOF"), 0: getc_exit_val)
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
173
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
174 /************************/
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
175 /* defined in shorten.c */
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
176 extern void init_offset(slong**, int, int, int);
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
177 extern int shorten(FILE*, FILE*, int, char**);
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
178
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
179 /**************************/
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
180 /* defined in Sulawalaw.c */
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
181 extern int Sulaw2lineartab[];
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
182 #define Sulaw2linear(i) (Sulaw2lineartab[i])
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
183 #ifndef Sulaw2linear
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
184 extern int Sulaw2linear(uchar);
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
185 #endif
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
186 extern uchar Slinear2ulaw(int);
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
187
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
188 extern int Salaw2lineartab[];
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
189 #define Salaw2linear(i) (Salaw2lineartab[i])
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
190 #ifndef Salaw2linear
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
191 extern int Salaw2linear(uchar);
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
192 #endif
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
193 extern uchar Slinear2alaw(int);
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
194
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
195 /**********************/
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
196 /* defined in fixio.c */
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
197 extern void init_sizeof_sample(void);
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
198 extern void fwrite_type_init(shn_file*);
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
199 extern void fwrite_type(slong**,int,int,int,shn_file*);
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
200 extern void fwrite_type_quit(shn_file*);
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
201 extern void fix_bitshift(slong*, int, int, int);
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
202
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
203 /**********************/
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
204 /* defined in vario.c */
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
205 extern void var_get_init(shn_file*);
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
206 extern slong uvar_get(int, shn_file*);
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
207 extern slong var_get(int, shn_file*);
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
208 extern ulong ulong_get(shn_file*);
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
209 extern void var_get_quit(shn_file*);
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
210
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
211 extern int sizeof_uvar(ulong, int);
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
212 extern int sizeof_var(slong, int);
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
213
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
214 extern void mkmasktab(void);
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
215 extern ulong word_get(shn_file*);
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
216
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
217 /**********************/
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
218 /* defined in array.c */
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
219 extern void* pmalloc(ulong, shn_file*);
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
220 extern slong** long2d(ulong, ulong, shn_file*);
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
221
|
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
222 #endif
|