added NSISCALL to functions used in the stub (EXEHEAD)

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3944 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2005-04-02 11:23:12 +00:00
parent 7798a6ab61
commit c345108cc0
4 changed files with 16 additions and 15 deletions

View file

@ -439,7 +439,7 @@ int BZ2_bzCompressEnd( bz_stream *strm )
#ifdef NSIS_COMPRESS_BZIP2_SMALLMODE #ifdef NSIS_COMPRESS_BZIP2_SMALLMODE
/*---------------------------------------------------*/ /*---------------------------------------------------*/
Int32 BZ2_indexIntoF ( Int32 indx, Int32 *cftab ) Int32 NSISCALL BZ2_indexIntoF ( Int32 indx, Int32 *cftab )
{ {
Int32 nb, na, mid; Int32 nb, na, mid;
nb = 0; nb = 0;
@ -454,7 +454,7 @@ Int32 BZ2_indexIntoF ( Int32 indx, Int32 *cftab )
static static
void unRLE_obuf_to_output_SMALL ( DState* s ) void NSISCALL unRLE_obuf_to_output_SMALL ( DState* s )
{ {
UChar k1; UChar k1;
while (True) { while (True) {
@ -493,7 +493,7 @@ void unRLE_obuf_to_output_SMALL ( DState* s )
} }
} }
#else//!small, fast #else//!small, fast
static void unRLE_obuf_to_output_FAST ( DState* s ) static void NSISCALL unRLE_obuf_to_output_FAST ( DState* s )
{ {
UChar k1; UChar k1;

View file

@ -414,9 +414,9 @@ extern Int32 BZ2_indexIntoF( Int32, Int32* );
#endif//smallmode #endif//smallmode
/*-- externs for decompression. --*/ /*-- externs for decompression. --*/
extern Int32 BZ2_decompress ( DState* ); extern Int32 NSISCALL BZ2_decompress ( DState* );
extern void BZ2_hbCreateDecodeTables ( Int32*, Int32*, Int32*, UChar*, extern void NSISCALL BZ2_hbCreateDecodeTables ( Int32*, Int32*, Int32*, UChar*,
Int32, Int32, Int32 ); Int32, Int32, Int32 );

View file

@ -67,7 +67,7 @@
{ retVal = rrr; goto save_state_and_return; }; { retVal = rrr; goto save_state_and_return; };
static int __mygetbits(int *vtmp, int nnn, DState* s) static int NSISCALL __mygetbits(int *vtmp, int nnn, DState* s)
{ {
for (;;) { for (;;) {
if (s->bsLive >= nnn) { if (s->bsLive >= nnn) {
@ -96,7 +96,7 @@ static int __mygetbits(int *vtmp, int nnn, DState* s)
#define GET_BIT(lll,uuu) \ #define GET_BIT(lll,uuu) \
GET_BITS(lll,uuu,1) GET_BITS(lll,uuu,1)
static int getmtf1(DState_save *sv,DState* s) static int NSISCALL getmtf1(DState_save *sv,DState* s)
{ {
if (sv->groupPos == 0) { if (sv->groupPos == 0) {
sv->groupNo++; sv->groupNo++;
@ -133,7 +133,7 @@ static int getmtf1(DState_save *sv,DState* s)
/*---------------------------------------------------*/ /*---------------------------------------------------*/
Int32 BZ2_decompress ( DState* s ) Int32 NSISCALL BZ2_decompress ( DState* s )
{ {
Int32 uc; Int32 uc;
Int32 retVal; Int32 retVal;

View file

@ -191,13 +191,14 @@ void BZ2_hbAssignCodes ( Int32 *code,
/*---------------------------------------------------*/ /*---------------------------------------------------*/
void BZ2_hbCreateDecodeTables ( Int32 *limit, void NSISCALL
Int32 *base, BZ2_hbCreateDecodeTables ( Int32 *limit,
Int32 *perm, Int32 *base,
UChar *length, Int32 *perm,
Int32 minLen, UChar *length,
Int32 maxLen, Int32 minLen,
Int32 alphaSize ) Int32 maxLen,
Int32 alphaSize )
{ {
Int32 pp, i, j, vec; Int32 pp, i, j, vec;