annotate include/mmio.h @ 10:55420dceb8e0

Initial entry of mikmod into the CVS tree.
author darius
date Fri, 23 Jan 1998 16:05:11 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
10
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
1 #ifndef _MMIO_H_
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
2 #define _MMIO_H_
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
3
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
4 #include <stdio.h>
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
5 #include <stdlib.h>
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
6 #include "tdefs.h"
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
7
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
8
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
9 #ifdef __cplusplus
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
10 extern "C" {
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
11 #endif
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
12
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
13
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
14 // LOG.C Prototypes
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
15 // ================
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
16
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
17 #define LOG_SILENT 0
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
18 #define LOG_VERBOSE 1
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
19
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
20 extern int log_init(CHAR *logfile, BOOL val);
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
21 extern void log_exit(void);
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
22 extern void log_verbose(void);
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
23 extern void log_silent(void);
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
24 extern void printlog(CHAR *fmt, ... );
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
25 extern void printlogv(CHAR *fmt, ... );
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
26
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
27 #ifdef __WATCOMC__
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
28 #pragma aux log_init parm nomemory modify nomemory;
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
29 #pragma aux log_exit parm nomemory modify nomemory;
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
30 #pragma aux log_verbose parm nomemory modify nomemory;
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
31 #pragma aux log_silent parm nomemory modify nomemory;
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
32 #pragma aux printlog parm nomemory modify nomemory;
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
33 #pragma aux printlogv parm nomemory modify nomemory;
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
34 #endif
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
35
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
36
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
37
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
38 // MikMod's new error handling routines
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
39 // ====================================
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
40
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
41 // Specific Errors [referenced by _mm_errno]
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
42
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
43 enum
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
44 { MMERR_OPENING_FILE = 1,
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
45 MMERR_OUT_OF_MEMORY,
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
46 MMERR_END_OF_FILE,
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
47 MMERR_DISK_FULL,
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
48 MMERR_SAMPLE_TOO_BIG,
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
49 MMERR_OUT_OF_HANDLES,
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
50 MMERR_ALLOCATING_DMA,
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
51 MMERR_UNKNOWN_WAVE_TYPE,
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
52 MMERR_NOT_A_STREAM,
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
53 MMERR_LOADING_PATTERN,
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
54 MMERR_LOADING_TRACK,
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
55 MMERR_LOADING_HEADER,
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
56 MMERR_LOADING_SAMPLEINFO,
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
57 MMERR_NOT_A_MODULE,
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
58 MMERR_DETECTING_DEVICE,
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
59 MMERR_INVALID_DEVICE,
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
60 MMERR_INITIALIZING_MIXER,
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
61 #ifdef SUN
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
62 #elif defined(SOLARIS)
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
63 #elif defined(__alpha)
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
64 MMERR_AF_AUDIO_PORT
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
65 #elif defined(OSS)
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
66 #ifdef ULTRA
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
67 #endif
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
68 #elif defined(__hpux)
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
69 MMERR_OPENING_DEVAUDIO,
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
70 MMERR_SETTING_NONBLOCKING,
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
71 MMERR_SETTING_SAMPLEFORMAT,
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
72 MMERR_SETTING_SAMPLERATE,
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
73 MMERR_SETTING_CHANNELS,
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
74 MMERR_SELECTING_AUDIO_OUTPUT,
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
75 MMERR_GETTING_AUDIO_DESC,
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
76 MMERR_GETTING_GAINS,
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
77 MMERR_SETTING_GAINS,
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
78 MMERR_SETTING_BUFFERSIZE
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
79 #elif defined(AIX)
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
80 MMERR_OPENING_AIX,
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
81 MMERR_AIX_CONFIG_INIT,
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
82 MMERR_AIX_CONFIG_CONTROL,
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
83 MMERR_AIX_CONFIG_START,
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
84 MMERR_AIX_NON_BLOCK
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
85 #elif defined(SGI)
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
86 #elif defined(__OS2__)
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
87 #elif defined(__WIN32__)
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
88 #else
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
89 MMERR_DETECTING_SOUNDCARD,
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
90 MMERR_SETTING_HIDMA
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
91 #endif
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
92 };
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
93
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
94 // Memory allocation with error handling - MMALLOC.C
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
95 // =================================================
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
96
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
97 extern void *_mm_malloc(size_t size);
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
98 extern void *_mm_calloc(size_t nitems, size_t size);
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
99
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
100 extern void (*_mm_errorhandler)(void);
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
101 extern int _mm_errno;
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
102 extern BOOL _mm_critical;
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
103 extern CHAR *_mm_errmsg[];
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
104
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
105 extern void _mm_RegisterErrorHandler(void (*proc)(void));
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
106 extern BOOL _mm_FileExists(CHAR *fname);
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
107
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
108 extern void StringWrite(CHAR *s, FILE *fp);
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
109 extern CHAR *StringRead(FILE *fp);
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
110
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
111
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
112 // MikMod/DivEnt style file input / output -
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
113 // Solves several portability issues.
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
114 // Notibly little vs. big endian machine complications.
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
115
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
116 #define _mm_write_SBYTE(x,y) fputc((int)x,y)
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
117 #define _mm_write_UBYTE(x,y) fputc((int)x,y)
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
118
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
119 #define _mm_read_SBYTE(x) (SBYTE)fgetc(x)
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
120 #define _mm_read_UBYTE(x) (UBYTE)fgetc(x)
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
121
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
122 #define _mm_write_SBYTES(x,y,z) fwrite((void *)x,1,y,z)
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
123 #define _mm_write_UBYTES(x,y,z) fwrite((void *)x,1,y,z)
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
124 #define _mm_read_SBYTES(x,y,z) fread((void *)x,1,y,z)
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
125 #define _mm_read_UBYTES(x,y,z) fread((void *)x,1,y,z)
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
126
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
127 #define _mm_rewind(x) _mm_fseek(x,0,SEEK_SET)
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
128
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
129
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
130 extern int _mm_fseek(FILE *stream, long offset, int whence);
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
131 extern long _mm_iobase_get(void);
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
132 extern void _mm_iobase_set(long iobase);
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
133 extern void _mm_iobase_setcur(FILE *fp);
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
134 extern void _mm_iobase_revert(void);
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
135 extern long _mm_ftell(FILE *stream);
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
136 extern long _mm_flength(FILE *stream);
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
137 extern FILE *_mm_fopen(CHAR *fname, CHAR *attrib);
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
138 extern void _mm_fputs(FILE *fp, CHAR *data);
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
139 extern BOOL _mm_copyfile(FILE *fpi, FILE *fpo, ULONG len);
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
140 extern void _mm_write_string(CHAR *data, FILE *fp);
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
141 extern int _mm_read_string (CHAR *buffer, int number, FILE *fp);
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
142
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
143
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
144 //extern SBYTE _mm_read_SBYTE (FILE *fp);
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
145 //extern UBYTE _mm_read_UBYTE (FILE *fp);
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
146
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
147 extern SWORD _mm_read_M_SWORD (FILE *fp);
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
148 extern SWORD _mm_read_I_SWORD (FILE *fp);
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
149
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
150 extern UWORD _mm_read_M_UWORD (FILE *fp);
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
151 extern UWORD _mm_read_I_UWORD (FILE *fp);
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
152
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
153 extern SLONG _mm_read_M_SLONG (FILE *fp);
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
154 extern SLONG _mm_read_I_SLONG (FILE *fp);
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
155
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
156 extern ULONG _mm_read_M_ULONG (FILE *fp);
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
157 extern ULONG _mm_read_I_ULONG (FILE *fp);
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
158
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
159
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
160 //extern int _mm_read_SBYTES (SBYTE *buffer, int number, FILE *fp);
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
161 //extern int _mm_read_UBYTES (UBYTE *buffer, int number, FILE *fp);
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
162
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
163 extern int _mm_read_M_SWORDS (SWORD *buffer, int number, FILE *fp);
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
164 extern int _mm_read_I_SWORDS (SWORD *buffer, int number, FILE *fp);
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
165
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
166 extern int _mm_read_M_UWORDS (UWORD *buffer, int number, FILE *fp);
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
167 extern int _mm_read_I_UWORDS (UWORD *buffer, int number, FILE *fp);
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
168
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
169 extern int _mm_read_M_SLONGS (SLONG *buffer, int number, FILE *fp);
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
170 extern int _mm_read_I_SLONGS (SLONG *buffer, int number, FILE *fp);
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
171
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
172 extern int _mm_read_M_ULONGS (ULONG *buffer, int number, FILE *fp);
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
173 extern int _mm_read_I_ULONGS (ULONG *buffer, int number, FILE *fp);
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
174
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
175
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
176 //extern void _mm_write_SBYTE (SBYTE data, FILE *fp);
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
177 //extern void _mm_write_UBYTE (UBYTE data, FILE *fp);
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
178
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
179 extern void _mm_write_M_SWORD (SWORD data, FILE *fp);
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
180 extern void _mm_write_I_SWORD (SWORD data, FILE *fp);
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
181
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
182 extern void _mm_write_M_UWORD (UWORD data, FILE *fp);
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
183 extern void _mm_write_I_UWORD (UWORD data, FILE *fp);
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
184
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
185 extern void _mm_write_M_SLONG (SLONG data, FILE *fp);
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
186 extern void _mm_write_I_SLONG (SLONG data, FILE *fp);
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
187
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
188 extern void _mm_write_M_ULONG (ULONG data, FILE *fp);
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
189 extern void _mm_write_I_ULONG (ULONG data, FILE *fp);
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
190
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
191 //extern void _mm_write_SBYTES (SBYTE *data, int number, FILE *fp);
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
192 //extern void _mm_write_UBYTES (UBYTE *data, int number, FILE *fp);
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
193
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
194 extern void _mm_write_M_SWORDS (SWORD *data, int number, FILE *fp);
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
195 extern void _mm_write_I_SWORDS (SWORD *data, int number, FILE *fp);
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
196
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
197 extern void _mm_write_M_UWORDS (UWORD *data, int number, FILE *fp);
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
198 extern void _mm_write_I_UWORDS (UWORD *data, int number, FILE *fp);
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
199
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
200 extern void _mm_write_M_SLONGS (SLONG *data, int number, FILE *fp);
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
201 extern void _mm_write_I_SLONGS (SLONG *data, int number, FILE *fp);
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
202
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
203 extern void _mm_write_M_ULONGS (ULONG *data, int number, FILE *fp);
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
204 extern void _mm_write_I_ULONGS (ULONG *data, int number, FILE *fp);
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
205
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
206 #ifdef __WATCOMC__
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
207 #pragma aux _mm_fseek parm nomemory modify nomemory
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
208 #pragma aux _mm_ftell parm nomemory modify nomemory
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
209 #pragma aux _mm_flength parm nomemory modify nomemory
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
210 #pragma aux _mm_fopen parm nomemory modify nomemory
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
211 #pragma aux _mm_fputs parm nomemory modify nomemory
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
212 #pragma aux _mm_copyfile parm nomemory modify nomemory
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
213 #pragma aux _mm_iobase_get parm nomemory modify nomemory
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
214 #pragma aux _mm_iobase_set parm nomemory modify nomemory
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
215 #pragma aux _mm_iobase_setcur parm nomemory modify nomemory
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
216 #pragma aux _mm_iobase_revert parm nomemory modify nomemory
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
217 #pragma aux _mm_write_string parm nomemory modify nomemory
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
218 #pragma aux _mm_read_string parm nomemory modify nomemory
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
219
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
220 #pragma aux _mm_read_M_SWORD parm nomemory modify nomemory;
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
221 #pragma aux _mm_read_I_SWORD parm nomemory modify nomemory;
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
222 #pragma aux _mm_read_M_UWORD parm nomemory modify nomemory;
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
223 #pragma aux _mm_read_I_UWORD parm nomemory modify nomemory;
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
224 #pragma aux _mm_read_M_SLONG parm nomemory modify nomemory;
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
225 #pragma aux _mm_read_I_SLONG parm nomemory modify nomemory;
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
226 #pragma aux _mm_read_M_ULONG parm nomemory modify nomemory;
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
227 #pragma aux _mm_read_I_ULONG parm nomemory modify nomemory;
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
228
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
229 #pragma aux _mm_read_M_SWORDS parm nomemory modify nomemory;
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
230 #pragma aux _mm_read_I_SWORDS parm nomemory modify nomemory;
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
231 #pragma aux _mm_read_M_UWORDS parm nomemory modify nomemory;
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
232 #pragma aux _mm_read_I_UWORDS parm nomemory modify nomemory;
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
233 #pragma aux _mm_read_M_SLONGS parm nomemory modify nomemory;
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
234 #pragma aux _mm_read_I_SLONGS parm nomemory modify nomemory;
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
235 #pragma aux _mm_read_M_ULONGS parm nomemory modify nomemory;
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
236 #pragma aux _mm_read_I_ULONGS parm nomemory modify nomemory;
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
237
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
238 #pragma aux _mm_write_M_SWORD parm nomemory modify nomemory;
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
239 #pragma aux _mm_write_I_SWORD parm nomemory modify nomemory;
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
240 #pragma aux _mm_write_M_UWORD parm nomemory modify nomemory;
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
241 #pragma aux _mm_write_I_UWORD parm nomemory modify nomemory;
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
242 #pragma aux _mm_write_M_SLONG parm nomemory modify nomemory;
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
243 #pragma aux _mm_write_I_SLONG parm nomemory modify nomemory;
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
244 #pragma aux _mm_write_M_ULONG parm nomemory modify nomemory;
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
245 #pragma aux _mm_write_I_ULONG parm nomemory modify nomemory;
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
246
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
247 #pragma aux _mm_write_M_SWORDS parm nomemory modify nomemory;
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
248 #pragma aux _mm_write_I_SWORDS parm nomemory modify nomemory;
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
249 #pragma aux _mm_write_M_UWORDS parm nomemory modify nomemory;
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
250 #pragma aux _mm_write_I_UWORDS parm nomemory modify nomemory;
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
251 #pragma aux _mm_write_M_SLONGS parm nomemory modify nomemory;
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
252 #pragma aux _mm_write_I_SLONGS parm nomemory modify nomemory;
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
253 #pragma aux _mm_write_M_ULONGS parm nomemory modify nomemory;
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
254 #pragma aux _mm_write_I_ULONGS parm nomemory modify nomemory;
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
255 #endif
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
256
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
257
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
258 #ifndef __WATCOMC__
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
259 #ifndef __GNUC__
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
260 extern CHAR *strdup(CHAR *str);
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
261 #endif
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
262 #endif
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
263
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
264 #ifdef __cplusplus
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
265 };
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
266 #endif
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
267
55420dceb8e0 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
268 #endif