Codebase list libmpc / 288bdba
Imported Upstream version 0.1~r402 Alessio Treglia 12 years ago
32 changed file(s) with 3010 addition(s) and 39 deletion(s). Raw diff Collapse all Expand all
125125 # define mpc_cdecl
126126 #endif
127127
128 #ifdef __GNUC__
129 # define MPC_API __attribute__ ((visibility("default")))
130 #else
131 # define MPC_API
132 #endif
133
128134 #ifdef __cplusplus
129135 }
130136 #endif
3838 #pragma once
3939 #endif
4040
41 #include "reader.h"
4142 #include "streaminfo.h"
4243
4344 #ifdef __cplusplus
5152 };
5253
5354 typedef struct mpc_decoder_t mpc_decoder;
54 typedef struct mpc_bits_reader_t mpc_bits_reader;
5555 typedef struct mpc_demux_t mpc_demux;
56
57 typedef struct mpc_bits_reader_t {
58 unsigned char * buff; /// pointer on current byte
59 unsigned int count; /// unread bits in current byte
60 } mpc_bits_reader;
5661
5762 typedef struct mpc_frame_info_t {
5863 mpc_uint32_t samples; /// number of samples in the frame (counting once for multiple channels)
6469 /// Initializes mpc decoder with the supplied stream info parameters.
6570 /// \param si streaminfo structure indicating format of source stream
6671 /// \return pointer on the initialized decoder structure if successful, 0 if not
67 mpc_decoder * mpc_decoder_init(mpc_streaminfo *si);
72 MPC_API mpc_decoder * mpc_decoder_init(mpc_streaminfo *si);
6873
6974 /// Releases input mpc decoder
70 void mpc_decoder_exit(mpc_decoder *p_dec);
75 MPC_API void mpc_decoder_exit(mpc_decoder *p_dec);
7176
7277 /**
7378 * Sets decoder sample scaling factor. All decoded samples will be multiplied
7479 * by this factor. Useful for applying replay gain.
7580 * @param scale_factor multiplicative scaling factor
7681 */
77 void mpc_decoder_scale_output(mpc_decoder *p_dec, double scale_factor);
82 MPC_API void mpc_decoder_scale_output(mpc_decoder *p_dec, double scale_factor);
7883
79 void mpc_decoder_decode_frame(mpc_decoder * d, mpc_bits_reader * r, mpc_frame_info * i);
84 MPC_API void mpc_decoder_decode_frame(mpc_decoder * d, mpc_bits_reader * r, mpc_frame_info * i);
8085
8186 // This is the gain reference used in old replaygain
8287 #define MPC_OLD_GAIN_REF 64.82
8691 * @param p_reader initialized mpc_reader pointer
8792 * @return an initialized mpc_demux pointer
8893 */
89 mpc_demux * mpc_demux_init(mpc_reader * p_reader);
94 MPC_API mpc_demux * mpc_demux_init(mpc_reader * p_reader);
9095 /// free demuxer
91 void mpc_demux_exit(mpc_demux * d);
96 MPC_API void mpc_demux_exit(mpc_demux * d);
9297 /**
9398 * Calls mpc_decoder_scale_output to set the scaling factor according to the
9499 * replay gain stream information and the supplied ouput level
98103 * @param use_title MPC_TRUE : uses the title gain, MPC_FALSE : uses the album gain
99104 * @param clip_prevention MPC_TRUE : uses cliping prevention
100105 */
101 void mpc_set_replay_level(mpc_demux * d, float level, mpc_bool_t use_gain,
106 MPC_API void mpc_set_replay_level(mpc_demux * d, float level, mpc_bool_t use_gain,
102107 mpc_bool_t use_title, mpc_bool_t clip_prevention);
103108 /// decode frame
104 mpc_status mpc_demux_decode(mpc_demux * d, mpc_frame_info * i);
109 MPC_API mpc_status mpc_demux_decode(mpc_demux * d, mpc_frame_info * i);
105110 /// get streaminfo
106 void mpc_demux_get_info(mpc_demux * d, mpc_streaminfo * i);
111 MPC_API void mpc_demux_get_info(mpc_demux * d, mpc_streaminfo * i);
107112 /// seeks to a given sample
108 mpc_status mpc_demux_seek_sample(mpc_demux * d, mpc_uint64_t destsample);
113 MPC_API mpc_status mpc_demux_seek_sample(mpc_demux * d, mpc_uint64_t destsample);
109114 /// seeks to a given second
110 mpc_status mpc_demux_seek_second(mpc_demux * d, double seconds);
115 MPC_API mpc_status mpc_demux_seek_second(mpc_demux * d, double seconds);
111116
112117 /// \return the current position in the stream (in bits) from the beginning of the file
113 mpc_seek_t mpc_demux_pos(mpc_demux * d);
118 MPC_API mpc_seek_t mpc_demux_pos(mpc_demux * d);
114119
115120 /// chapters : only for sv8 streams
116121 /**
118123 * @param d pointer to a musepack demuxer
119124 * @return the number of chapters found in the stream
120125 */
121 mpc_int_t mpc_demux_chap_nb(mpc_demux * d);
126 MPC_API mpc_int_t mpc_demux_chap_nb(mpc_demux * d);
122127 /**
123128 * Gets datas associated to a given chapter
124129 * You can pass 0 for tag and tag_size if you don't needs the tag information
129134 * @param tag_size will be filed with the tag data size (0 if no tag for this chapter)
130135 * @return the sample where the chapter starts
131136 */
132 mpc_uint64_t mpc_demux_chap(mpc_demux * d, int chap_nb, char ** tag, mpc_uint_t * tag_size);
137 MPC_API mpc_uint64_t mpc_demux_chap(mpc_demux * d, int chap_nb, char ** tag, mpc_uint_t * tag_size);
133138
134139 #ifdef __cplusplus
135140 }
7777 ///
7878 /// \param r p_reader handle to initialize
7979 /// \param filename input filename to attach to the reader
80 mpc_status mpc_reader_init_stdio(mpc_reader *p_reader, const char *filename);
80 MPC_API mpc_status mpc_reader_init_stdio(mpc_reader *p_reader, const char *filename);
8181
8282 /// Initializes reader with default stdio file reader implementation. Use
8383 /// this if you prefer to open the file yourself.
8484 ///
8585 /// \param r p_reader handle to initialize
8686 /// \param p_file input file handle (already open)
87 mpc_status mpc_reader_init_stdio_stream(mpc_reader * p_reader, FILE * p_file);
87 MPC_API mpc_status mpc_reader_init_stdio_stream(mpc_reader * p_reader, FILE * p_file);
8888
8989 /// Release reader with default stdio file reader implementation.
9090 ///
9191 /// \param r reader handle to release
92 void mpc_reader_exit_stdio(mpc_reader *p_reader);
92 MPC_API void mpc_reader_exit_stdio(mpc_reader *p_reader);
9393
9494 #ifdef __cplusplus
9595 }
3838 #endif
3939
4040 #include <mpc/mpc_types.h>
41 #include "reader.h"
4241
4342 #ifdef __cplusplus
4443 extern "C" {
9796
9897 /// Gets length of stream si, in seconds.
9998 /// \return length of stream in seconds
100 double mpc_streaminfo_get_length(mpc_streaminfo *si);
99 MPC_API double mpc_streaminfo_get_length(mpc_streaminfo *si);
101100
102101 /// Returns length of stream si, in samples.
103102 /// \return length of stream in samples
104 mpc_int64_t mpc_streaminfo_get_length_samples(mpc_streaminfo *si);
103 MPC_API mpc_int64_t mpc_streaminfo_get_length_samples(mpc_streaminfo *si);
105104
106105 #ifdef __cplusplus
107106 }
1111 libmpcdec_la_LDFLAGS = -no-undefined -version-info 6:0:0
1212
1313 noinst_HEADERS = mpc_bits_reader.h
14 AM_CFLAGS = -fpic -fvisibility=hidden
198198
199199 libmpcdec_la_LDFLAGS = -no-undefined -version-info 6:0:0
200200 noinst_HEADERS = mpc_bits_reader.h
201 AM_CFLAGS = -fpic -fvisibility=hidden
201202 all: all-am
202203
203204 .SUFFIXES:
5555 mpc_uint64_t size; // block size minus the block header size
5656 } mpc_block;
5757
58 // mpc_bits_reader.c
59 struct mpc_bits_reader_t {
60 unsigned char * buff; /// pointer on current byte
61 unsigned int count; /// unread bits in current byte
62 };
63
6458 #define MAX_FRAME_SIZE 4352
6559 #define DEMUX_BUFFER_SIZE (65536 - MAX_FRAME_SIZE) // need some space as sand box
6660
3333
3434 #define MAX_ENUM 32
3535
36 int mpc_bits_get_block(mpc_bits_reader * r, mpc_block * p_block);
36 MPC_API int mpc_bits_get_block(mpc_bits_reader * r, mpc_block * p_block);
3737 mpc_int32_t mpc_bits_golomb_dec(mpc_bits_reader * r, const mpc_uint_t k);
3838 unsigned int mpc_bits_get_size(mpc_bits_reader * r, mpc_uint64_t * p_size);
3939 mpc_uint32_t mpc_bits_log_dec(mpc_bits_reader * r, mpc_uint_t max);
155155 * @return size of tag, in bytes
156156 * @return MPC_STATUS_FILE on errors of any kind
157157 */
158 mpc_int32_t mpc_demux_skip_id3v2(mpc_demux * d)
158 static mpc_int32_t mpc_demux_skip_id3v2(mpc_demux * d)
159159 {
160160 mpc_uint8_t tmp [4];
161161 mpc_bool_t footerPresent; // ID3v2.4-flag
201201 return size + 10;
202202 }
203203
204 mpc_status mpc_demux_seek_init(mpc_demux * d)
204 static mpc_status mpc_demux_seek_init(mpc_demux * d)
205205 {
206206 if (d->seek_table != 0)
207207 return MPC_STATUS_OK;
00 INCLUDES = -I$(top_srcdir)/include
1
2 common_sources = ../common/crc32.c
3
14 METASOURCES = AUTO
25 bin_PROGRAMS = mpc2sv8
3 mpc2sv8_SOURCES = mpc2sv8.c
6 mpc2sv8_SOURCES = mpc2sv8.c $(common_sources)
47 mpc2sv8_LDADD = -lm \
58 $(top_builddir)/libmpcdec/libmpcdec.la \
69 $(top_builddir)/libmpcenc/libmpcenc.a
4444 am__installdirs = "$(DESTDIR)$(bindir)"
4545 binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
4646 PROGRAMS = $(bin_PROGRAMS)
47 am_mpc2sv8_OBJECTS = mpc2sv8.$(OBJEXT)
47 am__objects_1 = crc32.$(OBJEXT)
48 am_mpc2sv8_OBJECTS = mpc2sv8.$(OBJEXT) $(am__objects_1)
4849 mpc2sv8_OBJECTS = $(am_mpc2sv8_OBJECTS)
4950 mpc2sv8_DEPENDENCIES = $(top_builddir)/libmpcdec/libmpcdec.la \
5051 $(top_builddir)/libmpcenc/libmpcenc.a
174175 top_builddir = @top_builddir@
175176 top_srcdir = @top_srcdir@
176177 INCLUDES = -I$(top_srcdir)/include
178 common_sources = ../common/crc32.c
177179 METASOURCES = AUTO
178 mpc2sv8_SOURCES = mpc2sv8.c
180 mpc2sv8_SOURCES = mpc2sv8.c $(common_sources)
179181 mpc2sv8_LDADD = -lm \
180182 $(top_builddir)/libmpcdec/libmpcdec.la \
181183 $(top_builddir)/libmpcenc/libmpcenc.a
251253 distclean-compile:
252254 -rm -f *.tab.c
253255
256 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/crc32.Po@am__quote@
254257 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mpc2sv8.Po@am__quote@
255258
256259 .c.o:
273276 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
274277 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
275278 @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
279
280 crc32.o: ../common/crc32.c
281 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT crc32.o -MD -MP -MF $(DEPDIR)/crc32.Tpo -c -o crc32.o `test -f '../common/crc32.c' || echo '$(srcdir)/'`../common/crc32.c
282 @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/crc32.Tpo $(DEPDIR)/crc32.Po
283 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../common/crc32.c' object='crc32.o' libtool=no @AMDEPBACKSLASH@
284 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
285 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o crc32.o `test -f '../common/crc32.c' || echo '$(srcdir)/'`../common/crc32.c
286
287 crc32.obj: ../common/crc32.c
288 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT crc32.obj -MD -MP -MF $(DEPDIR)/crc32.Tpo -c -o crc32.obj `if test -f '../common/crc32.c'; then $(CYGPATH_W) '../common/crc32.c'; else $(CYGPATH_W) '$(srcdir)/../common/crc32.c'; fi`
289 @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/crc32.Tpo $(DEPDIR)/crc32.Po
290 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../common/crc32.c' object='crc32.obj' libtool=no @AMDEPBACKSLASH@
291 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
292 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o crc32.obj `if test -f '../common/crc32.c'; then $(CYGPATH_W) '../common/crc32.c'; else $(CYGPATH_W) '$(srcdir)/../common/crc32.c'; fi`
276293
277294 mostlyclean-libtool:
278295 -rm -f *.lo
00 bin_PROGRAMS = mpcchap
11
2 common_sources = ../common/tags.c
2 common_sources = ../common/tags.c ../common/crc32.c
33
44 INCLUDES = -I$(top_srcdir)/include -I/home/nico/src/cuetools-1.3.1/
55 METASOURCES = AUTO
4444 am__installdirs = "$(DESTDIR)$(bindir)"
4545 binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
4646 PROGRAMS = $(bin_PROGRAMS)
47 am__objects_1 = tags.$(OBJEXT)
47 am__objects_1 = tags.$(OBJEXT) crc32.$(OBJEXT)
4848 am_mpcchap_OBJECTS = dictionary.$(OBJEXT) iniparser.$(OBJEXT) \
4949 mpcchap.$(OBJEXT) $(am__objects_1)
5050 mpcchap_OBJECTS = $(am_mpcchap_OBJECTS)
176176 target_alias = @target_alias@
177177 top_builddir = @top_builddir@
178178 top_srcdir = @top_srcdir@
179 common_sources = ../common/tags.c
179 common_sources = ../common/tags.c ../common/crc32.c
180180 INCLUDES = -I$(top_srcdir)/include -I/home/nico/src/cuetools-1.3.1/
181181 METASOURCES = AUTO
182182 mpcchap_SOURCES = dictionary.c iniparser.c mpcchap.c $(common_sources)
254254 distclean-compile:
255255 -rm -f *.tab.c
256256
257 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/crc32.Po@am__quote@
257258 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dictionary.Po@am__quote@
258259 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/iniparser.Po@am__quote@
259260 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mpcchap.Po@am__quote@
293294 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../common/tags.c' object='tags.obj' libtool=no @AMDEPBACKSLASH@
294295 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
295296 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o tags.obj `if test -f '../common/tags.c'; then $(CYGPATH_W) '../common/tags.c'; else $(CYGPATH_W) '$(srcdir)/../common/tags.c'; fi`
297
298 crc32.o: ../common/crc32.c
299 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT crc32.o -MD -MP -MF $(DEPDIR)/crc32.Tpo -c -o crc32.o `test -f '../common/crc32.c' || echo '$(srcdir)/'`../common/crc32.c
300 @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/crc32.Tpo $(DEPDIR)/crc32.Po
301 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../common/crc32.c' object='crc32.o' libtool=no @AMDEPBACKSLASH@
302 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
303 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o crc32.o `test -f '../common/crc32.c' || echo '$(srcdir)/'`../common/crc32.c
304
305 crc32.obj: ../common/crc32.c
306 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT crc32.obj -MD -MP -MF $(DEPDIR)/crc32.Tpo -c -o crc32.obj `if test -f '../common/crc32.c'; then $(CYGPATH_W) '../common/crc32.c'; else $(CYGPATH_W) '$(srcdir)/../common/crc32.c'; fi`
307 @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/crc32.Tpo $(DEPDIR)/crc32.Po
308 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../common/crc32.c' object='crc32.obj' libtool=no @AMDEPBACKSLASH@
309 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
310 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o crc32.obj `if test -f '../common/crc32.c'; then $(CYGPATH_W) '../common/crc32.c'; else $(CYGPATH_W) '$(srcdir)/../common/crc32.c'; fi`
296311
297312 mostlyclean-libtool:
298313 -rm -f *.lo
00 INCLUDES = -I$(top_srcdir)/include
1
2 common_sources = ../common/crc32.c
3
14 METASOURCES = AUTO
25 bin_PROGRAMS = mpccut
3 mpccut_SOURCES = mpccut.c
6 mpccut_SOURCES = mpccut.c $(common_sources)
47 mpccut_LDADD = $(top_builddir)/libmpcenc/libmpcenc.a \
58 $(top_builddir)/libmpcdec/libmpcdec.la -lm
4444 am__installdirs = "$(DESTDIR)$(bindir)"
4545 binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
4646 PROGRAMS = $(bin_PROGRAMS)
47 am_mpccut_OBJECTS = mpccut.$(OBJEXT)
47 am__objects_1 = crc32.$(OBJEXT)
48 am_mpccut_OBJECTS = mpccut.$(OBJEXT) $(am__objects_1)
4849 mpccut_OBJECTS = $(am_mpccut_OBJECTS)
4950 mpccut_DEPENDENCIES = $(top_builddir)/libmpcenc/libmpcenc.a \
5051 $(top_builddir)/libmpcdec/libmpcdec.la
174175 top_builddir = @top_builddir@
175176 top_srcdir = @top_srcdir@
176177 INCLUDES = -I$(top_srcdir)/include
178 common_sources = ../common/crc32.c
177179 METASOURCES = AUTO
178 mpccut_SOURCES = mpccut.c
180 mpccut_SOURCES = mpccut.c $(common_sources)
179181 mpccut_LDADD = $(top_builddir)/libmpcenc/libmpcenc.a \
180182 $(top_builddir)/libmpcdec/libmpcdec.la -lm
181183
250252 distclean-compile:
251253 -rm -f *.tab.c
252254
255 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/crc32.Po@am__quote@
253256 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mpccut.Po@am__quote@
254257
255258 .c.o:
272275 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
273276 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
274277 @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
278
279 crc32.o: ../common/crc32.c
280 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT crc32.o -MD -MP -MF $(DEPDIR)/crc32.Tpo -c -o crc32.o `test -f '../common/crc32.c' || echo '$(srcdir)/'`../common/crc32.c
281 @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/crc32.Tpo $(DEPDIR)/crc32.Po
282 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../common/crc32.c' object='crc32.o' libtool=no @AMDEPBACKSLASH@
283 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
284 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o crc32.o `test -f '../common/crc32.c' || echo '$(srcdir)/'`../common/crc32.c
285
286 crc32.obj: ../common/crc32.c
287 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT crc32.obj -MD -MP -MF $(DEPDIR)/crc32.Tpo -c -o crc32.obj `if test -f '../common/crc32.c'; then $(CYGPATH_W) '../common/crc32.c'; else $(CYGPATH_W) '$(srcdir)/../common/crc32.c'; fi`
288 @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/crc32.Tpo $(DEPDIR)/crc32.Po
289 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../common/crc32.c' object='crc32.obj' libtool=no @AMDEPBACKSLASH@
290 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
291 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o crc32.obj `if test -f '../common/crc32.c'; then $(CYGPATH_W) '../common/crc32.c'; else $(CYGPATH_W) '$(srcdir)/../common/crc32.c'; fi`
275292
276293 mostlyclean-libtool:
277294 -rm -f *.lo
0 /**
1 * @file attgetopt.c
2 * @ingroup wbxml2xml_tool
3 * @ingroup xml2wbxml_tool
4 *
5 * AT&T's public domain implementation of getopt.
6 *
7 * From the mod.sources newsgroup, volume 3, issue 58, with modifications
8 * to bring it up to 21st century C.
9 *
10 * Taken from Kannel Project (http://www.kannel.org/)
11 */
12
13 #include <stdio.h>
14 #include <string.h>
15
16
17 #define ERR(s, c) if (opterr) (void) fprintf(stderr, "%s: %s\n", argv[0], s)
18
19 int opterr = 1;
20 int optind = 1;
21 int optopt;
22 char *optarg;
23
24 int getopt(int argc, char **argv, char *opts)
25 {
26 static int sp = 1;
27 register int c;
28 register char *cp;
29
30 if(sp == 1) {
31 if(optind >= argc ||
32 argv[optind][0] != '-' || argv[optind][1] == '\0')
33 return(EOF);
34 else if(strcmp(argv[optind], "--") == 0) {
35 optind++;
36 return(EOF);
37 }
38 }
39 optopt = c = argv[optind][sp];
40 if(c == ':' || (cp=strchr(opts, c)) == NULL) {
41 ERR(": illegal option -- ", c);
42 if(argv[optind][++sp] == '\0') {
43 optind++;
44 sp = 1;
45 }
46 return('?');
47 }
48 if(*++cp == ':') {
49 if(argv[optind][sp+1] != '\0')
50 optarg = &argv[optind++][sp+1];
51 else if(++optind >= argc) {
52 ERR(": option requires an argument -- ", c);
53 sp = 1;
54 return('?');
55 } else
56 optarg = argv[optind++];
57 sp = 1;
58 } else {
59 if(argv[optind][++sp] == '\0') {
60 sp = 1;
61 optind++;
62 }
63 optarg = NULL;
64 }
65 return(c);
66 }
0 /* basename.c
1 *
2 * $Id: basename.c,v 1.2 2007/03/08 23:15:58 keithmarshall Exp $
3 *
4 * Provides an implementation of the "basename" function, conforming
5 * to SUSv3, with extensions to accommodate Win32 drive designators,
6 * and suitable for use on native Microsoft(R) Win32 platforms.
7 *
8 * Written by Keith Marshall <keithmarshall@users.sourceforge.net>
9 *
10 * This is free software. You may redistribute and/or modify it as you
11 * see fit, without restriction of copyright.
12 *
13 * This software is provided "as is", in the hope that it may be useful,
14 * but WITHOUT WARRANTY OF ANY KIND, not even any implied warranty of
15 * MERCHANTABILITY, nor of FITNESS FOR ANY PARTICULAR PURPOSE. At no
16 * time will the author accept any form of liability for any damages,
17 * however caused, resulting from the use of this software.
18 *
19 */
20
21 #include <stdio.h>
22 #include <stdlib.h>
23 #include <string.h>
24 #include <libgen.h>
25 #include <locale.h>
26
27 #ifndef __cdecl /* If compiling on any non-Win32 platform ... */
28 #define __cdecl /* this may not be defined. */
29 #endif
30
31 __cdecl char *basename( char *path )
32 {
33 size_t len;
34 static char *retfail = NULL;
35
36 /* to handle path names for files in multibyte character locales,
37 * we need to set up LC_CTYPE to match the host file system locale
38 */
39
40 char *locale = setlocale( LC_CTYPE, NULL );
41 if( locale != NULL ) locale = strdup( locale );
42 setlocale( LC_CTYPE, "" );
43
44 if( path && *path )
45 {
46 /* allocate sufficient local storage space,
47 * in which to create a wide character reference copy of path
48 */
49
50 wchar_t * refcopy, * refpath;
51 len = mbstowcs( NULL, path, 0 );
52 refcopy = malloc((1 + len) * sizeof(wchar_t));
53
54 /* create the wide character reference copy of path,
55 * and step over the drive designator, if present ...
56 */
57
58 refpath = refcopy;
59 if( ((len = mbstowcs( refpath, path, len )) > 1) && (refpath[1] == L':') )
60 {
61 /* FIXME: maybe should confirm *refpath is a valid drive designator */
62
63 refpath += 2;
64 }
65
66 /* ensure that our wide character reference path is NUL terminated */
67
68 refcopy[ len ] = L'\0';
69
70 /* check again, just to ensure we still have a non-empty path name ... */
71
72 if( *refpath )
73 {
74 /* and, when we do, process it in the wide character domain ...
75 * scanning from left to right, to the char after the final dir separator
76 */
77
78 wchar_t *refname;
79 for( refname = refpath ; *refpath ; ++refpath )
80 {
81 if( (*refpath == L'/') || (*refpath == L'\\') )
82 {
83 /* we found a dir separator ...
84 * step over it, and any others which immediately follow it
85 */
86
87 while( (*refpath == L'/') || (*refpath == L'\\') )
88 ++refpath;
89
90 /* if we didn't reach the end of the path string ... */
91
92 if( *refpath )
93
94 /* then we have a new candidate for the base name */
95
96 refname = refpath;
97
98 /* otherwise ...
99 * strip off any trailing dir separators which we found
100 */
101
102 else while( (refpath > refname)
103 && ((*--refpath == L'/') || (*refpath == L'\\')) )
104 *refpath = L'\0';
105 }
106 }
107
108 /* in the wide character domain ...
109 * refname now points at the resolved base name ...
110 */
111
112 if( *refname )
113 {
114 /* if it's not empty,
115 * then we transform the full normalised path back into
116 * the multibyte character domain, and skip over the dirname,
117 * to return the resolved basename.
118 */
119
120 if( (len = wcstombs( path, refcopy, len )) != (size_t)(-1) )
121 path[ len ] = '\0';
122 *refname = L'\0';
123 if( (len = wcstombs( NULL, refcopy, 0 )) != (size_t)(-1) )
124 path += len;
125 }
126
127 else
128 {
129 /* the basename is empty, so return the default value of "/",
130 * transforming from wide char to multibyte char domain, and
131 * returning it in our own buffer.
132 */
133
134 retfail = realloc( retfail, len = 1 + wcstombs( NULL, L"/", 0 ));
135 wcstombs( path = retfail, L"/", len );
136 }
137
138 /* restore the caller's locale, clean up, and return the result */
139
140 setlocale( LC_CTYPE, locale );
141 free( locale );
142 return( path );
143 }
144
145 free(refcopy);
146 /* or we had an empty residual path name, after the drive designator,
147 * in which case we simply fall through ...
148 */
149 }
150
151 /* and, if we get to here ...
152 * the path name is either NULL, or it decomposes to an empty string;
153 * in either case, we return the default value of "." in our own buffer,
154 * reloading it with the correct value, transformed from the wide char
155 * to the multibyte char domain, just in case the caller trashed it
156 * after a previous call.
157 */
158
159 retfail = realloc( retfail, len = 1 + wcstombs( NULL, L".", 0 ));
160 wcstombs( retfail, L".", len );
161
162 /* restore the caller's locale, clean up, and return the result */
163
164 setlocale( LC_CTYPE, locale );
165 free( locale );
166 return( retfail );
167 }
168
169 /* $RCSfile: basename.c,v $$Revision: 1.2 $: end of file */
0 /* /////////////////////////////////////////////////////////////////////////////
1 * File: dirent.c
2 *
3 * Purpose: Definition of the opendir() API functions for the Win32 platform.
4 *
5 * Created: 19th October 2002
6 * Updated: 12th September 2006
7 *
8 * Home: http://synesis.com.au/software/
9 *
10 * Copyright (c) 2002-2006, Matthew Wilson and Synesis Software
11 * All rights reserved.
12 *
13 * Redistribution and use in source and binary forms, with or without
14 * modification, are permitted provided that the following conditions are met:
15 *
16 * - Redistributions of source code must retain the above copyright notice, this
17 * list of conditions and the following disclaimer.
18 * - Redistributions in binary form must reproduce the above copyright notice,
19 * this list of conditions and the following disclaimer in the documentation
20 * and/or other materials provided with the distribution.
21 * - Neither the names of Matthew Wilson and Synesis Software nor the names of
22 * any contributors may be used to endorse or promote products derived from
23 * this software without specific prior written permission.
24 *
25 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
26 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
28 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
29 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
30 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
31 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
32 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
33 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
34 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
35 * POSSIBILITY OF SUCH DAMAGE.
36 *
37 * ////////////////////////////////////////////////////////////////////////// */
38
39
40 #ifndef UNIXEM_DOCUMENTATION_SKIP_SECTION
41 # define _SYNSOFT_VER_C_DIRENT_MAJOR 2
42 # define _SYNSOFT_VER_C_DIRENT_MINOR 2
43 # define _SYNSOFT_VER_C_DIRENT_REVISION 5
44 # define _SYNSOFT_VER_C_DIRENT_EDIT 32
45 #endif /* !UNIXEM_DOCUMENTATION_SKIP_SECTION */
46
47 /* /////////////////////////////////////////////////////////////////////////////
48 * Includes
49 */
50
51 #include <dirent.h>
52
53 #include <errno.h>
54 #include <stdlib.h>
55 #include <windows.h>
56
57 /* /////////////////////////////////////////////////////////////////////////////
58 * Compiler differences
59 */
60
61 #if defined(__BORLANDC__)
62 # define UNIXEM_opendir_PROVIDED_BY_COMPILER
63 #elif defined(__DMC__)
64 # define UNIXEM_opendir_PROVIDED_BY_COMPILER
65 #elif defined(__GNUC__)
66 # define UNIXEM_opendir_PROVIDED_BY_COMPILER
67 #elif defined(__INTEL_COMPILER)
68 #elif defined(_MSC_VER)
69 #elif defined(__MWERKS__)
70 #elif defined(__WATCOMC__)
71 #else
72 # error Compiler not discriminated
73 #endif /* compiler */
74
75
76 #if defined(UNIXEM_opendir_PROVIDED_BY_COMPILER) && \
77 !defined(UNIXEM_FORCE_ANY_COMPILER)
78 # error The opendir() API is provided by this compiler, so should not be built here
79 #endif /* !UNIXEM_opendir_PROVIDED_BY_COMPILER */
80
81 /* /////////////////////////////////////////////////////////////////////////////
82 * Constants and definitions
83 */
84
85 #ifndef FILE_ATTRIBUTE_ERROR
86 # define FILE_ATTRIBUTE_ERROR (0xFFFFFFFF)
87 #endif /* FILE_ATTRIBUTE_ERROR */
88
89 /* /////////////////////////////////////////////////////////////////////////////
90 * Typedefs
91 */
92
93 struct dirent_dir
94 {
95 char directory[_MAX_DIR + 1]; /* . */
96 WIN32_FIND_DATAA find_data; /* The Win32 FindFile data. */
97 HANDLE hFind; /* The Win32 FindFile handle. */
98 struct dirent dirent; /* The handle's entry. */
99 };
100
101 struct wdirent_dir
102 {
103 wchar_t directory[_MAX_DIR + 1]; /* . */
104 WIN32_FIND_DATAW find_data; /* The Win32 FindFile data. */
105 HANDLE hFind; /* The Win32 FindFile handle. */
106 struct wdirent dirent; /* The handle's entry. */
107 };
108
109 /* /////////////////////////////////////////////////////////////////////////////
110 * Helper functions
111 */
112
113 static HANDLE unixem__dirent__findfile_directory(char const *name, LPWIN32_FIND_DATAA data)
114 {
115 char search_spec[_MAX_PATH +1];
116
117 /* Simply add the *.*, ensuring the path separator is
118 * included.
119 */
120 (void)lstrcpyA(search_spec, name);
121 if( '\\' != search_spec[lstrlenA(search_spec) - 1] &&
122 '/' != search_spec[lstrlenA(search_spec) - 1])
123 {
124 (void)lstrcatA(search_spec, "\\*.*");
125 }
126 else
127 {
128 (void)lstrcatA(search_spec, "*.*");
129 }
130
131 return FindFirstFileA(search_spec, data);
132 }
133
134 #if 0
135 static HANDLE unixem__dirent__wfindfile_directory(wchar_t const *name, LPWIN32_FIND_DATAW data)
136 {
137 wchar_t search_spec[_MAX_PATH +1];
138
139 /* Simply add the *.*, ensuring the path separator is
140 * included.
141 */
142 lstrcpyW(search_spec, name);
143 if( L'\\' != search_spec[lstrlenW(search_spec) - 1] &&
144 L'/' != search_spec[lstrlenW(search_spec) - 1])
145 {
146 lstrcatW(search_spec, L"\\*.*");
147 }
148 else
149 {
150 lstrcatW(search_spec, L"*.*");
151 }
152
153 return FindFirstFileW(search_spec, data);
154 }
155 #endif /* 0 */
156
157 /* /////////////////////////////////////////////////////////////////////////////
158 * API functions
159 */
160
161 DIR *opendir(char const *name)
162 {
163 DIR *result = NULL;
164 DWORD dwAttr;
165
166 /* Must be a valid name */
167 if( !name ||
168 !*name ||
169 (dwAttr = GetFileAttributes(name)) == 0xFFFFFFFF)
170 {
171 errno = ENOENT;
172 }
173 /* Must be a directory */
174 else if(!(dwAttr & FILE_ATTRIBUTE_DIRECTORY))
175 {
176 errno = ENOTDIR;
177 }
178 else
179 {
180 result = (DIR*)malloc(sizeof(DIR));
181
182 if(result == NULL)
183 {
184 errno = ENOMEM;
185 }
186 else
187 {
188 result->hFind = unixem__dirent__findfile_directory(name, &result->find_data);
189
190 if(result->hFind == INVALID_HANDLE_VALUE)
191 {
192 free(result);
193
194 result = NULL;
195 }
196 else
197 {
198 /* Save the directory, in case of rewind. */
199 (void)lstrcpyA(result->directory, name);
200 (void)lstrcpyA(result->dirent.d_name, result->find_data.cFileName);
201 result->dirent.d_mode = (int)result->find_data.dwFileAttributes;
202 }
203 }
204 }
205
206 #if 0
207 if(NULL != dir)
208 {
209 struct dirent *readdir(DIR *dir)
210
211 }
212 #endif /* 0 */
213
214
215
216 return result;
217 }
218
219 int closedir(DIR *dir)
220 {
221 int ret;
222
223 if(dir == NULL)
224 {
225 errno = EBADF;
226
227 ret = -1;
228 }
229 else
230 {
231 /* Close the search handle, if not already done. */
232 if(dir->hFind != INVALID_HANDLE_VALUE)
233 {
234 (void)FindClose(dir->hFind);
235 }
236
237 free(dir);
238
239 ret = 0;
240 }
241
242 return ret;
243 }
244
245 void rewinddir(DIR *dir)
246 {
247 /* Close the search handle, if not already done. */
248 if(dir->hFind != INVALID_HANDLE_VALUE)
249 {
250 (void)FindClose(dir->hFind);
251 }
252
253 dir->hFind = unixem__dirent__findfile_directory(dir->directory, &dir->find_data);
254
255 if(dir->hFind != INVALID_HANDLE_VALUE)
256 {
257 (void)lstrcpyA(dir->dirent.d_name, dir->find_data.cFileName);
258 }
259 }
260
261 struct dirent *readdir(DIR *dir)
262 {
263 /* The last find exhausted the matches, so return NULL. */
264 if(dir->hFind == INVALID_HANDLE_VALUE)
265 {
266 if(FILE_ATTRIBUTE_ERROR == dir->find_data.dwFileAttributes)
267 {
268 errno = EBADF;
269 }
270 else
271 {
272 dir->find_data.dwFileAttributes = FILE_ATTRIBUTE_ERROR;
273 }
274
275 return NULL;
276 }
277 else
278 {
279 /* Copy the result of the last successful match to
280 * dirent.
281 */
282 (void)lstrcpyA(dir->dirent.d_name, dir->find_data.cFileName);
283
284 /* Attempt the next match. */
285 if(!FindNextFileA(dir->hFind, &dir->find_data))
286 {
287 /* Exhausted all matches, so close and null the
288 * handle.
289 */
290 (void)FindClose(dir->hFind);
291 dir->hFind = INVALID_HANDLE_VALUE;
292 }
293
294 return &dir->dirent;
295 }
296 }
297
298 /* ////////////////////////////////////////////////////////////////////////// */
0 /* /////////////////////////////////////////////////////////////////////////////
1 * File: dirent.h
2 *
3 * Purpose: Declaration of the opendir() API functions and types for the
4 * Win32 platform.
5 *
6 * Created: 19th October 2002
7 * Updated: 12th September 2006
8 *
9 * Home: http://synesis.com.au/software/
10 *
11 * Copyright (c) 2002-2006, Matthew Wilson and Synesis Software
12 * All rights reserved.
13 *
14 * Redistribution and use in source and binary forms, with or without
15 * modification, are permitted provided that the following conditions are met:
16 *
17 * - Redistributions of source code must retain the above copyright notice, this
18 * list of conditions and the following disclaimer.
19 * - Redistributions in binary form must reproduce the above copyright notice,
20 * this list of conditions and the following disclaimer in the documentation
21 * and/or other materials provided with the distribution.
22 * - Neither the names of Matthew Wilson and Synesis Software nor the names of
23 * any contributors may be used to endorse or promote products derived from
24 * this software without specific prior written permission.
25 *
26 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
27 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
30 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 * POSSIBILITY OF SUCH DAMAGE.
37 *
38 * ////////////////////////////////////////////////////////////////////////// */
39
40
41 /** \file dirent.h
42 *
43 * Contains the declarations for the opendir()/readdir() API.
44 */
45
46 #ifndef SYNSOFT_UNIXEM_INCL_H_DIRENT
47 #define SYNSOFT_UNIXEM_INCL_H_DIRENT
48
49 #ifndef UNIXEM_DOCUMENTATION_SKIP_SECTION
50 # define SYNSOFT_UNIXEM_VER_H_DIRENT_MAJOR 3
51 # define SYNSOFT_UNIXEM_VER_H_DIRENT_MINOR 3
52 # define SYNSOFT_UNIXEM_VER_H_DIRENT_REVISION 1
53 # define SYNSOFT_UNIXEM_VER_H_DIRENT_EDIT 29
54 #endif /* !UNIXEM_DOCUMENTATION_SKIP_SECTION */
55
56 /* ////////////////////////////////////////////////////////////////////////// */
57
58 /** \weakgroup unixem Synesis Software UNIX Emulation for Win32
59 * \brief The UNIX emulation library
60 */
61
62 /** \weakgroup unixem_dirent opendir()/readdir() API
63 * \ingroup UNIXem unixem
64 * \brief This API provides facilities for enumerating the contents of directories
65 * @{
66 */
67
68 /* ////////////////////////////////////////////////////////////////////////// */
69
70 #ifndef _WIN32
71 # error This file is only currently defined for compilation on Win32 systems
72 #endif /* _WIN32 */
73
74 /* /////////////////////////////////////////////////////////////////////////////
75 * Includes
76 */
77
78 #include <stddef.h>
79
80 /* /////////////////////////////////////////////////////////////////////////////
81 * Constants and definitions
82 */
83
84 #ifndef NAME_MAX
85 # define NAME_MAX (260) /*!< \brief The maximum number of characters (including null terminator) in a directory entry name */
86 #endif /* !NAME_MAX */
87
88 /* /////////////////////////////////////////////////////////////////////////////
89 * Typedefs
90 */
91
92 typedef struct dirent_dir DIR; /*!< \brief Handle type for ANSI directory enumeration. \note dirent_dir is defined internally */
93 typedef struct wdirent_dir wDIR; /*!< \brief Handle type for Unicode directory enumeration. \note dirent_dir is defined internally */
94
95 /** \brief Results structure for readdir()
96 */
97 struct dirent
98 {
99 char d_name[NAME_MAX + 1]; /*!< file name (null-terminated) */
100 int d_mode;
101 };
102
103 /** \brief Results structure for wreaddir()
104 */
105 struct wdirent
106 {
107 wchar_t d_name[NAME_MAX + 1]; /*!< file name (null-terminated) */
108 int d_mode;
109 };
110
111 /* /////////////////////////////////////////////////////////////////////////////
112 * API functions
113 */
114
115 #ifdef __cplusplus
116 extern "C" {
117 #endif /* __cplusplus */
118
119 /** \brief Returns a pointer to the next directory entry.
120 *
121 * This function opens the directory named by filename, and returns a
122 * directory to be used to in subsequent operations. NULL is returned
123 * if name cannot be accessed, or if resources cannot be acquired to
124 * process the request.
125 *
126 * \param name The name of the directory to search
127 * \return The directory handle from which the entries are read or NULL
128 */
129 DIR *opendir(const char *name);
130 /** \brief Identical semantics to opendir(), but for Unicode searches.
131 */
132 wDIR *wopendir(const wchar_t *name);
133
134 /** \brief Closes a directory handle
135 *
136 * This function closes a directory handle that was opened with opendir()
137 * and releases any resources associated with that directory handle.
138 *
139 * \param dir The directory handle from which the entries are read
140 * \return 0 on success, or -1 to indicate error.
141 */
142 int closedir(DIR *dir);
143 /** \brief Identical semantics to closedir(), but for Unicode searches.
144 */
145 int wclosedir(wDIR *dir);
146
147 /** \brief Resets a directory search position
148 *
149 * This function resets the position of the named directory handle to
150 * the beginning of the directory.
151 *
152 * \param dir The directory handle whose position should be reset
153 */
154 void rewinddir(DIR *dir);
155 /** \brief Identical semantics to rewinddir(), but for Unicode searches.
156 */
157 void wrewinddir(wDIR *dir);
158
159 /** \brief Returns a pointer to the next directory entry.
160 *
161 * This function returns a pointer to the next directory entry, or NULL upon
162 * reaching the end of the directory or detecting an invalid seekdir() operation
163 *
164 * \param dir The directory handle from which the entries are read
165 * \return A dirent structure or NULL
166 */
167 struct dirent *readdir(DIR *dir);
168 /** \brief Identical semantics to readdir(), but for Unicode searches.
169 */
170 struct wdirent *wreaddir(wDIR *dir);
171
172
173 #ifdef __cplusplus
174 }
175 #endif /* __cplusplus */
176
177 /* ////////////////////////////////////////////////////////////////////////// */
178
179 /** @} // end of group unixem_dirent */
180
181 /* ////////////////////////////////////////////////////////////////////////// */
182
183 #endif /* SYNSOFT_UNIXEM_INCL_H_DIRENT */
184
185 /* ////////////////////////////////////////////////////////////////////////// */
0 /**
1 * @file getopt.h
2 * @ingroup wbxml2xml_tool
3 * @ingroup xml2wbxml_tool
4 *
5 * @author Kannel Team (http://www.kannel.org/)
6 *
7 * @brief getopt() implementation
8 */
9
10 #ifndef WBXML_GETOPT_H
11 #define WBXML_GETOPT_H
12
13 int getopt(int argc, char **argv, char *opts);
14 extern int opterr;
15 extern int optind;
16 extern int optopt;
17 extern char *optarg;
18
19 #endif
0 <?xml version="1.0" encoding="UTF-8"?>
1 <VisualStudioProject
2 ProjectType="Visual C++"
3 Version="8.00"
4 Name="libcommon"
5 ProjectGUID="{49A26D14-0AD0-497E-A982-42BFD4D992FC}"
6 RootNamespace="libcommon"
7 Keyword="Win32Proj"
8 >
9 <Platforms>
10 <Platform
11 Name="Win32"
12 />
13 </Platforms>
14 <ToolFiles>
15 </ToolFiles>
16 <Configurations>
17 <Configuration
18 Name="Debug|Win32"
19 OutputDirectory="$(SolutionDir)$(ConfigurationName)"
20 IntermediateDirectory="$(ConfigurationName)"
21 ConfigurationType="4"
22 >
23 <Tool
24 Name="VCPreBuildEventTool"
25 />
26 <Tool
27 Name="VCCustomBuildTool"
28 />
29 <Tool
30 Name="VCXMLDataGeneratorTool"
31 />
32 <Tool
33 Name="VCWebServiceProxyGeneratorTool"
34 />
35 <Tool
36 Name="VCMIDLTool"
37 />
38 <Tool
39 Name="VCCLCompilerTool"
40 Optimization="0"
41 PreprocessorDefinitions="_WIN32;WIN32;_DEBUG;_LIB;_CRT_SECURE_NO_DEPRECATE"
42 ExceptionHandling="0"
43 BasicRuntimeChecks="3"
44 RuntimeLibrary="1"
45 BrowseInformation="1"
46 WarningLevel="3"
47 Detect64BitPortabilityProblems="true"
48 DebugInformationFormat="1"
49 CompileAs="1"
50 />
51 <Tool
52 Name="VCManagedResourceCompilerTool"
53 />
54 <Tool
55 Name="VCResourceCompilerTool"
56 />
57 <Tool
58 Name="VCPreLinkEventTool"
59 />
60 <Tool
61 Name="VCLibrarianTool"
62 OutputFile="$(OutDir)\$(ProjectName)_d.lib"
63 />
64 <Tool
65 Name="VCALinkTool"
66 />
67 <Tool
68 Name="VCXDCMakeTool"
69 />
70 <Tool
71 Name="VCBscMakeTool"
72 />
73 <Tool
74 Name="VCFxCopTool"
75 />
76 <Tool
77 Name="VCPostBuildEventTool"
78 CommandLine="copy &quot;$(TargetPath)&quot; ..\bin"
79 />
80 </Configuration>
81 <Configuration
82 Name="Release|Win32"
83 OutputDirectory="$(SolutionDir)$(ConfigurationName)"
84 IntermediateDirectory="$(ConfigurationName)"
85 ConfigurationType="4"
86 CharacterSet="1"
87 WholeProgramOptimization="1"
88 >
89 <Tool
90 Name="VCPreBuildEventTool"
91 />
92 <Tool
93 Name="VCCustomBuildTool"
94 />
95 <Tool
96 Name="VCXMLDataGeneratorTool"
97 />
98 <Tool
99 Name="VCWebServiceProxyGeneratorTool"
100 />
101 <Tool
102 Name="VCMIDLTool"
103 />
104 <Tool
105 Name="VCCLCompilerTool"
106 PreprocessorDefinitions="_WIN32;WIN32;NDEBUG;_LIB;_CRT_SECURE_NO_DEPRECATE"
107 StringPooling="true"
108 ExceptionHandling="0"
109 BufferSecurityCheck="false"
110 EnableFunctionLevelLinking="true"
111 FloatingPointModel="2"
112 WarningLevel="3"
113 CompileAs="1"
114 />
115 <Tool
116 Name="VCManagedResourceCompilerTool"
117 />
118 <Tool
119 Name="VCResourceCompilerTool"
120 />
121 <Tool
122 Name="VCPreLinkEventTool"
123 />
124 <Tool
125 Name="VCLibrarianTool"
126 />
127 <Tool
128 Name="VCALinkTool"
129 />
130 <Tool
131 Name="VCXDCMakeTool"
132 />
133 <Tool
134 Name="VCBscMakeTool"
135 />
136 <Tool
137 Name="VCFxCopTool"
138 />
139 <Tool
140 Name="VCPostBuildEventTool"
141 CommandLine="copy &quot;$(TargetPath)&quot; ..\bin"
142 />
143 </Configuration>
144 </Configurations>
145 <References>
146 </References>
147 <Files>
148 <Filter
149 Name="sources"
150 Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
151 UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
152 >
153 <File
154 RelativePath=".\attgetopt.c"
155 >
156 </File>
157 <File
158 RelativePath="..\common\crc32.c"
159 >
160 </File>
161 <File
162 RelativePath="..\common\huffman-bcl.c"
163 >
164 </File>
165 </Filter>
166 <Filter
167 Name="headers"
168 >
169 <File
170 RelativePath=".\getopt.h"
171 >
172 </File>
173 </Filter>
174 </Files>
175 <Globals>
176 </Globals>
177 </VisualStudioProject>
0 #ifndef _LIBGEN_H_
1 /*
2 * libgen.h
3 *
4 * $Id: libgen.h,v 1.2 2007/06/23 07:34:15 dannysmith Exp $
5 *
6 * This file has no copyright assigned and is placed in the Public Domain.
7 * This file is a part of the mingw-runtime package.
8 * No warranty is given; refer to the file DISCLAIMER within the package.
9 *
10 * Functions for splitting pathnames into dirname and basename components.
11 *
12 */
13 #define _LIBGEN_H_
14
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18
19 extern char *basename (char *);
20
21 #ifdef __cplusplus
22 }
23 #endif
24
25 #endif /* _LIBGEN_H_: end of file */
26
0 <?xml version="1.0" encoding="Windows-1252"?>
1 <VisualStudioProject
2 ProjectType="Visual C++"
3 Version="8.00"
4 Name="libmpcdec"
5 ProjectGUID="{4C5362CD-0BF2-4B3B-971B-8293EB1A1DC3}"
6 RootNamespace="libmpcdec"
7 >
8 <Platforms>
9 <Platform
10 Name="Win32"
11 />
12 </Platforms>
13 <ToolFiles>
14 </ToolFiles>
15 <Configurations>
16 <Configuration
17 Name="Debug|Win32"
18 OutputDirectory="$(SolutionDir)$(ConfigurationName)"
19 IntermediateDirectory="$(ConfigurationName)"
20 ConfigurationType="4"
21 CharacterSet="1"
22 >
23 <Tool
24 Name="VCPreBuildEventTool"
25 />
26 <Tool
27 Name="VCCustomBuildTool"
28 />
29 <Tool
30 Name="VCXMLDataGeneratorTool"
31 />
32 <Tool
33 Name="VCWebServiceProxyGeneratorTool"
34 />
35 <Tool
36 Name="VCMIDLTool"
37 />
38 <Tool
39 Name="VCCLCompilerTool"
40 Optimization="0"
41 AdditionalIncludeDirectories="../include"
42 PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE"
43 ExceptionHandling="0"
44 BasicRuntimeChecks="3"
45 SmallerTypeCheck="true"
46 RuntimeLibrary="1"
47 BrowseInformation="1"
48 WarningLevel="3"
49 Detect64BitPortabilityProblems="true"
50 DebugInformationFormat="1"
51 CompileAs="1"
52 />
53 <Tool
54 Name="VCManagedResourceCompilerTool"
55 />
56 <Tool
57 Name="VCResourceCompilerTool"
58 />
59 <Tool
60 Name="VCPreLinkEventTool"
61 />
62 <Tool
63 Name="VCLibrarianTool"
64 OutputFile="$(OutDir)\$(ProjectName)_d.lib"
65 />
66 <Tool
67 Name="VCALinkTool"
68 />
69 <Tool
70 Name="VCXDCMakeTool"
71 />
72 <Tool
73 Name="VCBscMakeTool"
74 />
75 <Tool
76 Name="VCFxCopTool"
77 />
78 <Tool
79 Name="VCPostBuildEventTool"
80 CommandLine="copy &quot;$(TargetPath)&quot; ..\bin"
81 />
82 </Configuration>
83 <Configuration
84 Name="Release|Win32"
85 OutputDirectory="$(SolutionDir)$(ConfigurationName)"
86 IntermediateDirectory="$(ConfigurationName)"
87 ConfigurationType="4"
88 CharacterSet="1"
89 WholeProgramOptimization="1"
90 >
91 <Tool
92 Name="VCPreBuildEventTool"
93 />
94 <Tool
95 Name="VCCustomBuildTool"
96 />
97 <Tool
98 Name="VCXMLDataGeneratorTool"
99 />
100 <Tool
101 Name="VCWebServiceProxyGeneratorTool"
102 />
103 <Tool
104 Name="VCMIDLTool"
105 />
106 <Tool
107 Name="VCCLCompilerTool"
108 AdditionalIncludeDirectories="../include"
109 PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE"
110 StringPooling="true"
111 ExceptionHandling="0"
112 BufferSecurityCheck="false"
113 EnableFunctionLevelLinking="true"
114 FloatingPointModel="2"
115 WarningLevel="3"
116 CompileAs="1"
117 />
118 <Tool
119 Name="VCManagedResourceCompilerTool"
120 />
121 <Tool
122 Name="VCResourceCompilerTool"
123 />
124 <Tool
125 Name="VCPreLinkEventTool"
126 />
127 <Tool
128 Name="VCLibrarianTool"
129 />
130 <Tool
131 Name="VCALinkTool"
132 />
133 <Tool
134 Name="VCXDCMakeTool"
135 />
136 <Tool
137 Name="VCBscMakeTool"
138 />
139 <Tool
140 Name="VCFxCopTool"
141 />
142 <Tool
143 Name="VCPostBuildEventTool"
144 CommandLine="copy &quot;$(TargetPath)&quot; ..\bin"
145 />
146 </Configuration>
147 </Configurations>
148 <References>
149 </References>
150 <Files>
151 <Filter
152 Name="headers"
153 >
154 <File
155 RelativePath="..\libmpcdec\decoder.h"
156 >
157 </File>
158 <File
159 RelativePath="..\libmpcdec\huffman.h"
160 >
161 </File>
162 <File
163 RelativePath="..\libmpcdec\internal.h"
164 >
165 </File>
166 <File
167 RelativePath="..\libmpcdec\mpc_bits_reader.h"
168 >
169 </File>
170 <File
171 RelativePath="..\libmpcdec\mpcdec_math.h"
172 >
173 </File>
174 <File
175 RelativePath="..\libmpcdec\requant.h"
176 >
177 </File>
178 </Filter>
179 <Filter
180 Name="sources"
181 >
182 <File
183 RelativePath="..\libmpcdec\huffman.c"
184 >
185 </File>
186 <File
187 RelativePath="..\libmpcdec\mpc_bits_reader.c"
188 >
189 </File>
190 <File
191 RelativePath="..\libmpcdec\mpc_decoder.c"
192 >
193 </File>
194 <File
195 RelativePath="..\libmpcdec\mpc_demux.c"
196 >
197 </File>
198 <File
199 RelativePath="..\libmpcdec\mpc_reader.c"
200 >
201 </File>
202 <File
203 RelativePath="..\libmpcdec\requant.c"
204 >
205 </File>
206 <File
207 RelativePath="..\libmpcdec\streaminfo.c"
208 >
209 </File>
210 <File
211 RelativePath="..\libmpcdec\synth_filter.c"
212 >
213 </File>
214 </Filter>
215 <Filter
216 Name="interface"
217 >
218 <File
219 RelativePath="..\include\mpc\datatypes.h"
220 >
221 </File>
222 <File
223 RelativePath="..\include\mpc\minimax.h"
224 >
225 </File>
226 <File
227 RelativePath="..\include\mpc\mpc_types.h"
228 >
229 </File>
230 <File
231 RelativePath="..\include\mpc\mpcdec.h"
232 >
233 </File>
234 <File
235 RelativePath="..\include\mpc\mpcmath.h"
236 >
237 </File>
238 <File
239 RelativePath="..\include\mpc\reader.h"
240 >
241 </File>
242 <File
243 RelativePath="..\include\mpc\streaminfo.h"
244 >
245 </File>
246 </Filter>
247 </Files>
248 <Globals>
249 </Globals>
250 </VisualStudioProject>
0 <?xml version="1.0" encoding="UTF-8"?>
1 <VisualStudioProject
2 ProjectType="Visual C++"
3 Version="8.00"
4 Name="libmpcenc"
5 ProjectGUID="{44EC1266-D2EE-47B8-ACFC-8BD52E7FFF96}"
6 RootNamespace="libmpcenc"
7 Keyword="Win32Proj"
8 >
9 <Platforms>
10 <Platform
11 Name="Win32"
12 />
13 </Platforms>
14 <ToolFiles>
15 </ToolFiles>
16 <Configurations>
17 <Configuration
18 Name="Debug|Win32"
19 OutputDirectory="$(SolutionDir)$(ConfigurationName)"
20 IntermediateDirectory="$(ConfigurationName)"
21 ConfigurationType="4"
22 >
23 <Tool
24 Name="VCPreBuildEventTool"
25 />
26 <Tool
27 Name="VCCustomBuildTool"
28 />
29 <Tool
30 Name="VCXMLDataGeneratorTool"
31 />
32 <Tool
33 Name="VCWebServiceProxyGeneratorTool"
34 />
35 <Tool
36 Name="VCMIDLTool"
37 />
38 <Tool
39 Name="VCCLCompilerTool"
40 Optimization="0"
41 AdditionalIncludeDirectories="../include"
42 PreprocessorDefinitions="_WIN32;WIN32;_DEBUG;_LIB;_CRT_SECURE_NO_DEPRECATE;FAST_MATH"
43 ExceptionHandling="0"
44 BasicRuntimeChecks="3"
45 RuntimeLibrary="1"
46 BrowseInformation="1"
47 WarningLevel="3"
48 Detect64BitPortabilityProblems="true"
49 DebugInformationFormat="1"
50 CompileAs="1"
51 />
52 <Tool
53 Name="VCManagedResourceCompilerTool"
54 />
55 <Tool
56 Name="VCResourceCompilerTool"
57 />
58 <Tool
59 Name="VCPreLinkEventTool"
60 />
61 <Tool
62 Name="VCLibrarianTool"
63 OutputFile="$(OutDir)\$(ProjectName)_d.lib"
64 />
65 <Tool
66 Name="VCALinkTool"
67 />
68 <Tool
69 Name="VCXDCMakeTool"
70 />
71 <Tool
72 Name="VCBscMakeTool"
73 />
74 <Tool
75 Name="VCFxCopTool"
76 />
77 <Tool
78 Name="VCPostBuildEventTool"
79 CommandLine="copy &quot;$(TargetPath)&quot; ..\bin"
80 />
81 </Configuration>
82 <Configuration
83 Name="Release|Win32"
84 OutputDirectory="$(SolutionDir)$(ConfigurationName)"
85 IntermediateDirectory="$(ConfigurationName)"
86 ConfigurationType="4"
87 WholeProgramOptimization="1"
88 >
89 <Tool
90 Name="VCPreBuildEventTool"
91 />
92 <Tool
93 Name="VCCustomBuildTool"
94 />
95 <Tool
96 Name="VCXMLDataGeneratorTool"
97 />
98 <Tool
99 Name="VCWebServiceProxyGeneratorTool"
100 />
101 <Tool
102 Name="VCMIDLTool"
103 />
104 <Tool
105 Name="VCCLCompilerTool"
106 AdditionalIncludeDirectories="../include"
107 PreprocessorDefinitions="_WIN32;WIN32;NDEBUG;_LIB;_CRT_SECURE_NO_DEPRECATE;FAST_MATH"
108 StringPooling="true"
109 ExceptionHandling="0"
110 BufferSecurityCheck="false"
111 EnableFunctionLevelLinking="true"
112 FloatingPointModel="2"
113 WarningLevel="3"
114 CompileAs="1"
115 />
116 <Tool
117 Name="VCManagedResourceCompilerTool"
118 />
119 <Tool
120 Name="VCResourceCompilerTool"
121 />
122 <Tool
123 Name="VCPreLinkEventTool"
124 />
125 <Tool
126 Name="VCLibrarianTool"
127 />
128 <Tool
129 Name="VCALinkTool"
130 />
131 <Tool
132 Name="VCXDCMakeTool"
133 />
134 <Tool
135 Name="VCBscMakeTool"
136 />
137 <Tool
138 Name="VCFxCopTool"
139 />
140 <Tool
141 Name="VCPostBuildEventTool"
142 CommandLine="copy &quot;$(TargetPath)&quot; ..\bin"
143 />
144 </Configuration>
145 </Configurations>
146 <References>
147 </References>
148 <Files>
149 <Filter
150 Name="headers"
151 Filter="h;hpp;hxx;hm;inl;inc;xsd"
152 UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
153 >
154 <File
155 RelativePath="..\libmpcenc\libmpcenc.h"
156 >
157 </File>
158 </Filter>
159 <Filter
160 Name="sources"
161 Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
162 UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
163 >
164 <File
165 RelativePath="..\libmpcenc\analy_filter.c"
166 >
167 </File>
168 <File
169 RelativePath="..\libmpcenc\bitstream.c"
170 >
171 </File>
172 <File
173 RelativePath="..\libmpcenc\encode_sv7.c"
174 >
175 </File>
176 <File
177 RelativePath="..\libmpcenc\huffsv7.c"
178 >
179 </File>
180 <File
181 RelativePath="..\libmpcenc\quant.c"
182 >
183 </File>
184 </Filter>
185 </Files>
186 <Globals>
187 </Globals>
188 </VisualStudioProject>
0 <?xml version="1.0" encoding="UTF-8"?>
1 <VisualStudioProject
2 ProjectType="Visual C++"
3 Version="8.00"
4 Name="libmpcpsy"
5 ProjectGUID="{7CF31624-B40E-466F-9107-785816C787C4}"
6 RootNamespace="libmpcpsy"
7 Keyword="Win32Proj"
8 >
9 <Platforms>
10 <Platform
11 Name="Win32"
12 />
13 </Platforms>
14 <ToolFiles>
15 </ToolFiles>
16 <Configurations>
17 <Configuration
18 Name="Debug|Win32"
19 OutputDirectory="$(SolutionDir)$(ConfigurationName)"
20 IntermediateDirectory="$(ConfigurationName)"
21 ConfigurationType="4"
22 >
23 <Tool
24 Name="VCPreBuildEventTool"
25 />
26 <Tool
27 Name="VCCustomBuildTool"
28 />
29 <Tool
30 Name="VCXMLDataGeneratorTool"
31 />
32 <Tool
33 Name="VCWebServiceProxyGeneratorTool"
34 />
35 <Tool
36 Name="VCMIDLTool"
37 />
38 <Tool
39 Name="VCCLCompilerTool"
40 Optimization="0"
41 AdditionalIncludeDirectories="../include"
42 PreprocessorDefinitions="_WIN32;WIN32;_DEBUG;_LIB;_CRT_SECURE_NO_DEPRECATE;FAST_MATH;CVD_FASTLOG"
43 ExceptionHandling="0"
44 BasicRuntimeChecks="3"
45 RuntimeLibrary="1"
46 BrowseInformation="1"
47 WarningLevel="3"
48 Detect64BitPortabilityProblems="true"
49 DebugInformationFormat="1"
50 CompileAs="1"
51 />
52 <Tool
53 Name="VCManagedResourceCompilerTool"
54 />
55 <Tool
56 Name="VCResourceCompilerTool"
57 />
58 <Tool
59 Name="VCPreLinkEventTool"
60 />
61 <Tool
62 Name="VCLibrarianTool"
63 OutputFile="$(OutDir)\$(ProjectName)_d.lib"
64 />
65 <Tool
66 Name="VCALinkTool"
67 />
68 <Tool
69 Name="VCXDCMakeTool"
70 />
71 <Tool
72 Name="VCBscMakeTool"
73 />
74 <Tool
75 Name="VCFxCopTool"
76 />
77 <Tool
78 Name="VCPostBuildEventTool"
79 CommandLine="copy &quot;$(TargetPath)&quot; ..\bin"
80 />
81 </Configuration>
82 <Configuration
83 Name="Release|Win32"
84 OutputDirectory="$(SolutionDir)$(ConfigurationName)"
85 IntermediateDirectory="$(ConfigurationName)"
86 ConfigurationType="4"
87 WholeProgramOptimization="1"
88 >
89 <Tool
90 Name="VCPreBuildEventTool"
91 />
92 <Tool
93 Name="VCCustomBuildTool"
94 />
95 <Tool
96 Name="VCXMLDataGeneratorTool"
97 />
98 <Tool
99 Name="VCWebServiceProxyGeneratorTool"
100 />
101 <Tool
102 Name="VCMIDLTool"
103 />
104 <Tool
105 Name="VCCLCompilerTool"
106 AdditionalIncludeDirectories="../include"
107 PreprocessorDefinitions="_WIN32;WIN32;NDEBUG;_LIB;_CRT_SECURE_NO_DEPRECATE;FAST_MATH;CVD_FASTLOG"
108 ExceptionHandling="0"
109 BufferSecurityCheck="false"
110 EnableFunctionLevelLinking="true"
111 FloatingPointModel="2"
112 WarningLevel="3"
113 Detect64BitPortabilityProblems="true"
114 CompileAs="1"
115 />
116 <Tool
117 Name="VCManagedResourceCompilerTool"
118 />
119 <Tool
120 Name="VCResourceCompilerTool"
121 />
122 <Tool
123 Name="VCPreLinkEventTool"
124 />
125 <Tool
126 Name="VCLibrarianTool"
127 />
128 <Tool
129 Name="VCALinkTool"
130 />
131 <Tool
132 Name="VCXDCMakeTool"
133 />
134 <Tool
135 Name="VCBscMakeTool"
136 />
137 <Tool
138 Name="VCFxCopTool"
139 />
140 <Tool
141 Name="VCPostBuildEventTool"
142 CommandLine="copy &quot;$(TargetPath)&quot; ..\bin"
143 />
144 </Configuration>
145 </Configurations>
146 <References>
147 </References>
148 <Files>
149 <Filter
150 Name="headers"
151 Filter="h;hpp;hxx;hm;inl;inc;xsd"
152 UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
153 >
154 <File
155 RelativePath="..\libmpcpsy\libmpcpsy.h"
156 >
157 </File>
158 </Filter>
159 <Filter
160 Name="sources"
161 Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
162 UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
163 >
164 <File
165 RelativePath="..\libmpcpsy\ans.c"
166 >
167 </File>
168 <File
169 RelativePath="..\libmpcpsy\cvd.c"
170 >
171 </File>
172 <File
173 RelativePath="..\common\fastmath.c"
174 >
175 </File>
176 <File
177 RelativePath="..\libmpcpsy\fft4g.c"
178 >
179 </File>
180 <File
181 RelativePath="..\libmpcpsy\fft_routines.c"
182 >
183 </File>
184 <File
185 RelativePath="..\libmpcpsy\profile.c"
186 >
187 </File>
188 <File
189 RelativePath="..\libmpcpsy\psy.c"
190 >
191 </File>
192 <File
193 RelativePath="..\libmpcpsy\psy_tab.c"
194 >
195 </File>
196 </Filter>
197 </Files>
198 <Globals>
199 </Globals>
200 </VisualStudioProject>
0 <?xml version="1.0" encoding="Windows-1252"?>
1 <VisualStudioProject
2 ProjectType="Visual C++"
3 Version="8,00"
4 Name="libwavformat"
5 ProjectGUID="{13D176A2-B6BB-403F-A816-AA1F388078B7}"
6 RootNamespace="libwavformat"
7 Keyword="Win32Proj"
8 >
9 <Platforms>
10 <Platform
11 Name="Win32"
12 />
13 </Platforms>
14 <ToolFiles>
15 </ToolFiles>
16 <Configurations>
17 <Configuration
18 Name="Debug|Win32"
19 OutputDirectory="$(SolutionDir)$(ConfigurationName)"
20 IntermediateDirectory="$(ConfigurationName)"
21 ConfigurationType="4"
22 CharacterSet="1"
23 >
24 <Tool
25 Name="VCPreBuildEventTool"
26 />
27 <Tool
28 Name="VCCustomBuildTool"
29 />
30 <Tool
31 Name="VCXMLDataGeneratorTool"
32 />
33 <Tool
34 Name="VCWebServiceProxyGeneratorTool"
35 />
36 <Tool
37 Name="VCMIDLTool"
38 />
39 <Tool
40 Name="VCCLCompilerTool"
41 Optimization="0"
42 PreprocessorDefinitions="WIN32;_DEBUG;_LIB"
43 ExceptionHandling="0"
44 BasicRuntimeChecks="3"
45 RuntimeLibrary="1"
46 UsePrecompiledHeader="0"
47 BrowseInformation="1"
48 WarningLevel="3"
49 Detect64BitPortabilityProblems="true"
50 DebugInformationFormat="1"
51 CompileAs="1"
52 />
53 <Tool
54 Name="VCManagedResourceCompilerTool"
55 />
56 <Tool
57 Name="VCResourceCompilerTool"
58 />
59 <Tool
60 Name="VCPreLinkEventTool"
61 />
62 <Tool
63 Name="VCLibrarianTool"
64 OutputFile="$(OutDir)\$(ProjectName)_d.lib"
65 />
66 <Tool
67 Name="VCALinkTool"
68 />
69 <Tool
70 Name="VCXDCMakeTool"
71 />
72 <Tool
73 Name="VCBscMakeTool"
74 />
75 <Tool
76 Name="VCFxCopTool"
77 />
78 <Tool
79 Name="VCPostBuildEventTool"
80 CommandLine="copy &quot;$(TargetPath)&quot; ..\bin"
81 />
82 </Configuration>
83 <Configuration
84 Name="Release|Win32"
85 OutputDirectory="$(SolutionDir)$(ConfigurationName)"
86 IntermediateDirectory="$(ConfigurationName)"
87 ConfigurationType="4"
88 CharacterSet="1"
89 WholeProgramOptimization="1"
90 >
91 <Tool
92 Name="VCPreBuildEventTool"
93 />
94 <Tool
95 Name="VCCustomBuildTool"
96 />
97 <Tool
98 Name="VCXMLDataGeneratorTool"
99 />
100 <Tool
101 Name="VCWebServiceProxyGeneratorTool"
102 />
103 <Tool
104 Name="VCMIDLTool"
105 />
106 <Tool
107 Name="VCCLCompilerTool"
108 PreprocessorDefinitions="WIN32;NDEBUG;_LIB"
109 StringPooling="true"
110 ExceptionHandling="0"
111 BufferSecurityCheck="false"
112 EnableFunctionLevelLinking="true"
113 WarningLevel="3"
114 Detect64BitPortabilityProblems="true"
115 DebugInformationFormat="0"
116 CompileAs="1"
117 />
118 <Tool
119 Name="VCManagedResourceCompilerTool"
120 />
121 <Tool
122 Name="VCResourceCompilerTool"
123 />
124 <Tool
125 Name="VCPreLinkEventTool"
126 />
127 <Tool
128 Name="VCLibrarianTool"
129 />
130 <Tool
131 Name="VCALinkTool"
132 />
133 <Tool
134 Name="VCXDCMakeTool"
135 />
136 <Tool
137 Name="VCBscMakeTool"
138 />
139 <Tool
140 Name="VCFxCopTool"
141 />
142 <Tool
143 Name="VCPostBuildEventTool"
144 CommandLine="copy &quot;$(TargetPath)&quot; ..\bin"
145 />
146 </Configuration>
147 </Configurations>
148 <References>
149 </References>
150 <Files>
151 <Filter
152 Name="headers"
153 >
154 <File
155 RelativePath="..\libwavformat\libwaveformat.h"
156 >
157 </File>
158 </Filter>
159 <Filter
160 Name="sources"
161 >
162 <File
163 RelativePath="..\libwavformat\input.c"
164 >
165 </File>
166 <File
167 RelativePath="..\libwavformat\output.c"
168 >
169 </File>
170 </Filter>
171 </Files>
172 <Globals>
173 </Globals>
174 </VisualStudioProject>
0 <?xml version="1.0" encoding="Windows-1252"?>
1 <VisualStudioProject
2 ProjectType="Visual C++"
3 Version="8.00"
4 Name="mpc2sv8"
5 ProjectGUID="{36225C6A-FFA3-4E70-928E-1F69F7A3FCE1}"
6 RootNamespace="mppenc"
7 Keyword="Win32Proj"
8 >
9 <Platforms>
10 <Platform
11 Name="Win32"
12 />
13 </Platforms>
14 <ToolFiles>
15 </ToolFiles>
16 <Configurations>
17 <Configuration
18 Name="Debug|Win32"
19 OutputDirectory="$(SolutionDir)$(ConfigurationName)"
20 IntermediateDirectory="$(ConfigurationName)"
21 ConfigurationType="1"
22 CharacterSet="0"
23 >
24 <Tool
25 Name="VCPreBuildEventTool"
26 />
27 <Tool
28 Name="VCCustomBuildTool"
29 />
30 <Tool
31 Name="VCXMLDataGeneratorTool"
32 />
33 <Tool
34 Name="VCWebServiceProxyGeneratorTool"
35 />
36 <Tool
37 Name="VCMIDLTool"
38 />
39 <Tool
40 Name="VCCLCompilerTool"
41 Optimization="0"
42 AdditionalIncludeDirectories="../include;../libmpcenc;../libmpcpsy"
43 PreprocessorDefinitions="_WIN32;WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE"
44 ExceptionHandling="0"
45 BasicRuntimeChecks="3"
46 RuntimeLibrary="1"
47 BrowseInformation="1"
48 WarningLevel="3"
49 Detect64BitPortabilityProblems="true"
50 DebugInformationFormat="1"
51 CompileAs="1"
52 />
53 <Tool
54 Name="VCManagedResourceCompilerTool"
55 />
56 <Tool
57 Name="VCResourceCompilerTool"
58 />
59 <Tool
60 Name="VCPreLinkEventTool"
61 />
62 <Tool
63 Name="VCLinkerTool"
64 AdditionalDependencies="winmm.lib"
65 OutputFile="$(OutDir)\$(ProjectName)_d.exe"
66 GenerateManifest="false"
67 GenerateDebugInformation="true"
68 GenerateMapFile="true"
69 MapExports="true"
70 SubSystem="1"
71 TargetMachine="1"
72 />
73 <Tool
74 Name="VCALinkTool"
75 />
76 <Tool
77 Name="VCManifestTool"
78 EmbedManifest="false"
79 />
80 <Tool
81 Name="VCXDCMakeTool"
82 />
83 <Tool
84 Name="VCBscMakeTool"
85 />
86 <Tool
87 Name="VCFxCopTool"
88 />
89 <Tool
90 Name="VCAppVerifierTool"
91 />
92 <Tool
93 Name="VCWebDeploymentTool"
94 />
95 <Tool
96 Name="VCPostBuildEventTool"
97 CommandLine="copy &quot;$(TargetPath)&quot; ..\bin"
98 />
99 </Configuration>
100 <Configuration
101 Name="Release|Win32"
102 OutputDirectory="$(SolutionDir)$(ConfigurationName)"
103 IntermediateDirectory="$(ConfigurationName)"
104 ConfigurationType="1"
105 CharacterSet="0"
106 WholeProgramOptimization="1"
107 >
108 <Tool
109 Name="VCPreBuildEventTool"
110 />
111 <Tool
112 Name="VCCustomBuildTool"
113 />
114 <Tool
115 Name="VCXMLDataGeneratorTool"
116 />
117 <Tool
118 Name="VCWebServiceProxyGeneratorTool"
119 />
120 <Tool
121 Name="VCMIDLTool"
122 />
123 <Tool
124 Name="VCCLCompilerTool"
125 AdditionalIncludeDirectories="../include;../libmpcenc;../libmpcpsy"
126 PreprocessorDefinitions="_WIN32;WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE"
127 ExceptionHandling="0"
128 BufferSecurityCheck="false"
129 EnableFunctionLevelLinking="true"
130 FloatingPointModel="2"
131 WarningLevel="3"
132 Detect64BitPortabilityProblems="true"
133 CompileAs="1"
134 />
135 <Tool
136 Name="VCManagedResourceCompilerTool"
137 />
138 <Tool
139 Name="VCResourceCompilerTool"
140 />
141 <Tool
142 Name="VCPreLinkEventTool"
143 />
144 <Tool
145 Name="VCLinkerTool"
146 AdditionalDependencies="winmm.lib"
147 GenerateManifest="false"
148 SubSystem="1"
149 OptimizeReferences="2"
150 EnableCOMDATFolding="2"
151 TargetMachine="1"
152 AllowIsolation="false"
153 />
154 <Tool
155 Name="VCALinkTool"
156 />
157 <Tool
158 Name="VCManifestTool"
159 EmbedManifest="false"
160 />
161 <Tool
162 Name="VCXDCMakeTool"
163 />
164 <Tool
165 Name="VCBscMakeTool"
166 />
167 <Tool
168 Name="VCFxCopTool"
169 />
170 <Tool
171 Name="VCAppVerifierTool"
172 />
173 <Tool
174 Name="VCWebDeploymentTool"
175 />
176 <Tool
177 Name="VCPostBuildEventTool"
178 CommandLine="copy &quot;$(TargetPath)&quot; ..\bin"
179 />
180 </Configuration>
181 </Configurations>
182 <References>
183 </References>
184 <Files>
185 <Filter
186 Name="sources"
187 Filter="h;hpp;hxx;hm;inl;inc;xsd"
188 UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
189 >
190 <File
191 RelativePath="..\mpc2sv8\mpc2sv8.c"
192 >
193 </File>
194 </Filter>
195 </Files>
196 <Globals>
197 </Globals>
198 </VisualStudioProject>
0 <?xml version="1.0" encoding="Windows-1252"?>
1 <VisualStudioProject
2 ProjectType="Visual C++"
3 Version="8.00"
4 Name="mpccut"
5 ProjectGUID="{ABBF9DD7-650F-48A8-9810-B76F233520F3}"
6 RootNamespace="mppenc"
7 Keyword="Win32Proj"
8 >
9 <Platforms>
10 <Platform
11 Name="Win32"
12 />
13 </Platforms>
14 <ToolFiles>
15 </ToolFiles>
16 <Configurations>
17 <Configuration
18 Name="Debug|Win32"
19 OutputDirectory="$(SolutionDir)$(ConfigurationName)"
20 IntermediateDirectory="$(ConfigurationName)"
21 ConfigurationType="1"
22 CharacterSet="0"
23 >
24 <Tool
25 Name="VCPreBuildEventTool"
26 />
27 <Tool
28 Name="VCCustomBuildTool"
29 />
30 <Tool
31 Name="VCXMLDataGeneratorTool"
32 />
33 <Tool
34 Name="VCWebServiceProxyGeneratorTool"
35 />
36 <Tool
37 Name="VCMIDLTool"
38 />
39 <Tool
40 Name="VCCLCompilerTool"
41 Optimization="0"
42 AdditionalIncludeDirectories="../include;../libmpcenc;../libmpcpsy;../win32"
43 PreprocessorDefinitions="_WIN32;WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE"
44 ExceptionHandling="0"
45 BasicRuntimeChecks="3"
46 RuntimeLibrary="1"
47 BrowseInformation="1"
48 WarningLevel="3"
49 Detect64BitPortabilityProblems="true"
50 DebugInformationFormat="1"
51 CompileAs="1"
52 />
53 <Tool
54 Name="VCManagedResourceCompilerTool"
55 />
56 <Tool
57 Name="VCResourceCompilerTool"
58 />
59 <Tool
60 Name="VCPreLinkEventTool"
61 />
62 <Tool
63 Name="VCLinkerTool"
64 AdditionalDependencies="winmm.lib"
65 OutputFile="$(OutDir)\$(ProjectName)_d.exe"
66 GenerateManifest="false"
67 GenerateDebugInformation="true"
68 GenerateMapFile="true"
69 MapExports="true"
70 SubSystem="1"
71 TargetMachine="1"
72 />
73 <Tool
74 Name="VCALinkTool"
75 />
76 <Tool
77 Name="VCManifestTool"
78 EmbedManifest="false"
79 />
80 <Tool
81 Name="VCXDCMakeTool"
82 />
83 <Tool
84 Name="VCBscMakeTool"
85 />
86 <Tool
87 Name="VCFxCopTool"
88 />
89 <Tool
90 Name="VCAppVerifierTool"
91 />
92 <Tool
93 Name="VCWebDeploymentTool"
94 />
95 <Tool
96 Name="VCPostBuildEventTool"
97 CommandLine="copy &quot;$(TargetPath)&quot; ..\bin"
98 />
99 </Configuration>
100 <Configuration
101 Name="Release|Win32"
102 OutputDirectory="$(SolutionDir)$(ConfigurationName)"
103 IntermediateDirectory="$(ConfigurationName)"
104 ConfigurationType="1"
105 CharacterSet="0"
106 WholeProgramOptimization="1"
107 >
108 <Tool
109 Name="VCPreBuildEventTool"
110 />
111 <Tool
112 Name="VCCustomBuildTool"
113 />
114 <Tool
115 Name="VCXMLDataGeneratorTool"
116 />
117 <Tool
118 Name="VCWebServiceProxyGeneratorTool"
119 />
120 <Tool
121 Name="VCMIDLTool"
122 />
123 <Tool
124 Name="VCCLCompilerTool"
125 AdditionalIncludeDirectories="../include;../libmpcenc;../libmpcpsy;../win32"
126 PreprocessorDefinitions="_WIN32;WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE"
127 ExceptionHandling="0"
128 BufferSecurityCheck="false"
129 EnableFunctionLevelLinking="true"
130 FloatingPointModel="2"
131 WarningLevel="3"
132 Detect64BitPortabilityProblems="true"
133 CompileAs="1"
134 />
135 <Tool
136 Name="VCManagedResourceCompilerTool"
137 />
138 <Tool
139 Name="VCResourceCompilerTool"
140 />
141 <Tool
142 Name="VCPreLinkEventTool"
143 />
144 <Tool
145 Name="VCLinkerTool"
146 AdditionalDependencies="winmm.lib"
147 GenerateManifest="false"
148 SubSystem="1"
149 OptimizeReferences="2"
150 EnableCOMDATFolding="2"
151 TargetMachine="1"
152 AllowIsolation="false"
153 />
154 <Tool
155 Name="VCALinkTool"
156 />
157 <Tool
158 Name="VCManifestTool"
159 EmbedManifest="false"
160 />
161 <Tool
162 Name="VCXDCMakeTool"
163 />
164 <Tool
165 Name="VCBscMakeTool"
166 />
167 <Tool
168 Name="VCFxCopTool"
169 />
170 <Tool
171 Name="VCAppVerifierTool"
172 />
173 <Tool
174 Name="VCWebDeploymentTool"
175 />
176 <Tool
177 Name="VCPostBuildEventTool"
178 CommandLine="copy &quot;$(TargetPath)&quot; ..\bin"
179 />
180 </Configuration>
181 </Configurations>
182 <References>
183 </References>
184 <Files>
185 <Filter
186 Name="sources"
187 Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
188 UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
189 >
190 <File
191 RelativePath="..\mpccut\mpccut.c"
192 >
193 </File>
194 </Filter>
195 </Files>
196 <Globals>
197 </Globals>
198 </VisualStudioProject>
0 <?xml version="1.0" encoding="Windows-1252"?>
1 <VisualStudioProject
2 ProjectType="Visual C++"
3 Version="8.00"
4 Name="mpcdec"
5 ProjectGUID="{A527175B-22A9-41AB-B2E8-580F573CCAFB}"
6 RootNamespace="mpcdec"
7 Keyword="Win32Proj"
8 >
9 <Platforms>
10 <Platform
11 Name="Win32"
12 />
13 </Platforms>
14 <ToolFiles>
15 </ToolFiles>
16 <Configurations>
17 <Configuration
18 Name="Debug|Win32"
19 OutputDirectory="$(SolutionDir)$(ConfigurationName)"
20 IntermediateDirectory="$(ConfigurationName)"
21 ConfigurationType="1"
22 CharacterSet="1"
23 >
24 <Tool
25 Name="VCPreBuildEventTool"
26 />
27 <Tool
28 Name="VCCustomBuildTool"
29 />
30 <Tool
31 Name="VCXMLDataGeneratorTool"
32 />
33 <Tool
34 Name="VCWebServiceProxyGeneratorTool"
35 />
36 <Tool
37 Name="VCMIDLTool"
38 />
39 <Tool
40 Name="VCCLCompilerTool"
41 Optimization="0"
42 AdditionalIncludeDirectories="../include,../libwavformat,../win32"
43 PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE"
44 ExceptionHandling="0"
45 BasicRuntimeChecks="3"
46 RuntimeLibrary="1"
47 UsePrecompiledHeader="0"
48 WarningLevel="3"
49 Detect64BitPortabilityProblems="true"
50 DebugInformationFormat="1"
51 CompileAs="1"
52 />
53 <Tool
54 Name="VCManagedResourceCompilerTool"
55 />
56 <Tool
57 Name="VCResourceCompilerTool"
58 />
59 <Tool
60 Name="VCPreLinkEventTool"
61 />
62 <Tool
63 Name="VCLinkerTool"
64 OutputFile="$(OutDir)\$(ProjectName)_d.exe"
65 AdditionalLibraryDirectories="../bin"
66 GenerateManifest="false"
67 GenerateDebugInformation="true"
68 SubSystem="1"
69 TargetMachine="1"
70 AllowIsolation="false"
71 />
72 <Tool
73 Name="VCALinkTool"
74 />
75 <Tool
76 Name="VCManifestTool"
77 EmbedManifest="false"
78 />
79 <Tool
80 Name="VCXDCMakeTool"
81 />
82 <Tool
83 Name="VCBscMakeTool"
84 />
85 <Tool
86 Name="VCFxCopTool"
87 />
88 <Tool
89 Name="VCAppVerifierTool"
90 />
91 <Tool
92 Name="VCWebDeploymentTool"
93 />
94 <Tool
95 Name="VCPostBuildEventTool"
96 CommandLine="copy &quot;$(TargetPath)&quot; ..\bin"
97 />
98 </Configuration>
99 <Configuration
100 Name="Release|Win32"
101 OutputDirectory="$(SolutionDir)$(ConfigurationName)"
102 IntermediateDirectory="$(ConfigurationName)"
103 ConfigurationType="1"
104 CharacterSet="1"
105 WholeProgramOptimization="1"
106 >
107 <Tool
108 Name="VCPreBuildEventTool"
109 />
110 <Tool
111 Name="VCCustomBuildTool"
112 />
113 <Tool
114 Name="VCXMLDataGeneratorTool"
115 />
116 <Tool
117 Name="VCWebServiceProxyGeneratorTool"
118 />
119 <Tool
120 Name="VCMIDLTool"
121 />
122 <Tool
123 Name="VCCLCompilerTool"
124 AdditionalIncludeDirectories="../include,../libwavformat,../win32"
125 PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE"
126 StringPooling="true"
127 ExceptionHandling="0"
128 BufferSecurityCheck="false"
129 EnableFunctionLevelLinking="true"
130 FloatingPointModel="2"
131 WarningLevel="3"
132 Detect64BitPortabilityProblems="true"
133 DebugInformationFormat="0"
134 CompileAs="1"
135 />
136 <Tool
137 Name="VCManagedResourceCompilerTool"
138 />
139 <Tool
140 Name="VCResourceCompilerTool"
141 />
142 <Tool
143 Name="VCPreLinkEventTool"
144 />
145 <Tool
146 Name="VCLinkerTool"
147 AdditionalLibraryDirectories="../bin"
148 GenerateManifest="false"
149 SubSystem="1"
150 OptimizeReferences="2"
151 EnableCOMDATFolding="2"
152 TargetMachine="1"
153 AllowIsolation="false"
154 />
155 <Tool
156 Name="VCALinkTool"
157 />
158 <Tool
159 Name="VCManifestTool"
160 EmbedManifest="false"
161 />
162 <Tool
163 Name="VCXDCMakeTool"
164 />
165 <Tool
166 Name="VCBscMakeTool"
167 />
168 <Tool
169 Name="VCFxCopTool"
170 />
171 <Tool
172 Name="VCAppVerifierTool"
173 />
174 <Tool
175 Name="VCWebDeploymentTool"
176 />
177 <Tool
178 Name="VCPostBuildEventTool"
179 CommandLine="copy &quot;$(TargetPath)&quot; ..\bin"
180 />
181 </Configuration>
182 </Configurations>
183 <References>
184 </References>
185 <Files>
186 <Filter
187 Name="sources"
188 >
189 <File
190 RelativePath="..\mpcdec\mpcdec.c"
191 >
192 </File>
193 </Filter>
194 </Files>
195 <Globals>
196 </Globals>
197 </VisualStudioProject>
0 <?xml version="1.0" encoding="Windows-1252"?>
1 <VisualStudioProject
2 ProjectType="Visual C++"
3 Version="8.00"
4 Name="mpcenc"
5 ProjectGUID="{15082E34-9324-469F-8423-F995B4814A37}"
6 RootNamespace="mppenc"
7 Keyword="Win32Proj"
8 >
9 <Platforms>
10 <Platform
11 Name="Win32"
12 />
13 </Platforms>
14 <ToolFiles>
15 </ToolFiles>
16 <Configurations>
17 <Configuration
18 Name="Debug|Win32"
19 OutputDirectory="$(SolutionDir)$(ConfigurationName)"
20 IntermediateDirectory="$(ConfigurationName)"
21 ConfigurationType="1"
22 CharacterSet="0"
23 >
24 <Tool
25 Name="VCPreBuildEventTool"
26 />
27 <Tool
28 Name="VCCustomBuildTool"
29 />
30 <Tool
31 Name="VCXMLDataGeneratorTool"
32 />
33 <Tool
34 Name="VCWebServiceProxyGeneratorTool"
35 />
36 <Tool
37 Name="VCMIDLTool"
38 />
39 <Tool
40 Name="VCCLCompilerTool"
41 Optimization="0"
42 AdditionalIncludeDirectories="../include;../libmpcenc;../libmpcpsy"
43 PreprocessorDefinitions="_WIN32;WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;FAST_MATH"
44 ExceptionHandling="0"
45 BasicRuntimeChecks="3"
46 RuntimeLibrary="1"
47 BrowseInformation="1"
48 WarningLevel="3"
49 Detect64BitPortabilityProblems="true"
50 DebugInformationFormat="1"
51 CompileAs="1"
52 />
53 <Tool
54 Name="VCManagedResourceCompilerTool"
55 />
56 <Tool
57 Name="VCResourceCompilerTool"
58 />
59 <Tool
60 Name="VCPreLinkEventTool"
61 />
62 <Tool
63 Name="VCLinkerTool"
64 AdditionalDependencies="winmm.lib"
65 OutputFile="$(OutDir)\$(ProjectName)_d.exe"
66 GenerateManifest="false"
67 GenerateDebugInformation="true"
68 GenerateMapFile="true"
69 MapExports="true"
70 SubSystem="1"
71 TargetMachine="1"
72 />
73 <Tool
74 Name="VCALinkTool"
75 />
76 <Tool
77 Name="VCManifestTool"
78 EmbedManifest="false"
79 />
80 <Tool
81 Name="VCXDCMakeTool"
82 />
83 <Tool
84 Name="VCBscMakeTool"
85 />
86 <Tool
87 Name="VCFxCopTool"
88 />
89 <Tool
90 Name="VCAppVerifierTool"
91 />
92 <Tool
93 Name="VCWebDeploymentTool"
94 />
95 <Tool
96 Name="VCPostBuildEventTool"
97 CommandLine="copy &quot;$(TargetPath)&quot; ..\bin"
98 />
99 </Configuration>
100 <Configuration
101 Name="Release|Win32"
102 OutputDirectory="$(SolutionDir)$(ConfigurationName)"
103 IntermediateDirectory="$(ConfigurationName)"
104 ConfigurationType="1"
105 CharacterSet="0"
106 WholeProgramOptimization="1"
107 >
108 <Tool
109 Name="VCPreBuildEventTool"
110 />
111 <Tool
112 Name="VCCustomBuildTool"
113 />
114 <Tool
115 Name="VCXMLDataGeneratorTool"
116 />
117 <Tool
118 Name="VCWebServiceProxyGeneratorTool"
119 />
120 <Tool
121 Name="VCMIDLTool"
122 />
123 <Tool
124 Name="VCCLCompilerTool"
125 AdditionalIncludeDirectories="../include;../libmpcenc;../libmpcpsy"
126 PreprocessorDefinitions="_WIN32;WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;FAST_MATH"
127 ExceptionHandling="0"
128 BufferSecurityCheck="false"
129 EnableFunctionLevelLinking="true"
130 FloatingPointModel="2"
131 WarningLevel="3"
132 Detect64BitPortabilityProblems="true"
133 CompileAs="1"
134 />
135 <Tool
136 Name="VCManagedResourceCompilerTool"
137 />
138 <Tool
139 Name="VCResourceCompilerTool"
140 />
141 <Tool
142 Name="VCPreLinkEventTool"
143 />
144 <Tool
145 Name="VCLinkerTool"
146 AdditionalDependencies="winmm.lib"
147 GenerateManifest="false"
148 SubSystem="1"
149 OptimizeReferences="2"
150 EnableCOMDATFolding="2"
151 TargetMachine="1"
152 AllowIsolation="false"
153 />
154 <Tool
155 Name="VCALinkTool"
156 />
157 <Tool
158 Name="VCManifestTool"
159 EmbedManifest="false"
160 />
161 <Tool
162 Name="VCXDCMakeTool"
163 />
164 <Tool
165 Name="VCBscMakeTool"
166 />
167 <Tool
168 Name="VCFxCopTool"
169 />
170 <Tool
171 Name="VCAppVerifierTool"
172 />
173 <Tool
174 Name="VCWebDeploymentTool"
175 />
176 <Tool
177 Name="VCPostBuildEventTool"
178 CommandLine="copy &quot;$(TargetPath)&quot; ..\bin"
179 />
180 </Configuration>
181 </Configurations>
182 <References>
183 </References>
184 <Files>
185 <Filter
186 Name="sources"
187 Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
188 UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
189 >
190 <File
191 RelativePath="..\mpcenc\keyboard.c"
192 >
193 </File>
194 <File
195 RelativePath="..\mpcenc\mpcenc.c"
196 >
197 </File>
198 <File
199 RelativePath="..\mpcenc\pipeopen.c"
200 >
201 </File>
202 <File
203 RelativePath="..\mpcenc\stderr.c"
204 >
205 </File>
206 <File
207 RelativePath="..\mpcenc\tags.c"
208 >
209 </File>
210 <File
211 RelativePath="..\mpcenc\wave_in.c"
212 >
213 </File>
214 <File
215 RelativePath="..\mpcenc\winmsg.c"
216 >
217 </File>
218 </Filter>
219 <Filter
220 Name="headers"
221 Filter="h;hpp;hxx;hm;inl;inc;xsd"
222 UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
223 >
224 <File
225 RelativePath="..\mpcenc\config.h"
226 >
227 </File>
228 <File
229 RelativePath="..\mpcenc\mpcenc.h"
230 >
231 </File>
232 <File
233 RelativePath="..\mpcenc\mpp.h"
234 >
235 </File>
236 <File
237 RelativePath="..\mpcenc\mppdec.h"
238 >
239 </File>
240 <File
241 RelativePath="..\mpcenc\predict.h"
242 >
243 </File>
244 </Filter>
245 </Files>
246 <Globals>
247 </Globals>
248 </VisualStudioProject>
0 <?xml version="1.0" encoding="Windows-1252"?>
1 <VisualStudioProject
2 ProjectType="Visual C++"
3 Version="8.00"
4 Name="mpcgain"
5 ProjectGUID="{76CBB7D4-0524-4569-9150-34BDE4235D04}"
6 RootNamespace="mpcgain"
7 Keyword="Win32Proj"
8 >
9 <Platforms>
10 <Platform
11 Name="Win32"
12 />
13 </Platforms>
14 <ToolFiles>
15 </ToolFiles>
16 <Configurations>
17 <Configuration
18 Name="Debug|Win32"
19 OutputDirectory="$(SolutionDir)$(ConfigurationName)"
20 IntermediateDirectory="$(ConfigurationName)"
21 ConfigurationType="1"
22 CharacterSet="1"
23 >
24 <Tool
25 Name="VCPreBuildEventTool"
26 />
27 <Tool
28 Name="VCCustomBuildTool"
29 />
30 <Tool
31 Name="VCXMLDataGeneratorTool"
32 />
33 <Tool
34 Name="VCWebServiceProxyGeneratorTool"
35 />
36 <Tool
37 Name="VCMIDLTool"
38 />
39 <Tool
40 Name="VCCLCompilerTool"
41 Optimization="0"
42 AdditionalIncludeDirectories="../include;../../../libreplaygain/include"
43 PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
44 MinimalRebuild="true"
45 BasicRuntimeChecks="3"
46 RuntimeLibrary="1"
47 UsePrecompiledHeader="0"
48 WarningLevel="3"
49 DebugInformationFormat="4"
50 />
51 <Tool
52 Name="VCManagedResourceCompilerTool"
53 />
54 <Tool
55 Name="VCResourceCompilerTool"
56 />
57 <Tool
58 Name="VCPreLinkEventTool"
59 />
60 <Tool
61 Name="VCLinkerTool"
62 LinkIncremental="2"
63 GenerateDebugInformation="true"
64 SubSystem="1"
65 TargetMachine="1"
66 />
67 <Tool
68 Name="VCALinkTool"
69 />
70 <Tool
71 Name="VCManifestTool"
72 />
73 <Tool
74 Name="VCXDCMakeTool"
75 />
76 <Tool
77 Name="VCBscMakeTool"
78 />
79 <Tool
80 Name="VCFxCopTool"
81 />
82 <Tool
83 Name="VCAppVerifierTool"
84 />
85 <Tool
86 Name="VCWebDeploymentTool"
87 />
88 <Tool
89 Name="VCPostBuildEventTool"
90 />
91 </Configuration>
92 <Configuration
93 Name="Release|Win32"
94 OutputDirectory="$(SolutionDir)$(ConfigurationName)"
95 IntermediateDirectory="$(ConfigurationName)"
96 ConfigurationType="1"
97 CharacterSet="1"
98 WholeProgramOptimization="1"
99 >
100 <Tool
101 Name="VCPreBuildEventTool"
102 />
103 <Tool
104 Name="VCCustomBuildTool"
105 />
106 <Tool
107 Name="VCXMLDataGeneratorTool"
108 />
109 <Tool
110 Name="VCWebServiceProxyGeneratorTool"
111 />
112 <Tool
113 Name="VCMIDLTool"
114 />
115 <Tool
116 Name="VCCLCompilerTool"
117 AdditionalIncludeDirectories="../include;../../../libreplaygain/include"
118 PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
119 RuntimeLibrary="0"
120 FloatingPointModel="2"
121 UsePrecompiledHeader="0"
122 WarningLevel="3"
123 DebugInformationFormat="0"
124 />
125 <Tool
126 Name="VCManagedResourceCompilerTool"
127 />
128 <Tool
129 Name="VCResourceCompilerTool"
130 />
131 <Tool
132 Name="VCPreLinkEventTool"
133 />
134 <Tool
135 Name="VCLinkerTool"
136 LinkIncremental="1"
137 SubSystem="1"
138 OptimizeReferences="2"
139 EnableCOMDATFolding="2"
140 TargetMachine="1"
141 />
142 <Tool
143 Name="VCALinkTool"
144 />
145 <Tool
146 Name="VCManifestTool"
147 />
148 <Tool
149 Name="VCXDCMakeTool"
150 />
151 <Tool
152 Name="VCBscMakeTool"
153 />
154 <Tool
155 Name="VCFxCopTool"
156 />
157 <Tool
158 Name="VCAppVerifierTool"
159 />
160 <Tool
161 Name="VCWebDeploymentTool"
162 />
163 <Tool
164 Name="VCPostBuildEventTool"
165 />
166 </Configuration>
167 </Configurations>
168 <References>
169 </References>
170 <Files>
171 <Filter
172 Name="Source Files"
173 Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
174 UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
175 >
176 <File
177 RelativePath="..\mpcgain\mpcgain.c"
178 >
179 </File>
180 </Filter>
181 <Filter
182 Name="Header Files"
183 Filter="h;hpp;hxx;hm;inl;inc;xsd"
184 UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
185 >
186 </Filter>
187 <Filter
188 Name="Resource Files"
189 Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
190 UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
191 >
192 </Filter>
193 </Files>
194 <Globals>
195 </Globals>
196 </VisualStudioProject>
0 
1 Microsoft Visual Studio Solution File, Format Version 9.00
2 # Visual Studio 2005
3 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "mpcenc", "mpcenc.vcproj", "{15082E34-9324-469F-8423-F995B4814A37}"
4 ProjectSection(ProjectDependencies) = postProject
5 {49A26D14-0AD0-497E-A982-42BFD4D992FC} = {49A26D14-0AD0-497E-A982-42BFD4D992FC}
6 {7CF31624-B40E-466F-9107-785816C787C4} = {7CF31624-B40E-466F-9107-785816C787C4}
7 {44EC1266-D2EE-47B8-ACFC-8BD52E7FFF96} = {44EC1266-D2EE-47B8-ACFC-8BD52E7FFF96}
8 EndProjectSection
9 EndProject
10 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libcommon", "libcommon.vcproj", "{49A26D14-0AD0-497E-A982-42BFD4D992FC}"
11 EndProject
12 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libmpcpsy", "libmpcpsy.vcproj", "{7CF31624-B40E-466F-9107-785816C787C4}"
13 EndProject
14 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libmpcenc", "libmpcenc.vcproj", "{44EC1266-D2EE-47B8-ACFC-8BD52E7FFF96}"
15 EndProject
16 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "mpcdec", "mpcdec.vcproj", "{A527175B-22A9-41AB-B2E8-580F573CCAFB}"
17 ProjectSection(ProjectDependencies) = postProject
18 {49A26D14-0AD0-497E-A982-42BFD4D992FC} = {49A26D14-0AD0-497E-A982-42BFD4D992FC}
19 {13D176A2-B6BB-403F-A816-AA1F388078B7} = {13D176A2-B6BB-403F-A816-AA1F388078B7}
20 {4C5362CD-0BF2-4B3B-971B-8293EB1A1DC3} = {4C5362CD-0BF2-4B3B-971B-8293EB1A1DC3}
21 EndProjectSection
22 EndProject
23 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "mpccut", "mpccut.vcproj", "{ABBF9DD7-650F-48A8-9810-B76F233520F3}"
24 ProjectSection(ProjectDependencies) = postProject
25 {44EC1266-D2EE-47B8-ACFC-8BD52E7FFF96} = {44EC1266-D2EE-47B8-ACFC-8BD52E7FFF96}
26 {49A26D14-0AD0-497E-A982-42BFD4D992FC} = {49A26D14-0AD0-497E-A982-42BFD4D992FC}
27 {4C5362CD-0BF2-4B3B-971B-8293EB1A1DC3} = {4C5362CD-0BF2-4B3B-971B-8293EB1A1DC3}
28 EndProjectSection
29 EndProject
30 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "mpc2sv8", "mpc2sv8.vcproj", "{36225C6A-FFA3-4E70-928E-1F69F7A3FCE1}"
31 ProjectSection(ProjectDependencies) = postProject
32 {49A26D14-0AD0-497E-A982-42BFD4D992FC} = {49A26D14-0AD0-497E-A982-42BFD4D992FC}
33 {44EC1266-D2EE-47B8-ACFC-8BD52E7FFF96} = {44EC1266-D2EE-47B8-ACFC-8BD52E7FFF96}
34 {4C5362CD-0BF2-4B3B-971B-8293EB1A1DC3} = {4C5362CD-0BF2-4B3B-971B-8293EB1A1DC3}
35 EndProjectSection
36 EndProject
37 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libmpcdec", "libmpcdec.vcproj", "{4C5362CD-0BF2-4B3B-971B-8293EB1A1DC3}"
38 EndProject
39 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libwavformat", "libwavformat.vcproj", "{13D176A2-B6BB-403F-A816-AA1F388078B7}"
40 EndProject
41 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libreplaygain", "..\..\..\libreplaygain\libreplaygain.vcproj", "{CB7A02E8-393A-481B-BD18-E7D041D8C6B1}"
42 EndProject
43 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "mpcgain", "mpcgain.vcproj", "{76CBB7D4-0524-4569-9150-34BDE4235D04}"
44 ProjectSection(ProjectDependencies) = postProject
45 {49A26D14-0AD0-497E-A982-42BFD4D992FC} = {49A26D14-0AD0-497E-A982-42BFD4D992FC}
46 {4C5362CD-0BF2-4B3B-971B-8293EB1A1DC3} = {4C5362CD-0BF2-4B3B-971B-8293EB1A1DC3}
47 {CB7A02E8-393A-481B-BD18-E7D041D8C6B1} = {CB7A02E8-393A-481B-BD18-E7D041D8C6B1}
48 EndProjectSection
49 EndProject
50 Global
51 GlobalSection(SolutionConfigurationPlatforms) = preSolution
52 Debug|Win32 = Debug|Win32
53 Release|Win32 = Release|Win32
54 EndGlobalSection
55 GlobalSection(ProjectConfigurationPlatforms) = postSolution
56 {15082E34-9324-469F-8423-F995B4814A37}.Debug|Win32.ActiveCfg = Debug|Win32
57 {15082E34-9324-469F-8423-F995B4814A37}.Debug|Win32.Build.0 = Debug|Win32
58 {15082E34-9324-469F-8423-F995B4814A37}.Release|Win32.ActiveCfg = Release|Win32
59 {15082E34-9324-469F-8423-F995B4814A37}.Release|Win32.Build.0 = Release|Win32
60 {49A26D14-0AD0-497E-A982-42BFD4D992FC}.Debug|Win32.ActiveCfg = Debug|Win32
61 {49A26D14-0AD0-497E-A982-42BFD4D992FC}.Debug|Win32.Build.0 = Debug|Win32
62 {49A26D14-0AD0-497E-A982-42BFD4D992FC}.Release|Win32.ActiveCfg = Release|Win32
63 {49A26D14-0AD0-497E-A982-42BFD4D992FC}.Release|Win32.Build.0 = Release|Win32
64 {7CF31624-B40E-466F-9107-785816C787C4}.Debug|Win32.ActiveCfg = Debug|Win32
65 {7CF31624-B40E-466F-9107-785816C787C4}.Debug|Win32.Build.0 = Debug|Win32
66 {7CF31624-B40E-466F-9107-785816C787C4}.Release|Win32.ActiveCfg = Release|Win32
67 {7CF31624-B40E-466F-9107-785816C787C4}.Release|Win32.Build.0 = Release|Win32
68 {44EC1266-D2EE-47B8-ACFC-8BD52E7FFF96}.Debug|Win32.ActiveCfg = Debug|Win32
69 {44EC1266-D2EE-47B8-ACFC-8BD52E7FFF96}.Debug|Win32.Build.0 = Debug|Win32
70 {44EC1266-D2EE-47B8-ACFC-8BD52E7FFF96}.Release|Win32.ActiveCfg = Release|Win32
71 {44EC1266-D2EE-47B8-ACFC-8BD52E7FFF96}.Release|Win32.Build.0 = Release|Win32
72 {A527175B-22A9-41AB-B2E8-580F573CCAFB}.Debug|Win32.ActiveCfg = Debug|Win32
73 {A527175B-22A9-41AB-B2E8-580F573CCAFB}.Debug|Win32.Build.0 = Debug|Win32
74 {A527175B-22A9-41AB-B2E8-580F573CCAFB}.Release|Win32.ActiveCfg = Release|Win32
75 {A527175B-22A9-41AB-B2E8-580F573CCAFB}.Release|Win32.Build.0 = Release|Win32
76 {ABBF9DD7-650F-48A8-9810-B76F233520F3}.Debug|Win32.ActiveCfg = Debug|Win32
77 {ABBF9DD7-650F-48A8-9810-B76F233520F3}.Debug|Win32.Build.0 = Debug|Win32
78 {ABBF9DD7-650F-48A8-9810-B76F233520F3}.Release|Win32.ActiveCfg = Release|Win32
79 {ABBF9DD7-650F-48A8-9810-B76F233520F3}.Release|Win32.Build.0 = Release|Win32
80 {36225C6A-FFA3-4E70-928E-1F69F7A3FCE1}.Debug|Win32.ActiveCfg = Debug|Win32
81 {36225C6A-FFA3-4E70-928E-1F69F7A3FCE1}.Debug|Win32.Build.0 = Debug|Win32
82 {36225C6A-FFA3-4E70-928E-1F69F7A3FCE1}.Release|Win32.ActiveCfg = Release|Win32
83 {36225C6A-FFA3-4E70-928E-1F69F7A3FCE1}.Release|Win32.Build.0 = Release|Win32
84 {4C5362CD-0BF2-4B3B-971B-8293EB1A1DC3}.Debug|Win32.ActiveCfg = Debug|Win32
85 {4C5362CD-0BF2-4B3B-971B-8293EB1A1DC3}.Debug|Win32.Build.0 = Debug|Win32
86 {4C5362CD-0BF2-4B3B-971B-8293EB1A1DC3}.Release|Win32.ActiveCfg = Release|Win32
87 {4C5362CD-0BF2-4B3B-971B-8293EB1A1DC3}.Release|Win32.Build.0 = Release|Win32
88 {13D176A2-B6BB-403F-A816-AA1F388078B7}.Debug|Win32.ActiveCfg = Debug|Win32
89 {13D176A2-B6BB-403F-A816-AA1F388078B7}.Debug|Win32.Build.0 = Debug|Win32
90 {13D176A2-B6BB-403F-A816-AA1F388078B7}.Release|Win32.ActiveCfg = Release|Win32
91 {13D176A2-B6BB-403F-A816-AA1F388078B7}.Release|Win32.Build.0 = Release|Win32
92 {CB7A02E8-393A-481B-BD18-E7D041D8C6B1}.Debug|Win32.ActiveCfg = Debug|Win32
93 {CB7A02E8-393A-481B-BD18-E7D041D8C6B1}.Debug|Win32.Build.0 = Debug|Win32
94 {CB7A02E8-393A-481B-BD18-E7D041D8C6B1}.Release|Win32.ActiveCfg = Release|Win32
95 {CB7A02E8-393A-481B-BD18-E7D041D8C6B1}.Release|Win32.Build.0 = Release|Win32
96 {76CBB7D4-0524-4569-9150-34BDE4235D04}.Debug|Win32.ActiveCfg = Debug|Win32
97 {76CBB7D4-0524-4569-9150-34BDE4235D04}.Debug|Win32.Build.0 = Debug|Win32
98 {76CBB7D4-0524-4569-9150-34BDE4235D04}.Release|Win32.ActiveCfg = Release|Win32
99 {76CBB7D4-0524-4569-9150-34BDE4235D04}.Release|Win32.Build.0 = Release|Win32
100 EndGlobalSection
101 GlobalSection(SolutionProperties) = preSolution
102 HideSolutionNode = FALSE
103 EndGlobalSection
104 EndGlobal