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