Jim Park's Unicode NSIS merging - Step 1 : switch to TCHARs where relevant.
Compiler output is identical before & after this step git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/branches/wizou@6036 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
4e48722b63
commit
752d7d239a
209 changed files with 9698 additions and 7658 deletions
|
@ -9,6 +9,10 @@
|
|||
*
|
||||
* This software is provided 'as-is', without any express or implied
|
||||
* warranty.
|
||||
*
|
||||
* Unicode support by Jim Park -- 08/27/2007
|
||||
* All messages and true strings turned into TCHARs for when we
|
||||
* create viewable messages.
|
||||
*/
|
||||
|
||||
#include "../Platform.h"
|
||||
|
@ -367,14 +371,14 @@ int ZEXPORT inflate(z_streamp z)
|
|||
switch (t >> 1)
|
||||
{
|
||||
case 0: /* stored */
|
||||
Tracev((stderr, "inflate: stored block%s\n",
|
||||
LAST ? " (last)" : ""));
|
||||
Tracev((stderr, _T("inflate: stored block%s\n"),
|
||||
LAST ? _T(" (last)") : _T("")));
|
||||
DUMPBITS(k&7)
|
||||
s->mode = LENS; /* get length of stored block */
|
||||
break;
|
||||
case 1: /* fixed */
|
||||
Tracev((stderr, "inflate: fixed codes block%s\n",
|
||||
LAST ? " (last)" : ""));
|
||||
Tracev((stderr, _T("inflate: fixed codes block%s\n"),
|
||||
LAST ? _T(" (last)") : _T("")));
|
||||
{
|
||||
if (!fixed_built)
|
||||
{
|
||||
|
@ -414,8 +418,8 @@ int ZEXPORT inflate(z_streamp z)
|
|||
s->mode = CODES_START;
|
||||
break;
|
||||
case 2: /* dynamic */
|
||||
Tracev((stderr, "inflate: dynamic codes block%s\n",
|
||||
LAST ? " (last)" : ""));
|
||||
Tracev((stderr, _T("inflate: dynamic codes block%s\n"),
|
||||
LAST ? _T(" (last)") : _T("")));
|
||||
s->mode = TABLE;
|
||||
break;
|
||||
case 3: /* illegal */
|
||||
|
@ -427,7 +431,7 @@ int ZEXPORT inflate(z_streamp z)
|
|||
NEEDBITS(16)
|
||||
s->sub.left = (uInt)b & 0xffff;
|
||||
b = k = 0; /* dump bits */
|
||||
Tracev((stderr, "inflate: stored length %u\n", s->sub.left));
|
||||
Tracev((stderr, _T("inflate: stored length %u\n"), s->sub.left));
|
||||
s->mode = s->sub.left ? STORED : s->last;
|
||||
break;
|
||||
case STORED:
|
||||
|
@ -457,7 +461,7 @@ int ZEXPORT inflate(z_streamp z)
|
|||
//t = 258 + (t & 0x1f) + ((t >> 5) & 0x1f);
|
||||
DUMPBITS(14)
|
||||
s->sub.trees.index = 0;
|
||||
Tracev((stderr, "inflate: table sizes ok\n"));
|
||||
Tracev((stderr, _T("inflate: table sizes ok\n")));
|
||||
s->mode = BTREE;
|
||||
case BTREE:
|
||||
while (s->sub.trees.index < 4 + (s->sub.trees.table >> 10))
|
||||
|
@ -483,7 +487,7 @@ int ZEXPORT inflate(z_streamp z)
|
|||
}
|
||||
|
||||
s->sub.trees.index = 0;
|
||||
Tracev((stderr, "inflate: bits tree ok\n"));
|
||||
Tracev((stderr, _T("inflate: bits tree ok\n")));
|
||||
s->mode = DTREE;
|
||||
case DTREE:
|
||||
while (t = s->sub.trees.table,
|
||||
|
@ -558,7 +562,7 @@ int ZEXPORT inflate(z_streamp z)
|
|||
s->mode = BAD;
|
||||
LEAVE(Z_DATA_ERROR);
|
||||
}
|
||||
Tracev((stderr, "inflate: trees ok\n"));
|
||||
Tracev((stderr, _T("inflate: trees ok\n")));
|
||||
|
||||
//s->sub.decode.t_codes.mode = CODES_START;
|
||||
s->sub.decode.t_codes.lbits = (Byte)bl;
|
||||
|
@ -682,7 +686,7 @@ int ZEXPORT inflate(z_streamp z)
|
|||
LEAVE(Z_OK)
|
||||
if (s->mode == CODES_WASH)
|
||||
{
|
||||
Tracev((stderr, "inflate: codes end, %lu total out\n",
|
||||
Tracev((stderr, _T("inflate: codes end, %lu total out\n"),
|
||||
z->total_out + (q >= s->read ? q - s->read :
|
||||
(s->end - s->read) + (q - s->window))));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue