- makensis should now compile on any POSIX compliment platform (Linux, *BSD, Mac OS X, etc.)

- improved makefiles so nothing is compiled when it's already up-to-date
- Added SW_HIDE to ExecShell's accepted show modes


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3518 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2004-03-29 20:21:00 +00:00
parent 8567625b0e
commit 4c5f8a30eb
46 changed files with 2054 additions and 679 deletions

View file

@ -7,7 +7,7 @@
#ifndef _DEFLATE_H
#define _DEFLATE_H
#include "zutil.h"
#include "ZUTIL.H"
/* ===========================================================================
* Internal compression state.

View file

@ -76,7 +76,7 @@ local inflate_huft *fixed_tl;
local inflate_huft *fixed_td;
/* copy as much as possible from the sliding window to the output area */
local void inflate_flush(z)
local void ZEXPORT inflate_flush(z)
z_streamp z;
{
inflate_blocks_statef *s = &z->blocks;
@ -118,7 +118,7 @@ again:
#define BMAX 15 /* maximum bit length of any code */
local int huft_build(
local int ZEXPORT huft_build(
uIntf *b, /* code lengths in bits (all assumed <= BMAX) */
uInt n, /* number of codes (assumed <= 288) */
uInt s, /* number of simple-valued codes (0..s-1) */
@ -306,7 +306,7 @@ uInt *hn) /* working area: values in order of bit length */
return (y != 0 && g != 1) ? Z_BUF_ERROR : Z_OK;
}
int inflate(z_streamp z)
int ZEXPORT inflate(z_streamp z)
{
inflate_blocks_statef *s = &z->blocks;
inflate_codes_statef *c = &s->sub.decode.t_codes; /* codes state */

View file

@ -42,8 +42,8 @@
#ifndef _ZLIB_H
#define _ZLIB_H
#include "zconf.h"
#include "zutil.h"
#include "ZCONF.H"
#include "ZUTIL.H"
#ifdef __cplusplus
extern "C" {

View file

@ -8,13 +8,13 @@
subject to change. Applications should only use zlib.h.
*/
/* @(#) $Id: ZUTIL.H,v 1.1.1.1 2002/08/02 10:01:35 kichik Exp $ */
/* @(#) $Id: ZUTIL.H,v 1.2 2002/09/22 20:02:03 eccles Exp $ */
#ifndef _Z_UTIL_H
#define _Z_UTIL_H
#include <windows.h>
#include "zlib.h"
#include "../Platform.h"
#include "ZLIB.H"
#ifndef local
# define local static
@ -63,10 +63,11 @@ typedef unsigned long ulg;
#ifdef EXEHEAD
#include "../exehead/util.h"
#define ZALLOC(strm, items, size) my_GlobalAlloc((items)*(size))
#else // def EXEHEAD
#define ZALLOC(strm, items, size) GlobalAlloc(GPTR,(items)*(size))
#endif // def EXEHEAD
#define ZFREE(strm, addr) { if (addr) GlobalFree(addr); }
#else // def EXEHEAD
#define ZALLOC(strm, items, size) malloc((items)*(size))
#define ZFREE(strm, addr) { if (addr) free(addr); }
#endif // def EXEHEAD
#define TRY_FREE(s, p) { ZFREE(s, p); }
#define ERR_RETURN(strm,err) return (err)

View file

@ -4,7 +4,7 @@
*/
#include "deflate.h"
#include "DEFLATE.H"
const char deflate_copyright[] =
" deflate 1.1.3 Copyright 1995-1998 Jean-loup Gailly ";
@ -728,7 +728,7 @@ local void fill_window(s)
s->ins_h = s->window[s->strstart];
UPDATE_HASH(s, s->ins_h, s->window[s->strstart+1]);
#if MIN_MATCH != 3
Call UPDATE_HASH() MIN_MATCH-3 more times
# error Call UPDATE_HASH() MIN_MATCH-3 more times
#endif
}

View file

@ -4,7 +4,7 @@
*/
#include "deflate.h"
#include "DEFLATE.H"
#ifdef DEBUG
# include <ctype.h>