📄 zlibdll.txt
字号:
+ $(CC) -c $(CFLAGS) $(CMAKEDLL) $*.c
+
+ inffast.obj: inffast.c zutil.h zlib.h zconf.h inftrees.h infutil.h inffast.h
+ $(CC) -c $(CFLAGS) $(CMAKEDLL) $*.c
+
+ trees.obj: trees.c deflate.h zutil.h zlib.h zconf.h
+ $(CC) -c $(CFLAGS) $(CMAKEDLL) $*.c
+
+ uncompr.obj: uncompr.c zlib.h zconf.h
+ $(CC) -c $(CFLAGS) $(CMAKEDLL) $*.c
+
+ zutil.obj: zutil.c zutil.h zlib.h zconf.h
+ $(CC) -c $(CFLAGS) $(CMAKEDLL) $*.c
+
+ example.obj: example.c zlib.h zconf.h
+ $(CC) -c $(CFLAGS) $(CUSEDLL) $*.c
+
+ minigzip.obj: minigzip.c zlib.h zconf.h
+ $(CC) -c $(CFLAGS) $(CUSEDLL) $*.c
+
+ zlib2.dll: $(OBJ1) $(OBJ2) zlib2.def zlib2.rc
+ $(CC) $(CFLAGS) $(CMAKEDLL) -o zlib2.dll $(OBJ1) $(OBJ2) zlib2.def
+ rc -i $(INCLUDE) zlib2.rc zlib2.dll
+
+ !if $(DLL)
+ # ----- DLL -----
+ zlib.lib: zlib2.dll
+ emximp -ozlib2.lib zlib2.def
+ -del zlib.lib
+ copy zlib2.lib zlib.lib
+ !else
+ # ----- Normal library -----
+ # we must cut the command line to fit in the MS/DOS 128 byte limit:
+ zlib.lib: $(OBJ1) $(OBJ2)
+ -del zlib.lib
+ #libz.a: $(OBJS)
+ $(LIB) $@ $(OBJ1) $(OBJ2)
+ # $(LIB) zlib +$(OBJP1)
+ # $(LIB) zlib +$(OBJP2)
+ !endif
+
+ example.exe: example.obj zlib.lib
+ $(LD) $(LDFLAGS) example.obj zlib.lib
+
+ minigzip.exe: minigzip.obj zlib.lib
+ $(LD) $(LDFLAGS) minigzip.obj zlib.lib
+
+ test: example.exe minigzip.exe
+ example
+ # echo hello world | minigzip | minigzip -d
+ # OS/2 is not handling two pipes on one line
+ echo hello world | minigzip > test.gz
+ type test.gz | minigzip -d
+ -del test.gz
+
+
+ clean:
+ -del *.obj
+ -del *.exe
+ -del *.res
+ -del *.dll
diff -c ./adler32.c ../zlib_bcc/adler32.c
*** ./adler32.c Wed May 22 13:52:18 1996
--- ../zlib_bcc/adler32.c Sat Nov 23 19:15:10 1996
***************
*** 18,24 ****
#define DO16(buf) DO8(buf,0); DO8(buf,8);
/* ========================================================================= */
! uLong adler32(adler, buf, len)
uLong adler;
const Bytef *buf;
uInt len;
--- 18,24 ----
#define DO16(buf) DO8(buf,0); DO8(buf,8);
/* ========================================================================= */
! uLong EXPORT adler32(adler, buf, len)
uLong adler;
const Bytef *buf;
uInt len;
diff -c ./compress.c ../zlib_bcc/compress.c
*** ./compress.c Thu May 23 18:51:12 1996
--- ../zlib_bcc/compress.c Sat Nov 23 19:15:24 1996
***************
*** 19,25 ****
enough memory, Z_BUF_ERROR if there was not enough room in the output
buffer.
*/
! int compress (dest, destLen, source, sourceLen)
Bytef *dest;
uLongf *destLen;
const Bytef *source;
--- 19,25 ----
enough memory, Z_BUF_ERROR if there was not enough room in the output
buffer.
*/
! int EXPORT compress (dest, destLen, source, sourceLen)
Bytef *dest;
uLongf *destLen;
const Bytef *source;
diff -c ./crc32.c ../zlib_bcc/crc32.c
*** ./crc32.c Tue Jan 30 22:59:10 1996
--- ../zlib_bcc/crc32.c Sat Nov 23 19:15:36 1996
***************
*** 139,145 ****
#define DO8(buf) DO4(buf); DO4(buf);
/* ========================================================================= */
! uLong crc32(crc, buf, len)
uLong crc;
const Bytef *buf;
uInt len;
--- 139,145 ----
#define DO8(buf) DO4(buf); DO4(buf);
/* ========================================================================= */
! uLong EXPORT crc32(crc, buf, len)
uLong crc;
const Bytef *buf;
uInt len;
diff -c ./deflate.c ../zlib_bcc/deflate.c
*** ./deflate.c Wed Jul 24 15:40:58 1996
--- ../zlib_bcc/deflate.c Sat Nov 23 19:19:00 1996
***************
*** 175,181 ****
zmemzero((charf *)s->head, (unsigned)(s->hash_size-1)*sizeof(*s->head));
/* ========================================================================= */
! int deflateInit_(strm, level, version, stream_size)
z_streamp strm;
int level;
const char *version;
--- 175,181 ----
zmemzero((charf *)s->head, (unsigned)(s->hash_size-1)*sizeof(*s->head));
/* ========================================================================= */
! int EXPORT deflateInit_(strm, level, version, stream_size)
z_streamp strm;
int level;
const char *version;
***************
*** 187,193 ****
}
/* ========================================================================= */
! int deflateInit2_(strm, level, method, windowBits, memLevel, strategy,
version, stream_size)
z_streamp strm;
int level;
--- 187,193 ----
}
/* ========================================================================= */
! int EXPORT deflateInit2_(strm, level, method, windowBits, memLevel, strategy,
version, stream_size)
z_streamp strm;
int level;
***************
*** 271,277 ****
}
/* ========================================================================= */
! int deflateSetDictionary (strm, dictionary, dictLength)
z_streamp strm;
const Bytef *dictionary;
uInt dictLength;
--- 271,277 ----
}
/* ========================================================================= */
! int EXPORT deflateSetDictionary (strm, dictionary, dictLength)
z_streamp strm;
const Bytef *dictionary;
uInt dictLength;
***************
*** 310,316 ****
}
/* ========================================================================= */
! int deflateReset (strm)
z_streamp strm;
{
deflate_state *s;
--- 310,316 ----
}
/* ========================================================================= */
! int EXPORT deflateReset (strm)
z_streamp strm;
{
deflate_state *s;
***************
*** 340,346 ****
}
/* ========================================================================= */
! int deflateParams(strm, level, strategy)
z_streamp strm;
int level;
int strategy;
--- 340,346 ----
}
/* ========================================================================= */
! int EXPORT deflateParams(strm, level, strategy)
z_streamp strm;
int level;
int strategy;
***************
*** 414,420 ****
}
/* ========================================================================= */
! int deflate (strm, flush)
z_streamp strm;
int flush;
{
--- 414,420 ----
}
/* ========================================================================= */
! int EXPORT deflate (strm, flush)
z_streamp strm;
int flush;
{
***************
*** 548,554 ****
}
/* ========================================================================= */
! int deflateEnd (strm)
z_streamp strm;
{
int status;
--- 548,554 ----
}
/* ========================================================================= */
! int EXPORT deflateEnd (strm)
z_streamp strm;
{
int status;
***************
*** 569,575 ****
}
/* ========================================================================= */
! int deflateCopy (dest, source)
z_streamp dest;
z_streamp source;
{
--- 569,575 ----
}
/* ========================================================================= */
! int EXPORT deflateCopy (dest, source)
z_streamp dest;
z_streamp source;
{
diff -c ./gzio.c ../zlib_bcc/gzio.c
*** ./gzio.c Wed Jul 24 15:41:02 1996
--- ../zlib_bcc/gzio.c Sat Nov 23 19:16:48 1996
***************
*** 145,151 ****
/* ===========================================================================
Opens a gzip (.gz) file for reading or writing.
*/
! gzFile gzopen (path, mode)
const char *path;
const char *mode;
{
--- 145,151 ----
/* ===========================================================================
Opens a gzip (.gz) file for reading or writing.
*/
! gzFile EXPORT gzopen (path, mode)
const char *path;
const char *mode;
{
***************
*** 156,162 ****
Associate a gzFile with the file descriptor fd. fd is not dup'ed here
to mimic the behavio(u)r of fdopen.
*/
! gzFile gzdopen (fd, mode)
int fd;
const char *mode;
{
--- 156,162 ----
Associate a gzFile with the file descriptor fd. fd is not dup'ed here
to mimic the behavio(u)r of fdopen.
*/
! gzFile EXPORT gzdopen (fd, mode)
int fd;
const char *mode;
{
***************
*** 282,288 ****
Reads the given number of uncompressed bytes from the compressed file.
gzread returns the number of bytes actually read (0 for end of file).
*/
! int gzread (file, buf, len)
gzFile file;
voidp buf;
unsigned len;
--- 282,288 ----
Reads the given number of uncompressed bytes from the compressed file.
gzread returns the number of bytes actually read (0 for end of file).
*/
! int EXPORT gzread (file, buf, len)
gzFile file;
voidp buf;
unsigned len;
***************
*** 361,367 ****
Writes the given number of uncompressed bytes into the compressed file.
gzwrite returns the number of bytes actually written (0 in case of error).
*/
! int gzwrite (file, buf, len)
gzFile file;
const voidp buf;
unsigned len;
--- 361,367 ----
Writes the given number of uncompressed bytes into the compressed file.
gzwrite returns the number of bytes actually written (0 in case of error).
*/
! int EXPORT gzwrite (file, buf, len)
gzFile file;
const voidp buf;
unsigned len;
***************
*** 398,404 ****
gzflush should be called only when strictly necessary because it can
degrade compression.
*/
! int gzflush (file, flush)
gzFile file;
int flush;
{
--- 398,404 ----
gzflush should be called only when strictly necessary because it can
degrade compression.
*/
! int EXPORT gzflush (file, flush)
gzFile file;
int flush;
{
***************
*** 470,476 ****
Flushes all pending output if necessary, closes the compressed file
and deallocates all the (de)compression state.
*/
! int gzclose (file)
gzFile file;
{
int err;
--- 470,476 ----
Flushes all pending output if necessary, closes the compressed file
and deallocates all the (de)compression state.
*/
! int EXPORT gzclose (file)
gzFile file;
{
int err;
***************
*** 496,502 ****
errnum is set to Z_ERRNO and the application may consult errno
to get the exact error code.
*/
! const char* gzerror (file, errnum)
gzFile file;
int *errnum;
{
--- 496,502 ----
errnum is set to Z_ERRNO and the application may consult errno
to get the exact error code.
*/
! const char* EXPORT gzerror (file, errnum)
gzFile file;
int *errnum;
{
diff -c ./inflate.c ../zlib_bcc/inflate.c
*** ./inflate.c Fri Jun 28 16:06:32 1996
--- ../zlib_bcc/inflate.c Sun Nov 24 21:53:14 1996
***************
*** 48,54 ****
};
! int inflateReset(z)
z_streamp z;
{
uLong c;
--- 48,54 ----
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -