diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2011-09-09 23:22:37 -0700 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2011-09-09 23:22:37 -0700 |
commit | 4b5a43a219d51066c01ff2ab86af18b967f2d0dd (patch) | |
tree | 4dcaf0cd18751d04cf638a9a6ec521990d4f2e90 /contrib/delphi2 | |
parent | 086e982175da84b3db958191031380794315f95f (diff) | |
download | zlib-1.2.0.5.tar.gz zlib-1.2.0.5.tar.bz2 zlib-1.2.0.5.zip |
zlib 1.2.0.5v1.2.0.5
Diffstat (limited to '')
-rw-r--r-- | contrib/delphi/ZLib.pas (renamed from contrib/delphi2/zlib.pas) | 163 | ||||
-rw-r--r-- | contrib/delphi2/d_zlib.bpr | 224 | ||||
-rw-r--r-- | contrib/delphi2/d_zlib.cpp | 17 | ||||
-rw-r--r-- | contrib/delphi2/readme.txt | 17 | ||||
-rw-r--r-- | contrib/delphi2/zlib.bpg | 26 | ||||
-rw-r--r-- | contrib/delphi2/zlib.bpr | 225 | ||||
-rw-r--r-- | contrib/delphi2/zlib.cpp | 22 | ||||
-rw-r--r-- | contrib/delphi2/zlib32.bpr | 174 | ||||
-rw-r--r-- | contrib/delphi2/zlib32.cpp | 42 |
9 files changed, 93 insertions, 817 deletions
diff --git a/contrib/delphi2/zlib.pas b/contrib/delphi/ZLib.pas index 10ae4ca..ea9a17f 100644 --- a/contrib/delphi2/zlib.pas +++ b/contrib/delphi/ZLib.pas | |||
@@ -1,33 +1,33 @@ | |||
1 | {*******************************************************} | 1 | {*******************************************************} |
2 | { } | 2 | { } |
3 | { Delphi Supplemental Components } | 3 | { Borland Delphi Supplemental Components } |
4 | { ZLIB Data Compression Interface Unit } | 4 | { ZLIB Data Compression Interface Unit } |
5 | { } | 5 | { } |
6 | { Copyright (c) 1997 Borland International } | 6 | { Copyright (c) 1997,99 Borland Corporation } |
7 | { } | 7 | { } |
8 | {*******************************************************} | 8 | {*******************************************************} |
9 | 9 | ||
10 | { Modified for zlib 1.1.3 by Davide Moretti <dave@rimini.com } | 10 | { Updated for zlib 1.2.x by Cosmin Truta <cosmint@cs.ubbcluj.ro> } |
11 | 11 | ||
12 | unit zlib; | 12 | unit ZLib; |
13 | 13 | ||
14 | interface | 14 | interface |
15 | 15 | ||
16 | uses Sysutils, Classes; | 16 | uses SysUtils, Classes; |
17 | 17 | ||
18 | type | 18 | type |
19 | TAlloc = function (AppData: Pointer; Items, Size: Integer): Pointer; | 19 | TAlloc = function (AppData: Pointer; Items, Size: Integer): Pointer; cdecl; |
20 | TFree = procedure (AppData, Block: Pointer); | 20 | TFree = procedure (AppData, Block: Pointer); cdecl; |
21 | 21 | ||
22 | // Internal structure. Ignore. | 22 | // Internal structure. Ignore. |
23 | TZStreamRec = packed record | 23 | TZStreamRec = packed record |
24 | next_in: PChar; // next input byte | 24 | next_in: PChar; // next input byte |
25 | avail_in: Integer; // number of bytes available at next_in | 25 | avail_in: Integer; // number of bytes available at next_in |
26 | total_in: Integer; // total nb of input bytes read so far | 26 | total_in: Longint; // total nb of input bytes read so far |
27 | 27 | ||
28 | next_out: PChar; // next output byte should be put here | 28 | next_out: PChar; // next output byte should be put here |
29 | avail_out: Integer; // remaining free space at next_out | 29 | avail_out: Integer; // remaining free space at next_out |
30 | total_out: Integer; // total nb of bytes output so far | 30 | total_out: Longint; // total nb of bytes output so far |
31 | 31 | ||
32 | msg: PChar; // last error message, NULL if no error | 32 | msg: PChar; // last error message, NULL if no error |
33 | internal: Pointer; // not visible by applications | 33 | internal: Pointer; // not visible by applications |
@@ -36,9 +36,9 @@ type | |||
36 | zfree: TFree; // used to free the internal state | 36 | zfree: TFree; // used to free the internal state |
37 | AppData: Pointer; // private data object passed to zalloc and zfree | 37 | AppData: Pointer; // private data object passed to zalloc and zfree |
38 | 38 | ||
39 | data_type: Integer; // best guess about the data type: ascii or binary | 39 | data_type: Integer; // best guess about the data type: ascii or binary |
40 | adler: Integer; // adler32 value of the uncompressed data | 40 | adler: Longint; // adler32 value of the uncompressed data |
41 | reserved: Integer; // reserved for future use | 41 | reserved: Longint; // reserved for future use |
42 | end; | 42 | end; |
43 | 43 | ||
44 | // Abstract ancestor class | 44 | // Abstract ancestor class |
@@ -143,18 +143,26 @@ procedure CompressBuf(const InBuf: Pointer; InBytes: Integer; | |||
143 | procedure DecompressBuf(const InBuf: Pointer; InBytes: Integer; | 143 | procedure DecompressBuf(const InBuf: Pointer; InBytes: Integer; |
144 | OutEstimate: Integer; out OutBuf: Pointer; out OutBytes: Integer); | 144 | OutEstimate: Integer; out OutBuf: Pointer; out OutBytes: Integer); |
145 | 145 | ||
146 | { DecompressToUserBuf decompresses data, buffer to buffer, in one call. | ||
147 | In: InBuf = ptr to compressed data | ||
148 | InBytes = number of bytes in InBuf | ||
149 | Out: OutBuf = ptr to user-allocated buffer to contain decompressed data | ||
150 | BufSize = number of bytes in OutBuf } | ||
151 | procedure DecompressToUserBuf(const InBuf: Pointer; InBytes: Integer; | ||
152 | const OutBuf: Pointer; BufSize: Integer); | ||
153 | |||
146 | const | 154 | const |
147 | zlib_version = '1.1.3'; | 155 | zlib_version = '1.2.0'; |
148 | 156 | ||
149 | type | 157 | type |
150 | EZlibError = class(Exception); | 158 | EZlibError = class(Exception); |
151 | ECompressionError = class(EZlibError); | 159 | ECompressionError = class(EZlibError); |
152 | EDecompressionError = class(EZlibError); | 160 | EDecompressionError = class(EZlibError); |
153 | 161 | ||
154 | function adler32(adler: Integer; buf: PChar; len: Integer): Integer; | ||
155 | |||
156 | implementation | 162 | implementation |
157 | 163 | ||
164 | uses ZLibConst; | ||
165 | |||
158 | const | 166 | const |
159 | Z_NO_FLUSH = 0; | 167 | Z_NO_FLUSH = 0; |
160 | Z_PARTIAL_FLUSH = 1; | 168 | Z_PARTIAL_FLUSH = 1; |
@@ -179,6 +187,7 @@ const | |||
179 | 187 | ||
180 | Z_FILTERED = 1; | 188 | Z_FILTERED = 1; |
181 | Z_HUFFMAN_ONLY = 2; | 189 | Z_HUFFMAN_ONLY = 2; |
190 | Z_RLE = 3; | ||
182 | Z_DEFAULT_STRATEGY = 0; | 191 | Z_DEFAULT_STRATEGY = 0; |
183 | 192 | ||
184 | Z_BINARY = 0; | 193 | Z_BINARY = 0; |
@@ -187,56 +196,41 @@ const | |||
187 | 196 | ||
188 | Z_DEFLATED = 8; | 197 | Z_DEFLATED = 8; |
189 | 198 | ||
190 | _z_errmsg: array[0..9] of PChar = ( | ||
191 | 'need dictionary', // Z_NEED_DICT (2) | ||
192 | 'stream end', // Z_STREAM_END (1) | ||
193 | '', // Z_OK (0) | ||
194 | 'file error', // Z_ERRNO (-1) | ||
195 | 'stream error', // Z_STREAM_ERROR (-2) | ||
196 | 'data error', // Z_DATA_ERROR (-3) | ||
197 | 'insufficient memory', // Z_MEM_ERROR (-4) | ||
198 | 'buffer error', // Z_BUF_ERROR (-5) | ||
199 | 'incompatible version', // Z_VERSION_ERROR (-6) | ||
200 | '' | ||
201 | ); | ||
202 | 199 | ||
200 | {$L adler32.obj} | ||
201 | {$L compress.obj} | ||
202 | {$L crc32.obj} | ||
203 | {$L deflate.obj} | 203 | {$L deflate.obj} |
204 | {$L infback.obj} | ||
205 | {$L inffast.obj} | ||
204 | {$L inflate.obj} | 206 | {$L inflate.obj} |
205 | {$L inftrees.obj} | 207 | {$L inftrees.obj} |
206 | {$L trees.obj} | 208 | {$L trees.obj} |
207 | {$L adler32.obj} | 209 | {$L uncompr.obj} |
208 | {$L infblock.obj} | 210 | {$L zutil.obj} |
209 | {$L infcodes.obj} | 211 | |
210 | {$L infutil.obj} | 212 | procedure adler32; external; |
211 | {$L inffast.obj} | 213 | procedure compressBound; external; |
214 | procedure crc32; external; | ||
215 | procedure deflateInit2_; external; | ||
216 | procedure deflateParams; external; | ||
212 | 217 | ||
213 | procedure _tr_init; external; | 218 | function _malloc(Size: Integer): Pointer; cdecl; |
214 | procedure _tr_tally; external; | 219 | begin |
215 | procedure _tr_flush_block; external; | 220 | Result := AllocMem(Size); |
216 | procedure _tr_align; external; | 221 | end; |
217 | procedure _tr_stored_block; external; | 222 | |
218 | function adler32; external; | 223 | procedure _free(Block: Pointer); cdecl; |
219 | procedure inflate_blocks_new; external; | 224 | begin |
220 | procedure inflate_blocks; external; | 225 | FreeMem(Block); |
221 | procedure inflate_blocks_reset; external; | 226 | end; |
222 | procedure inflate_blocks_free; external; | 227 | |
223 | procedure inflate_set_dictionary; external; | 228 | procedure _memset(P: Pointer; B: Byte; count: Integer); cdecl; |
224 | procedure inflate_trees_bits; external; | ||
225 | procedure inflate_trees_dynamic; external; | ||
226 | procedure inflate_trees_fixed; external; | ||
227 | procedure inflate_codes_new; external; | ||
228 | procedure inflate_codes; external; | ||
229 | procedure inflate_codes_free; external; | ||
230 | procedure _inflate_mask; external; | ||
231 | procedure inflate_flush; external; | ||
232 | procedure inflate_fast; external; | ||
233 | |||
234 | procedure _memset(P: Pointer; B: Byte; count: Integer);cdecl; | ||
235 | begin | 229 | begin |
236 | FillChar(P^, count, B); | 230 | FillChar(P^, count, B); |
237 | end; | 231 | end; |
238 | 232 | ||
239 | procedure _memcpy(dest, source: Pointer; count: Integer);cdecl; | 233 | procedure _memcpy(dest, source: Pointer; count: Integer); cdecl; |
240 | begin | 234 | begin |
241 | Move(source^, dest^, count); | 235 | Move(source^, dest^, count); |
242 | end; | 236 | end; |
@@ -257,22 +251,23 @@ function inflateEnd(var strm: TZStreamRec): Integer; external; | |||
257 | function inflateReset(var strm: TZStreamRec): Integer; external; | 251 | function inflateReset(var strm: TZStreamRec): Integer; external; |
258 | 252 | ||
259 | 253 | ||
260 | function zcalloc(AppData: Pointer; Items, Size: Integer): Pointer; | 254 | function zlibAllocMem(AppData: Pointer; Items, Size: Integer): Pointer; cdecl; |
261 | begin | 255 | begin |
262 | GetMem(Result, Items*Size); | 256 | // GetMem(Result, Items*Size); |
257 | Result := AllocMem(Items * Size); | ||
263 | end; | 258 | end; |
264 | 259 | ||
265 | procedure zcfree(AppData, Block: Pointer); | 260 | procedure zlibFreeMem(AppData, Block: Pointer); cdecl; |
266 | begin | 261 | begin |
267 | FreeMem(Block); | 262 | FreeMem(Block); |
268 | end; | 263 | end; |
269 | 264 | ||
270 | function zlibCheck(code: Integer): Integer; | 265 | {function zlibCheck(code: Integer): Integer; |
271 | begin | 266 | begin |
272 | Result := code; | 267 | Result := code; |
273 | if code < 0 then | 268 | if code < 0 then |
274 | raise EZlibError.Create('error'); //!! | 269 | raise EZlibError.Create('error'); //!! |
275 | end; | 270 | end;} |
276 | 271 | ||
277 | function CCheck(code: Integer): Integer; | 272 | function CCheck(code: Integer): Integer; |
278 | begin | 273 | begin |
@@ -295,6 +290,8 @@ var | |||
295 | P: Pointer; | 290 | P: Pointer; |
296 | begin | 291 | begin |
297 | FillChar(strm, sizeof(strm), 0); | 292 | FillChar(strm, sizeof(strm), 0); |
293 | strm.zalloc := zlibAllocMem; | ||
294 | strm.zfree := zlibFreeMem; | ||
298 | OutBytes := ((InBytes + (InBytes div 10) + 12) + 255) and not 255; | 295 | OutBytes := ((InBytes + (InBytes div 10) + 12) + 255) and not 255; |
299 | GetMem(OutBuf, OutBytes); | 296 | GetMem(OutBuf, OutBytes); |
300 | try | 297 | try |
@@ -332,6 +329,8 @@ var | |||
332 | BufInc: Integer; | 329 | BufInc: Integer; |
333 | begin | 330 | begin |
334 | FillChar(strm, sizeof(strm), 0); | 331 | FillChar(strm, sizeof(strm), 0); |
332 | strm.zalloc := zlibAllocMem; | ||
333 | strm.zfree := zlibFreeMem; | ||
335 | BufInc := (InBytes + 255) and not 255; | 334 | BufInc := (InBytes + 255) and not 255; |
336 | if OutEstimate = 0 then | 335 | if OutEstimate = 0 then |
337 | OutBytes := BufInc | 336 | OutBytes := BufInc |
@@ -364,6 +363,26 @@ begin | |||
364 | end; | 363 | end; |
365 | end; | 364 | end; |
366 | 365 | ||
366 | procedure DecompressToUserBuf(const InBuf: Pointer; InBytes: Integer; | ||
367 | const OutBuf: Pointer; BufSize: Integer); | ||
368 | var | ||
369 | strm: TZStreamRec; | ||
370 | begin | ||
371 | FillChar(strm, sizeof(strm), 0); | ||
372 | strm.zalloc := zlibAllocMem; | ||
373 | strm.zfree := zlibFreeMem; | ||
374 | strm.next_in := InBuf; | ||
375 | strm.avail_in := InBytes; | ||
376 | strm.next_out := OutBuf; | ||
377 | strm.avail_out := BufSize; | ||
378 | DCheck(inflateInit_(strm, zlib_version, sizeof(strm))); | ||
379 | try | ||
380 | if DCheck(inflate(strm, Z_FINISH)) <> Z_STREAM_END then | ||
381 | raise EZlibError.CreateRes(@sTargetBufferTooSmall); | ||
382 | finally | ||
383 | DCheck(inflateEnd(strm)); | ||
384 | end; | ||
385 | end; | ||
367 | 386 | ||
368 | // TCustomZlibStream | 387 | // TCustomZlibStream |
369 | 388 | ||
@@ -372,6 +391,8 @@ begin | |||
372 | inherited Create; | 391 | inherited Create; |
373 | FStrm := Strm; | 392 | FStrm := Strm; |
374 | FStrmPos := Strm.Position; | 393 | FStrmPos := Strm.Position; |
394 | FZRec.zalloc := zlibAllocMem; | ||
395 | FZRec.zfree := zlibFreeMem; | ||
375 | end; | 396 | end; |
376 | 397 | ||
377 | procedure TCustomZLibStream.Progress(Sender: TObject); | 398 | procedure TCustomZLibStream.Progress(Sender: TObject); |
@@ -417,7 +438,7 @@ end; | |||
417 | 438 | ||
418 | function TCompressionStream.Read(var Buffer; Count: Longint): Longint; | 439 | function TCompressionStream.Read(var Buffer; Count: Longint): Longint; |
419 | begin | 440 | begin |
420 | raise ECompressionError.Create('Invalid stream operation'); | 441 | raise ECompressionError.CreateRes(@sInvalidStreamOp); |
421 | end; | 442 | end; |
422 | 443 | ||
423 | function TCompressionStream.Write(const Buffer; Count: Longint): Longint; | 444 | function TCompressionStream.Write(const Buffer; Count: Longint): Longint; |
@@ -445,7 +466,7 @@ begin | |||
445 | if (Offset = 0) and (Origin = soFromCurrent) then | 466 | if (Offset = 0) and (Origin = soFromCurrent) then |
446 | Result := FZRec.total_in | 467 | Result := FZRec.total_in |
447 | else | 468 | else |
448 | raise ECompressionError.Create('Invalid stream operation'); | 469 | raise ECompressionError.CreateRes(@sInvalidStreamOp); |
449 | end; | 470 | end; |
450 | 471 | ||
451 | function TCompressionStream.GetCompressionRate: Single; | 472 | function TCompressionStream.GetCompressionRate: Single; |
@@ -469,6 +490,7 @@ end; | |||
469 | 490 | ||
470 | destructor TDecompressionStream.Destroy; | 491 | destructor TDecompressionStream.Destroy; |
471 | begin | 492 | begin |
493 | FStrm.Seek(-FZRec.avail_in, 1); | ||
472 | inflateEnd(FZRec); | 494 | inflateEnd(FZRec); |
473 | inherited Destroy; | 495 | inherited Destroy; |
474 | end; | 496 | end; |
@@ -484,22 +506,22 @@ begin | |||
484 | begin | 506 | begin |
485 | FZRec.avail_in := FStrm.Read(FBuffer, sizeof(FBuffer)); | 507 | FZRec.avail_in := FStrm.Read(FBuffer, sizeof(FBuffer)); |
486 | if FZRec.avail_in = 0 then | 508 | if FZRec.avail_in = 0 then |
487 | begin | 509 | begin |
488 | Result := Count - FZRec.avail_out; | 510 | Result := Count - FZRec.avail_out; |
489 | Exit; | 511 | Exit; |
490 | end; | 512 | end; |
491 | FZRec.next_in := FBuffer; | 513 | FZRec.next_in := FBuffer; |
492 | FStrmPos := FStrm.Position; | 514 | FStrmPos := FStrm.Position; |
493 | Progress(Self); | 515 | Progress(Self); |
494 | end; | 516 | end; |
495 | DCheck(inflate(FZRec, 0)); | 517 | CCheck(inflate(FZRec, 0)); |
496 | end; | 518 | end; |
497 | Result := Count; | 519 | Result := Count; |
498 | end; | 520 | end; |
499 | 521 | ||
500 | function TDecompressionStream.Write(const Buffer; Count: Longint): Longint; | 522 | function TDecompressionStream.Write(const Buffer; Count: Longint): Longint; |
501 | begin | 523 | begin |
502 | raise EDecompressionError.Create('Invalid stream operation'); | 524 | raise EDecompressionError.CreateRes(@sInvalidStreamOp); |
503 | end; | 525 | end; |
504 | 526 | ||
505 | function TDecompressionStream.Seek(Offset: Longint; Origin: Word): Longint; | 527 | function TDecompressionStream.Seek(Offset: Longint; Origin: Word): Longint; |
@@ -527,8 +549,9 @@ begin | |||
527 | end; | 549 | end; |
528 | end | 550 | end |
529 | else | 551 | else |
530 | raise EDecompressionError.Create('Invalid stream operation'); | 552 | raise EDecompressionError.CreateRes(@sInvalidStreamOp); |
531 | Result := FZRec.total_out; | 553 | Result := FZRec.total_out; |
532 | end; | 554 | end; |
533 | 555 | ||
556 | |||
534 | end. | 557 | end. |
diff --git a/contrib/delphi2/d_zlib.bpr b/contrib/delphi2/d_zlib.bpr deleted file mode 100644 index 78bb254..0000000 --- a/contrib/delphi2/d_zlib.bpr +++ /dev/null | |||
@@ -1,224 +0,0 @@ | |||
1 | # --------------------------------------------------------------------------- | ||
2 | !if !$d(BCB) | ||
3 | BCB = $(MAKEDIR)\.. | ||
4 | !endif | ||
5 | |||
6 | # --------------------------------------------------------------------------- | ||
7 | # IDE SECTION | ||
8 | # --------------------------------------------------------------------------- | ||
9 | # The following section of the project makefile is managed by the BCB IDE. | ||
10 | # It is recommended to use the IDE to change any of the values in this | ||
11 | # section. | ||
12 | # --------------------------------------------------------------------------- | ||
13 | |||
14 | VERSION = BCB.03 | ||
15 | # --------------------------------------------------------------------------- | ||
16 | PROJECT = d_zlib.lib | ||
17 | OBJFILES = d_zlib.obj adler32.obj deflate.obj infblock.obj infcodes.obj inffast.obj \ | ||
18 | inflate.obj inftrees.obj infutil.obj trees.obj | ||
19 | RESFILES = | ||
20 | RESDEPEN = $(RESFILES) | ||
21 | LIBFILES = | ||
22 | LIBRARIES = VCL35.lib | ||
23 | SPARELIBS = VCL35.lib | ||
24 | DEFFILE = | ||
25 | PACKAGES = VCLX35.bpi VCL35.bpi VCLDB35.bpi VCLDBX35.bpi ibsmp35.bpi bcbsmp35.bpi \ | ||
26 | dclocx35.bpi QRPT35.bpi TEEUI35.bpi TEEDB35.bpi TEE35.bpi DSS35.bpi \ | ||
27 | NMFAST35.bpi INETDB35.bpi INET35.bpi VCLMID35.bpi | ||
28 | # --------------------------------------------------------------------------- | ||
29 | PATHCPP = .; | ||
30 | PATHASM = .; | ||
31 | PATHPAS = .; | ||
32 | PATHRC = .; | ||
33 | DEBUGLIBPATH = $(BCB)\lib\debug | ||
34 | RELEASELIBPATH = $(BCB)\lib\release | ||
35 | # --------------------------------------------------------------------------- | ||
36 | CFLAG1 = -O2 -Ve -d -k- -vi | ||
37 | CFLAG2 = -I$(BCB)\include;$(BCB)\include\vcl -H=$(BCB)\lib\vcl35.csm | ||
38 | CFLAG3 = -ff -pr -5 | ||
39 | PFLAGS = -U;$(DEBUGLIBPATH) -I$(BCB)\include;$(BCB)\include\vcl -H -W -$I- -v -JPHN -M | ||
40 | RFLAGS = -i$(BCB)\include;$(BCB)\include\vcl | ||
41 | AFLAGS = /i$(BCB)\include /i$(BCB)\include\vcl /mx /w2 /zn | ||
42 | LFLAGS = | ||
43 | IFLAGS = -g -Gn | ||
44 | # --------------------------------------------------------------------------- | ||
45 | ALLOBJ = c0w32.obj $(OBJFILES) | ||
46 | ALLRES = $(RESFILES) | ||
47 | ALLLIB = $(LIBFILES) $(LIBRARIES) import32.lib cp32mt.lib | ||
48 | # --------------------------------------------------------------------------- | ||
49 | !!ifdef IDEOPTIONS | ||
50 | |||
51 | [Version Info] | ||
52 | IncludeVerInfo=0 | ||
53 | AutoIncBuild=0 | ||
54 | MajorVer=1 | ||
55 | MinorVer=0 | ||
56 | Release=0 | ||
57 | Build=0 | ||
58 | Debug=0 | ||
59 | PreRelease=0 | ||
60 | Special=0 | ||
61 | Private=0 | ||
62 | DLL=0 | ||
63 | Locale=1040 | ||
64 | CodePage=1252 | ||
65 | |||
66 | [Version Info Keys] | ||
67 | CompanyName= | ||
68 | FileDescription= | ||
69 | FileVersion=1.0.0.0 | ||
70 | InternalName= | ||
71 | LegalCopyright= | ||
72 | LegalTrademarks= | ||
73 | OriginalFilename= | ||
74 | ProductName= | ||
75 | ProductVersion=1.0.0.0 | ||
76 | Comments= | ||
77 | |||
78 | [HistoryLists\hlIncludePath] | ||
79 | Count=2 | ||
80 | Item0=$(BCB)\include | ||
81 | Item1=$(BCB)\include;$(BCB)\include\vcl | ||
82 | |||
83 | [HistoryLists\hlLibraryPath] | ||
84 | Count=1 | ||
85 | Item0=$(BCB)\lib\obj;$(BCB)\lib | ||
86 | |||
87 | [HistoryLists\hlDebugSourcePath] | ||
88 | Count=1 | ||
89 | Item0=$(BCB)\source\vcl | ||
90 | |||
91 | [Debugging] | ||
92 | DebugSourceDirs= | ||
93 | |||
94 | [Parameters] | ||
95 | RunParams= | ||
96 | HostApplication= | ||
97 | |||
98 | !endif | ||
99 | |||
100 | --------------------------------------------------------------------------- | ||
101 | # MAKE SECTION | ||
102 | # --------------------------------------------------------------------------- | ||
103 | # This section of the project file is not used by the BCB IDE. It is for | ||
104 | # the benefit of building from the command-line using the MAKE utility. | ||
105 | # --------------------------------------------------------------------------- | ||
106 | |||
107 | .autodepend | ||
108 | # --------------------------------------------------------------------------- | ||
109 | !if !$d(BCC32) | ||
110 | BCC32 = bcc32 | ||
111 | !endif | ||
112 | |||
113 | !if !$d(DCC32) | ||
114 | DCC32 = dcc32 | ||
115 | !endif | ||
116 | |||
117 | !if !$d(TASM32) | ||
118 | TASM32 = tasm32 | ||
119 | !endif | ||
120 | |||
121 | !if !$d(LINKER) | ||
122 | LINKER = TLib | ||
123 | !endif | ||
124 | |||
125 | !if !$d(BRCC32) | ||
126 | BRCC32 = brcc32 | ||
127 | !endif | ||
128 | # --------------------------------------------------------------------------- | ||
129 | !if $d(PATHCPP) | ||
130 | .PATH.CPP = $(PATHCPP) | ||
131 | .PATH.C = $(PATHCPP) | ||
132 | !endif | ||
133 | |||
134 | !if $d(PATHPAS) | ||
135 | .PATH.PAS = $(PATHPAS) | ||
136 | !endif | ||
137 | |||
138 | !if $d(PATHASM) | ||
139 | .PATH.ASM = $(PATHASM) | ||
140 | !endif | ||
141 | |||
142 | !if $d(PATHRC) | ||
143 | .PATH.RC = $(PATHRC) | ||
144 | !endif | ||
145 | # --------------------------------------------------------------------------- | ||
146 | !ifdef IDEOPTIONS | ||
147 | |||
148 | [Version Info] | ||
149 | IncludeVerInfo=0 | ||
150 | AutoIncBuild=0 | ||
151 | MajorVer=1 | ||
152 | MinorVer=0 | ||
153 | Release=0 | ||
154 | Build=0 | ||
155 | Debug=0 | ||
156 | PreRelease=0 | ||
157 | Special=0 | ||
158 | Private=0 | ||
159 | DLL=0 | ||
160 | Locale=1040 | ||
161 | CodePage=1252 | ||
162 | |||
163 | [Version Info Keys] | ||
164 | CompanyName= | ||
165 | FileDescription= | ||
166 | FileVersion=1.0.0.0 | ||
167 | InternalName= | ||
168 | LegalCopyright= | ||
169 | LegalTrademarks= | ||
170 | OriginalFilename= | ||
171 | ProductName= | ||
172 | ProductVersion=1.0.0.0 | ||
173 | Comments= | ||
174 | |||
175 | [HistoryLists\hlIncludePath] | ||
176 | Count=2 | ||
177 | Item0=$(BCB)\include;$(BCB)\include\vcl | ||
178 | Item1=$(BCB)\include | ||
179 | |||
180 | [HistoryLists\hlLibraryPath] | ||
181 | Count=1 | ||
182 | Item0=$(BCB)\lib\obj;$(BCB)\lib | ||
183 | |||
184 | [HistoryLists\hlDebugSourcePath] | ||
185 | Count=1 | ||
186 | Item0=$(BCB)\source\vcl | ||
187 | |||
188 | [Debugging] | ||
189 | DebugSourceDirs= | ||
190 | |||
191 | [Parameters] | ||
192 | RunParams= | ||
193 | HostApplication= | ||
194 | |||
195 | !endif | ||
196 | |||
197 | $(PROJECT): $(OBJFILES) $(RESDEPEN) $(DEFFILE) | ||
198 | $(BCB)\BIN\$(LINKER) @&&! | ||
199 | $(LFLAGS) $(IFLAGS) + | ||
200 | $(ALLOBJ), + | ||
201 | $(PROJECT),, + | ||
202 | $(ALLLIB), + | ||
203 | $(DEFFILE), + | ||
204 | $(ALLRES) | ||
205 | ! | ||
206 | # --------------------------------------------------------------------------- | ||
207 | .pas.hpp: | ||
208 | $(BCB)\BIN\$(DCC32) $(PFLAGS) {$< } | ||
209 | |||
210 | .pas.obj: | ||
211 | $(BCB)\BIN\$(DCC32) $(PFLAGS) {$< } | ||
212 | |||
213 | .cpp.obj: | ||
214 | $(BCB)\BIN\$(BCC32) $(CFLAG1) $(CFLAG2) $(CFLAG3) -n$(@D) {$< } | ||
215 | |||
216 | .c.obj: | ||
217 | $(BCB)\BIN\$(BCC32) $(CFLAG1) $(CFLAG2) $(CFLAG3) -n$(@D) {$< } | ||
218 | |||
219 | .asm.obj: | ||
220 | $(BCB)\BIN\$(TASM32) $(AFLAGS) $<, $@ | ||
221 | |||
222 | .rc.res: | ||
223 | $(BCB)\BIN\$(BRCC32) $(RFLAGS) -fo$@ $< | ||
224 | # --------------------------------------------------------------------------- | ||
diff --git a/contrib/delphi2/d_zlib.cpp b/contrib/delphi2/d_zlib.cpp deleted file mode 100644 index f5dea59..0000000 --- a/contrib/delphi2/d_zlib.cpp +++ /dev/null | |||
@@ -1,17 +0,0 @@ | |||
1 | #include <condefs.h> | ||
2 | #pragma hdrstop | ||
3 | //--------------------------------------------------------------------------- | ||
4 | USEUNIT("adler32.c"); | ||
5 | USEUNIT("deflate.c"); | ||
6 | USEUNIT("infblock.c"); | ||
7 | USEUNIT("infcodes.c"); | ||
8 | USEUNIT("inffast.c"); | ||
9 | USEUNIT("inflate.c"); | ||
10 | USEUNIT("inftrees.c"); | ||
11 | USEUNIT("infutil.c"); | ||
12 | USEUNIT("trees.c"); | ||
13 | //--------------------------------------------------------------------------- | ||
14 | #define Library | ||
15 | |||
16 | // To add a file to the library use the Project menu 'Add to Project'. | ||
17 | |||
diff --git a/contrib/delphi2/readme.txt b/contrib/delphi2/readme.txt deleted file mode 100644 index cbd3162..0000000 --- a/contrib/delphi2/readme.txt +++ /dev/null | |||
@@ -1,17 +0,0 @@ | |||
1 | These are files used to compile zlib under Borland C++ Builder 3. | ||
2 | |||
3 | zlib.bpg is the main project group that can be loaded in the BCB IDE and | ||
4 | loads all other *.bpr projects | ||
5 | |||
6 | zlib.bpr is a project used to create a static zlib.lib library with C calling | ||
7 | convention for functions. | ||
8 | |||
9 | zlib32.bpr creates a zlib32.dll dynamic link library with Windows standard | ||
10 | calling convention. | ||
11 | |||
12 | d_zlib.bpr creates a set of .obj files with register calling convention. | ||
13 | These files are used by zlib.pas to create a Delphi unit containing zlib. | ||
14 | The d_zlib.lib file generated isn't useful and can be deleted. | ||
15 | |||
16 | zlib.cpp, zlib32.cpp and d_zlib.cpp are used by the above projects. | ||
17 | |||
diff --git a/contrib/delphi2/zlib.bpg b/contrib/delphi2/zlib.bpg deleted file mode 100644 index b6c9acd..0000000 --- a/contrib/delphi2/zlib.bpg +++ /dev/null | |||
@@ -1,26 +0,0 @@ | |||
1 | #------------------------------------------------------------------------------ | ||
2 | VERSION = BWS.01 | ||
3 | #------------------------------------------------------------------------------ | ||
4 | !ifndef ROOT | ||
5 | ROOT = $(MAKEDIR)\.. | ||
6 | !endif | ||
7 | #------------------------------------------------------------------------------ | ||
8 | MAKE = $(ROOT)\bin\make.exe -$(MAKEFLAGS) -f$** | ||
9 | DCC = $(ROOT)\bin\dcc32.exe $** | ||
10 | BRCC = $(ROOT)\bin\brcc32.exe $** | ||
11 | #------------------------------------------------------------------------------ | ||
12 | PROJECTS = zlib zlib32 d_zlib | ||
13 | #------------------------------------------------------------------------------ | ||
14 | default: $(PROJECTS) | ||
15 | #------------------------------------------------------------------------------ | ||
16 | |||
17 | zlib: zlib.bpr | ||
18 | $(MAKE) | ||
19 | |||
20 | zlib32: zlib32.bpr | ||
21 | $(MAKE) | ||
22 | |||
23 | d_zlib: d_zlib.bpr | ||
24 | $(MAKE) | ||
25 | |||
26 | |||
diff --git a/contrib/delphi2/zlib.bpr b/contrib/delphi2/zlib.bpr deleted file mode 100644 index cf3945b..0000000 --- a/contrib/delphi2/zlib.bpr +++ /dev/null | |||
@@ -1,225 +0,0 @@ | |||
1 | # --------------------------------------------------------------------------- | ||
2 | !if !$d(BCB) | ||
3 | BCB = $(MAKEDIR)\.. | ||
4 | !endif | ||
5 | |||
6 | # --------------------------------------------------------------------------- | ||
7 | # IDE SECTION | ||
8 | # --------------------------------------------------------------------------- | ||
9 | # The following section of the project makefile is managed by the BCB IDE. | ||
10 | # It is recommended to use the IDE to change any of the values in this | ||
11 | # section. | ||
12 | # --------------------------------------------------------------------------- | ||
13 | |||
14 | VERSION = BCB.03 | ||
15 | # --------------------------------------------------------------------------- | ||
16 | PROJECT = zlib.lib | ||
17 | OBJFILES = zlib.obj adler32.obj compress.obj crc32.obj deflate.obj gzio.obj infblock.obj \ | ||
18 | infcodes.obj inffast.obj inflate.obj inftrees.obj infutil.obj trees.obj \ | ||
19 | uncompr.obj zutil.obj | ||
20 | RESFILES = | ||
21 | RESDEPEN = $(RESFILES) | ||
22 | LIBFILES = | ||
23 | LIBRARIES = VCL35.lib | ||
24 | SPARELIBS = VCL35.lib | ||
25 | DEFFILE = | ||
26 | PACKAGES = VCLX35.bpi VCL35.bpi VCLDB35.bpi VCLDBX35.bpi ibsmp35.bpi bcbsmp35.bpi \ | ||
27 | dclocx35.bpi QRPT35.bpi TEEUI35.bpi TEEDB35.bpi TEE35.bpi DSS35.bpi \ | ||
28 | NMFAST35.bpi INETDB35.bpi INET35.bpi VCLMID35.bpi | ||
29 | # --------------------------------------------------------------------------- | ||
30 | PATHCPP = .; | ||
31 | PATHASM = .; | ||
32 | PATHPAS = .; | ||
33 | PATHRC = .; | ||
34 | DEBUGLIBPATH = $(BCB)\lib\debug | ||
35 | RELEASELIBPATH = $(BCB)\lib\release | ||
36 | # --------------------------------------------------------------------------- | ||
37 | CFLAG1 = -O2 -Ve -d -k- -vi | ||
38 | CFLAG2 = -I$(BCB)\include;$(BCB)\include\vcl -H=$(BCB)\lib\vcl35.csm | ||
39 | CFLAG3 = -ff -5 | ||
40 | PFLAGS = -U;$(DEBUGLIBPATH) -I$(BCB)\include;$(BCB)\include\vcl -H -W -$I- -v -JPHN -M | ||
41 | RFLAGS = -i$(BCB)\include;$(BCB)\include\vcl | ||
42 | AFLAGS = /i$(BCB)\include /i$(BCB)\include\vcl /mx /w2 /zn | ||
43 | LFLAGS = | ||
44 | IFLAGS = -g -Gn | ||
45 | # --------------------------------------------------------------------------- | ||
46 | ALLOBJ = c0w32.obj $(OBJFILES) | ||
47 | ALLRES = $(RESFILES) | ||
48 | ALLLIB = $(LIBFILES) $(LIBRARIES) import32.lib cp32mt.lib | ||
49 | # --------------------------------------------------------------------------- | ||
50 | !!ifdef IDEOPTIONS | ||
51 | |||
52 | [Version Info] | ||
53 | IncludeVerInfo=0 | ||
54 | AutoIncBuild=0 | ||
55 | MajorVer=1 | ||
56 | MinorVer=0 | ||
57 | Release=0 | ||
58 | Build=0 | ||
59 | Debug=0 | ||
60 | PreRelease=0 | ||
61 | Special=0 | ||
62 | Private=0 | ||
63 | DLL=0 | ||
64 | Locale=1040 | ||
65 | CodePage=1252 | ||
66 | |||
67 | [Version Info Keys] | ||
68 | CompanyName= | ||
69 | FileDescription= | ||
70 | FileVersion=1.0.0.0 | ||
71 | InternalName= | ||
72 | LegalCopyright= | ||
73 | LegalTrademarks= | ||
74 | OriginalFilename= | ||
75 | ProductName= | ||
76 | ProductVersion=1.0.0.0 | ||
77 | Comments= | ||
78 | |||
79 | [HistoryLists\hlIncludePath] | ||
80 | Count=2 | ||
81 | Item0=$(BCB)\include | ||
82 | Item1=$(BCB)\include;$(BCB)\include\vcl | ||
83 | |||
84 | [HistoryLists\hlLibraryPath] | ||
85 | Count=1 | ||
86 | Item0=$(BCB)\lib\obj;$(BCB)\lib | ||
87 | |||
88 | [HistoryLists\hlDebugSourcePath] | ||
89 | Count=1 | ||
90 | Item0=$(BCB)\source\vcl | ||
91 | |||
92 | [Debugging] | ||
93 | DebugSourceDirs= | ||
94 | |||
95 | [Parameters] | ||
96 | RunParams= | ||
97 | HostApplication= | ||
98 | |||
99 | !endif | ||
100 | |||
101 | --------------------------------------------------------------------------- | ||
102 | # MAKE SECTION | ||
103 | # --------------------------------------------------------------------------- | ||
104 | # This section of the project file is not used by the BCB IDE. It is for | ||
105 | # the benefit of building from the command-line using the MAKE utility. | ||
106 | # --------------------------------------------------------------------------- | ||
107 | |||
108 | .autodepend | ||
109 | # --------------------------------------------------------------------------- | ||
110 | !if !$d(BCC32) | ||
111 | BCC32 = bcc32 | ||
112 | !endif | ||
113 | |||
114 | !if !$d(DCC32) | ||
115 | DCC32 = dcc32 | ||
116 | !endif | ||
117 | |||
118 | !if !$d(TASM32) | ||
119 | TASM32 = tasm32 | ||
120 | !endif | ||
121 | |||
122 | !if !$d(LINKER) | ||
123 | LINKER = TLib | ||
124 | !endif | ||
125 | |||
126 | !if !$d(BRCC32) | ||
127 | BRCC32 = brcc32 | ||
128 | !endif | ||
129 | # --------------------------------------------------------------------------- | ||
130 | !if $d(PATHCPP) | ||
131 | .PATH.CPP = $(PATHCPP) | ||
132 | .PATH.C = $(PATHCPP) | ||
133 | !endif | ||
134 | |||
135 | !if $d(PATHPAS) | ||
136 | .PATH.PAS = $(PATHPAS) | ||
137 | !endif | ||
138 | |||
139 | !if $d(PATHASM) | ||
140 | .PATH.ASM = $(PATHASM) | ||
141 | !endif | ||
142 | |||
143 | !if $d(PATHRC) | ||
144 | .PATH.RC = $(PATHRC) | ||
145 | !endif | ||
146 | # --------------------------------------------------------------------------- | ||
147 | !ifdef IDEOPTIONS | ||
148 | |||
149 | [Version Info] | ||
150 | IncludeVerInfo=0 | ||
151 | AutoIncBuild=0 | ||
152 | MajorVer=1 | ||
153 | MinorVer=0 | ||
154 | Release=0 | ||
155 | Build=0 | ||
156 | Debug=0 | ||
157 | PreRelease=0 | ||
158 | Special=0 | ||
159 | Private=0 | ||
160 | DLL=0 | ||
161 | Locale=1040 | ||
162 | CodePage=1252 | ||
163 | |||
164 | [Version Info Keys] | ||
165 | CompanyName= | ||
166 | FileDescription= | ||
167 | FileVersion=1.0.0.0 | ||
168 | InternalName= | ||
169 | LegalCopyright= | ||
170 | LegalTrademarks= | ||
171 | OriginalFilename= | ||
172 | ProductName= | ||
173 | ProductVersion=1.0.0.0 | ||
174 | Comments= | ||
175 | |||
176 | [HistoryLists\hlIncludePath] | ||
177 | Count=2 | ||
178 | Item0=$(BCB)\include;$(BCB)\include\vcl | ||
179 | Item1=$(BCB)\include | ||
180 | |||
181 | [HistoryLists\hlLibraryPath] | ||
182 | Count=1 | ||
183 | Item0=$(BCB)\lib\obj;$(BCB)\lib | ||
184 | |||
185 | [HistoryLists\hlDebugSourcePath] | ||
186 | Count=1 | ||
187 | Item0=$(BCB)\source\vcl | ||
188 | |||
189 | [Debugging] | ||
190 | DebugSourceDirs= | ||
191 | |||
192 | [Parameters] | ||
193 | RunParams= | ||
194 | HostApplication= | ||
195 | |||
196 | !endif | ||
197 | |||
198 | $(PROJECT): $(OBJFILES) $(RESDEPEN) $(DEFFILE) | ||
199 | $(BCB)\BIN\$(LINKER) @&&! | ||
200 | $(LFLAGS) $(IFLAGS) + | ||
201 | $(ALLOBJ), + | ||
202 | $(PROJECT),, + | ||
203 | $(ALLLIB), + | ||
204 | $(DEFFILE), + | ||
205 | $(ALLRES) | ||
206 | ! | ||
207 | # --------------------------------------------------------------------------- | ||
208 | .pas.hpp: | ||
209 | $(BCB)\BIN\$(DCC32) $(PFLAGS) {$< } | ||
210 | |||
211 | .pas.obj: | ||
212 | $(BCB)\BIN\$(DCC32) $(PFLAGS) {$< } | ||
213 | |||
214 | .cpp.obj: | ||
215 | $(BCB)\BIN\$(BCC32) $(CFLAG1) $(CFLAG2) $(CFLAG3) -n$(@D) {$< } | ||
216 | |||
217 | .c.obj: | ||
218 | $(BCB)\BIN\$(BCC32) $(CFLAG1) $(CFLAG2) $(CFLAG3) -n$(@D) {$< } | ||
219 | |||
220 | .asm.obj: | ||
221 | $(BCB)\BIN\$(TASM32) $(AFLAGS) $<, $@ | ||
222 | |||
223 | .rc.res: | ||
224 | $(BCB)\BIN\$(BRCC32) $(RFLAGS) -fo$@ $< | ||
225 | # --------------------------------------------------------------------------- | ||
diff --git a/contrib/delphi2/zlib.cpp b/contrib/delphi2/zlib.cpp deleted file mode 100644 index bf6953b..0000000 --- a/contrib/delphi2/zlib.cpp +++ /dev/null | |||
@@ -1,22 +0,0 @@ | |||
1 | #include <condefs.h> | ||
2 | #pragma hdrstop | ||
3 | //--------------------------------------------------------------------------- | ||
4 | USEUNIT("adler32.c"); | ||
5 | USEUNIT("compress.c"); | ||
6 | USEUNIT("crc32.c"); | ||
7 | USEUNIT("deflate.c"); | ||
8 | USEUNIT("gzio.c"); | ||
9 | USEUNIT("infblock.c"); | ||
10 | USEUNIT("infcodes.c"); | ||
11 | USEUNIT("inffast.c"); | ||
12 | USEUNIT("inflate.c"); | ||
13 | USEUNIT("inftrees.c"); | ||
14 | USEUNIT("infutil.c"); | ||
15 | USEUNIT("trees.c"); | ||
16 | USEUNIT("uncompr.c"); | ||
17 | USEUNIT("zutil.c"); | ||
18 | //--------------------------------------------------------------------------- | ||
19 | #define Library | ||
20 | |||
21 | // To add a file to the library use the Project menu 'Add to Project'. | ||
22 | |||
diff --git a/contrib/delphi2/zlib32.bpr b/contrib/delphi2/zlib32.bpr deleted file mode 100644 index cabcec4..0000000 --- a/contrib/delphi2/zlib32.bpr +++ /dev/null | |||
@@ -1,174 +0,0 @@ | |||
1 | # --------------------------------------------------------------------------- | ||
2 | !if !$d(BCB) | ||
3 | BCB = $(MAKEDIR)\.. | ||
4 | !endif | ||
5 | |||
6 | # --------------------------------------------------------------------------- | ||
7 | # IDE SECTION | ||
8 | # --------------------------------------------------------------------------- | ||
9 | # The following section of the project makefile is managed by the BCB IDE. | ||
10 | # It is recommended to use the IDE to change any of the values in this | ||
11 | # section. | ||
12 | # --------------------------------------------------------------------------- | ||
13 | |||
14 | VERSION = BCB.03 | ||
15 | # --------------------------------------------------------------------------- | ||
16 | PROJECT = zlib32.dll | ||
17 | OBJFILES = zlib32.obj adler32.obj compress.obj crc32.obj deflate.obj gzio.obj infblock.obj \ | ||
18 | infcodes.obj inffast.obj inflate.obj inftrees.obj infutil.obj trees.obj \ | ||
19 | uncompr.obj zutil.obj | ||
20 | RESFILES = | ||
21 | RESDEPEN = $(RESFILES) | ||
22 | LIBFILES = | ||
23 | LIBRARIES = | ||
24 | SPARELIBS = | ||
25 | DEFFILE = | ||
26 | PACKAGES = VCLX35.bpi VCL35.bpi VCLDB35.bpi VCLDBX35.bpi ibsmp35.bpi bcbsmp35.bpi \ | ||
27 | dclocx35.bpi QRPT35.bpi TEEUI35.bpi TEEDB35.bpi TEE35.bpi DSS35.bpi \ | ||
28 | NMFAST35.bpi INETDB35.bpi INET35.bpi VCLMID35.bpi | ||
29 | # --------------------------------------------------------------------------- | ||
30 | PATHCPP = .; | ||
31 | PATHASM = .; | ||
32 | PATHPAS = .; | ||
33 | PATHRC = .; | ||
34 | DEBUGLIBPATH = $(BCB)\lib\debug | ||
35 | RELEASELIBPATH = $(BCB)\lib\release | ||
36 | # --------------------------------------------------------------------------- | ||
37 | CFLAG1 = -WD -O2 -Ve -d -k- -vi -c -tWD | ||
38 | CFLAG2 = -D_NO_VCL;ZLIB_DLL -I$(BCB)\include | ||
39 | CFLAG3 = -ff -5 | ||
40 | PFLAGS = -D_NO_VCL;ZLIB_DLL -U$(BCB)\lib;$(RELEASELIBPATH) -I$(BCB)\include -$I- -v \ | ||
41 | -JPHN -M | ||
42 | RFLAGS = -D_NO_VCL;ZLIB_DLL -i$(BCB)\include | ||
43 | AFLAGS = /i$(BCB)\include /d_NO_VCL /dZLIB_DLL /mx /w2 /zn | ||
44 | LFLAGS = -L$(BCB)\lib;$(RELEASELIBPATH) -aa -Tpd -x -Gi | ||
45 | IFLAGS = -Gn -g | ||
46 | # --------------------------------------------------------------------------- | ||
47 | ALLOBJ = c0d32.obj $(OBJFILES) | ||
48 | ALLRES = $(RESFILES) | ||
49 | ALLLIB = $(LIBFILES) import32.lib cw32mt.lib | ||
50 | # --------------------------------------------------------------------------- | ||
51 | !ifdef IDEOPTIONS | ||
52 | |||
53 | [Version Info] | ||
54 | IncludeVerInfo=0 | ||
55 | AutoIncBuild=0 | ||
56 | MajorVer=1 | ||
57 | MinorVer=0 | ||
58 | Release=0 | ||
59 | Build=0 | ||
60 | Debug=0 | ||
61 | PreRelease=0 | ||
62 | Special=0 | ||
63 | Private=0 | ||
64 | DLL=1 | ||
65 | Locale=1040 | ||
66 | CodePage=1252 | ||
67 | |||
68 | [Version Info Keys] | ||
69 | CompanyName= | ||
70 | FileDescription=DLL (GUI) | ||
71 | FileVersion=1.0.0.0 | ||
72 | InternalName= | ||
73 | LegalCopyright= | ||
74 | LegalTrademarks= | ||
75 | OriginalFilename= | ||
76 | ProductName= | ||
77 | ProductVersion=1.0.0.0 | ||
78 | Comments= | ||
79 | |||
80 | [HistoryLists\hlIncludePath] | ||
81 | Count=1 | ||
82 | Item0=$(BCB)\include | ||
83 | |||
84 | [HistoryLists\hlLibraryPath] | ||
85 | Count=1 | ||
86 | Item0=$(BCB)\lib | ||
87 | |||
88 | [HistoryLists\hlConditionals] | ||
89 | Count=1 | ||
90 | Item0=_NO_VCL;ZLIB_DLL | ||
91 | |||
92 | [Debugging] | ||
93 | DebugSourceDirs= | ||
94 | |||
95 | [Parameters] | ||
96 | RunParams= | ||
97 | HostApplication= | ||
98 | |||
99 | !endif | ||
100 | |||
101 | # --------------------------------------------------------------------------- | ||
102 | # MAKE SECTION | ||
103 | # --------------------------------------------------------------------------- | ||
104 | # This section of the project file is not used by the BCB IDE. It is for | ||
105 | # the benefit of building from the command-line using the MAKE utility. | ||
106 | # --------------------------------------------------------------------------- | ||
107 | |||
108 | .autodepend | ||
109 | # --------------------------------------------------------------------------- | ||
110 | !if !$d(BCC32) | ||
111 | BCC32 = bcc32 | ||
112 | !endif | ||
113 | |||
114 | !if !$d(DCC32) | ||
115 | DCC32 = dcc32 | ||
116 | !endif | ||
117 | |||
118 | !if !$d(TASM32) | ||
119 | TASM32 = tasm32 | ||
120 | !endif | ||
121 | |||
122 | !if !$d(LINKER) | ||
123 | LINKER = ilink32 | ||
124 | !endif | ||
125 | |||
126 | !if !$d(BRCC32) | ||
127 | BRCC32 = brcc32 | ||
128 | !endif | ||
129 | # --------------------------------------------------------------------------- | ||
130 | !if $d(PATHCPP) | ||
131 | .PATH.CPP = $(PATHCPP) | ||
132 | .PATH.C = $(PATHCPP) | ||
133 | !endif | ||
134 | |||
135 | !if $d(PATHPAS) | ||
136 | .PATH.PAS = $(PATHPAS) | ||
137 | !endif | ||
138 | |||
139 | !if $d(PATHASM) | ||
140 | .PATH.ASM = $(PATHASM) | ||
141 | !endif | ||
142 | |||
143 | !if $d(PATHRC) | ||
144 | .PATH.RC = $(PATHRC) | ||
145 | !endif | ||
146 | # --------------------------------------------------------------------------- | ||
147 | $(PROJECT): $(OBJFILES) $(RESDEPEN) $(DEFFILE) | ||
148 | $(BCB)\BIN\$(LINKER) @&&! | ||
149 | $(LFLAGS) $(IFLAGS) + | ||
150 | $(ALLOBJ), + | ||
151 | $(PROJECT),, + | ||
152 | $(ALLLIB), + | ||
153 | $(DEFFILE), + | ||
154 | $(ALLRES) | ||
155 | ! | ||
156 | # --------------------------------------------------------------------------- | ||
157 | .pas.hpp: | ||
158 | $(BCB)\BIN\$(DCC32) $(PFLAGS) {$< } | ||
159 | |||
160 | .pas.obj: | ||
161 | $(BCB)\BIN\$(DCC32) $(PFLAGS) {$< } | ||
162 | |||
163 | .cpp.obj: | ||
164 | $(BCB)\BIN\$(BCC32) $(CFLAG1) $(CFLAG2) $(CFLAG3) -n$(@D) {$< } | ||
165 | |||
166 | .c.obj: | ||
167 | $(BCB)\BIN\$(BCC32) $(CFLAG1) $(CFLAG2) $(CFLAG3) -n$(@D) {$< } | ||
168 | |||
169 | .asm.obj: | ||
170 | $(BCB)\BIN\$(TASM32) $(AFLAGS) $<, $@ | ||
171 | |||
172 | .rc.res: | ||
173 | $(BCB)\BIN\$(BRCC32) $(RFLAGS) -fo$@ $< | ||
174 | # --------------------------------------------------------------------------- | ||
diff --git a/contrib/delphi2/zlib32.cpp b/contrib/delphi2/zlib32.cpp deleted file mode 100644 index 7372f6b..0000000 --- a/contrib/delphi2/zlib32.cpp +++ /dev/null | |||
@@ -1,42 +0,0 @@ | |||
1 | |||
2 | #include <windows.h> | ||
3 | #pragma hdrstop | ||
4 | #include <condefs.h> | ||
5 | |||
6 | |||
7 | //--------------------------------------------------------------------------- | ||
8 | // Important note about DLL memory management in a VCL DLL: | ||
9 | // | ||
10 | // | ||
11 | // | ||
12 | // If your DLL uses VCL and exports any functions that pass VCL String objects | ||
13 | // (or structs/classes containing nested Strings) as parameter or function | ||
14 | // results, you will need to build both your DLL project and any EXE projects | ||
15 | // that use your DLL with the dynamic RTL (the RTL DLL). This will change your | ||
16 | // DLL and its calling EXE's to use BORLNDMM.DLL as their memory manager. In | ||
17 | // these cases, the file BORLNDMM.DLL should be deployed along with your DLL | ||
18 | // and the RTL DLL (CP3240MT.DLL). To avoid the requiring BORLNDMM.DLL in | ||
19 | // these situations, pass string information using "char *" or ShortString | ||
20 | // parameters and then link with the static RTL. | ||
21 | // | ||
22 | //--------------------------------------------------------------------------- | ||
23 | USEUNIT("adler32.c"); | ||
24 | USEUNIT("compress.c"); | ||
25 | USEUNIT("crc32.c"); | ||
26 | USEUNIT("deflate.c"); | ||
27 | USEUNIT("gzio.c"); | ||
28 | USEUNIT("infblock.c"); | ||
29 | USEUNIT("infcodes.c"); | ||
30 | USEUNIT("inffast.c"); | ||
31 | USEUNIT("inflate.c"); | ||
32 | USEUNIT("inftrees.c"); | ||
33 | USEUNIT("infutil.c"); | ||
34 | USEUNIT("trees.c"); | ||
35 | USEUNIT("uncompr.c"); | ||
36 | USEUNIT("zutil.c"); | ||
37 | //--------------------------------------------------------------------------- | ||
38 | #pragma argsused | ||
39 | int WINAPI DllEntryPoint(HINSTANCE hinst, unsigned long reason, void*) | ||
40 | { | ||
41 | return 1; | ||
42 | } | ||