You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Greg Stein <gs...@lyra.org> on 2001/08/13 00:25:22 UTC

Re: CVS update: MODIFIED: svnlook ...

On Sun, Aug 12, 2001 at 11:12:37PM -0000, kfogel@tigris.org wrote:
>...
>   +  SVN_ERR (svn_repos_open (&(session_baton->fs),
>   +                           session_baton->repos_path->data,
>   +                           session_baton->pool));

Note that C operator precedence allows for &session_baton->fs. The parens
are not necessary.

[ YSCMV...   (your stylistic conventions may vary) ]

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: CVS update: MODIFIED: svnlook ...

Posted by kf...@collab.net.
Greg Stein <gs...@lyra.org> writes:
> >   +  SVN_ERR (svn_repos_open (&(session_baton->fs),
> >   +                           session_baton->repos_path->data,
> >   +                           session_baton->pool));
> 
> Note that C operator precedence allows for &session_baton->fs. The parens
> are not necessary.
> 
> [ YSCMV...   (your stylistic conventions may vary) ]

Thanks for noticing.  Although I know intellectually that the
precedence works out right, I usually instinctively read "&foo" as
binding very tightly, and do a double take when I encounter
"&foo->bar".

So I eventually decided to always parenthesize it, just to simplify my
life. :-)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org