Subject: Re: PR/33392 CVS commit: src/dist/nawk
To: None <gnats-bugs@NetBSD.org>
From: Aleksey Cheusov <cheusov@tut.by>
List: netbsd-bugs
Date: 07/27/2006 00:34:28
> 1) we are here
> 918 /* add tmpset to current set of states */
> 919 ++(f->curstat);
> + 920 resize_state(f, f->curstat);
> 921 for (i = 0; i < NCHARS; i++)
> 2) 100 states was already created and all tables was properly initialized, i.e.
> f->state_count == 2.
f->state_count == 100
just a typo
> 3) f->curstat == 99
>
> 1) + 2) + 3) ===> unnecessary memory allocation in resize_state(), just a few kbytes.
> Is there any reason for this?
>
> --
> Best regards, Aleksey Cheusov.
>
--
Best regards, Aleksey Cheusov.