• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

The MinGW.org Installation Manager Tool


Commit MetaInfo

Revisãoe0f62b095b7955df74d16911e6f7789947eb5d4c (tree)
Hora2013-04-23 21:42:24
AutorKeith Marshall <keithmarshall@user...>
CommiterKeith Marshall

Mensagem de Log

Select compressed data streaming filters for use by setup tool.

Mudança Sumário

Diff

--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
11 2013-04-23 Keith Marshall <keithmarshall@users.sourceforge.net>
22
3+ Select compressed data streaming filters for use by setup tool.
4+
5+ * src/pkgstrm.cpp [IMPLEMENTATION_LEVEL != PACKAGE_BASE_COMPONENT]:
6+ Exclude the implementations of all decompression filters, except...
7+ (pkgXzArchiveStream): ...this, together with its requisite methods...
8+ (pkgArchiveStream, pkgLzmaArchiveStream): ...from these.
9+
10+2013-04-23 Keith Marshall <keithmarshall@users.sourceforge.net>
11+
312 Adapt internet download agent for use by setup tool.
413
514 * src/pkgbase.h: More code rearrangement, exposing...
--- a/src/pkgstrm.cpp
+++ b/src/pkgstrm.cpp
@@ -4,7 +4,7 @@
44 * $Id$
55 *
66 * Written by Keith Marshall <keithmarshall@users.sourceforge.net>
7- * Copyright (C) 2009, 2010, MinGW Project
7+ * Copyright (C) 2009, 2010, 2013, MinGW.org Project
88 *
99 *
1010 * Implementation of the streaming data filters, which will be used
@@ -32,6 +32,8 @@
3232 * arising from the use of this software.
3333 *
3434 */
35+#include "pkgimpl.h"
36+
3537 #include <unistd.h>
3638 #include <fcntl.h>
3739
@@ -80,6 +82,8 @@ int pkgArchiveStream::GetRawData( int fd, uint8_t *buf, size_t max )
8082 return read( fd, buf, max );
8183 }
8284
85+#if IMPLEMENTATION_LEVEL == PACKAGE_BASE_COMPONENT
86+
8387 /*****
8488 *
8589 * Class Implementation: pkgRawArchiveStream
@@ -185,6 +189,8 @@ int pkgBzipArchiveStream::Read( char *buf, size_t max )
185189 return BZ2_bzRead( &bzerror, stream, buf, max );
186190 }
187191
192+#endif /* PACKAGE_BASE_COMPONENT */
193+
188194 /*****
189195 *
190196 * Class Implementation: pkgLzmaArchiveStream
@@ -222,6 +228,8 @@ void lzma_stream_initialise( lzma_stream *stream )
222228 stream->avail_in = 0;
223229 }
224230
231+#if IMPLEMENTATION_LEVEL == PACKAGE_BASE_COMPONENT
232+
225233 pkgLzmaArchiveStream::pkgLzmaArchiveStream( const char *filename )
226234 {
227235 /* The constructor must first open a file stream...
@@ -318,6 +326,8 @@ int pkgLzmaArchiveStream::Read( char *buf, size_t max )
318326 return max - stream.avail_out;
319327 }
320328
329+#endif /* PACKAGE_BASE_COMPONENT */
330+
321331 /*****
322332 *
323333 * Class Implementation: pkgXzArchiveStream
@@ -441,6 +451,8 @@ int pkgXzArchiveStream::Read( char *buf, size_t max )
441451 return max - stream.avail_out;
442452 }
443453
454+#if IMPLEMENTATION_LEVEL == PACKAGE_BASE_COMPONENT
455+
444456 /*****
445457 *
446458 * Auxiliary function: pkgOpenArchiveStream()
@@ -503,4 +515,6 @@ extern "C" pkgArchiveStream* pkgOpenArchiveStream( const char* filename )
503515 return new pkgRawArchiveStream( filename );
504516 }
505517
518+#endif /* PACKAGE_BASE_COMPONENT */
519+
506520 /* $RCSfile$: end of file */