argument lists in functions
John Russell
drjimmy42 at yahoo.com
Mon Mar 15 19:57:45 EST 2004
Can someone who knows some more about the OB code than I do answer this
question. What is the point of having argment lists like this:
void place_client(ObClient *client, gint *x, gint *y)
where *x and *y are merely pointers to client->area.x and
client->area.y. In functions such as this, x and y are modified inside
the functions to modify the client position or whatever it is the
function is meant to do.
Why not _just_ pass in a pointer to the client? Why not say
void place_client(ObClient *client)
{
and then directly modify the position numbers there.
This function is just one example of this and I was curious to know the
motivation behind this. Thanks.
John
More information about the openbox
mailing list