Am Dienstag, 19. September 2006 01:58 schrieb Christian Ohm:
> On Tuesday, 19 September 2006 at  1:11, Dennis Schridde wrote:
> > -BOOL PopRetStack(UDWORD  *psVal)
> > +BOOL PopRetStack(RETSTACK_TYPE *psVal)
> >  {
> > -   if(retStackPos < 0)
> > +   if (retStackPos < 0)
> >     {
> >             debug( LOG_ERROR, "PopRetStack: retStackPos < 0");
> >             return FALSE;
> >     }
> >
> > -   *psVal = retStack[retStackPos];
> > +   *psVal = retStack[retStackPos--];
>
> The only thing I'm not sure about is this. Is the whole struct copied in
> this case? (I'm too lazy to look it up right now.)
My C book says that this is correct.

--Dennis

Attachment: pgpS22Dppxo2f.pgp
Description: PGP signature

_______________________________________________
Warzone-dev mailing list
[email protected]
https://mail.gna.org/listinfo/warzone-dev

Reply via email to