RE: [Snowball-discuss] Can't get it to work

From: Martin Porter (martin_porter@softhome.net)
Date: Fri Jan 04 2002 - 17:33:39 GMT


I got this message, not posted to snowball-discuss:

At 08:06 AM 12/27/01 -0600, Ilin, Roman wrote:
>Martin, Thank you for quick reply.
>I followed your instructions and finally got it to compile!! I had to make
>one change in utilities.c:
>
>extern byte * increase_size(byte * p, int n)
>{ int new_size = /**-CAPACITY(p) +-**/ n + 20;
>
> //added type casting to (byte * )
> //could not compile in MSVC otherwise
> byte * q = HEAD + (byte * ) malloc(HEAD + new_size + 1);
>
>
> CAPACITY(q) = new_size;
> memmove(q, p, CAPACITY(p)); lose_s(p); return q;
>}
>
>Roman.
>

This change in now in Snowball. It means that we now know Snowball compiles
and runs okay on Windows NT systems.

Martin Porter

_______________________________________________
Snowball-discuss mailing list
Snowball-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/snowball-discuss



This archive was generated by hypermail 2.1.3 : Thu Sep 20 2007 - 12:02:40 BST