Re: What is this?

New Message Reply Date view Thread view Subject view Author view

Lance R. Marrou (marrou++at++vsl.ist.ucf.edu)
Mon, 26 Feb 1996 16:05:27 -0500


On Feb 26, 1:34pm, Nuno Godinho wrote:
> Subject: What is this?
[munch]
> What is the purpose of (channel, data)?
[munch]
> static void
> CullChannel(pfChannel *channel, void *data)
> {
>
> (channel, data);
>
> pfCull();
> }
>-- End of excerpt from Nuno Godinho

It's put there to avoid a compiler warning. The function should simply read:

static void
CullChannel(pfChannel * /* channel */, void * /* data */ )
{
        pfCull();
}

or even take out the comments and look up the parameters later if you really
need them. They seem to be left in for users of Performer to more easily adapt
complex.c to their own needs.

-- 
______________________________________________________________________________
           /\    ______  /\____ ______ ______   E-mail: marrou++at++vsl.ist.ucf.edu
Visual    / /   / _   / / __  // ____// ____/               VSL: (407)658-5074
Systems  / /__ / /_/ / / / / // /___ / __/_  R. Marrou      Fax: (407)658-5059
Lab     /____//____/\\/_/ /_//_____//_____/ http://www.vsl.ist.ucf.edu/~marrou

New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:52:27 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.