[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: How to format longish function call with very long single parameter?

From: C. Michael Pilato <cmpilato_at_collab.net>
Date: Tue, 08 Jan 2008 10:49:32 -0500

Kamesh Jayachandran wrote:
> Hi All,
>
> Consider the following example,
>
> SVN_ERR(svn_client_diff_summarize_peg2(target_url, &peg_revision,
> &opt_revision1, &opt_revision2,
> depth,
> merge_b->ignore_ancestry,
> get_diff_summary_func_cb,
>
> merge_b->reflective_rev_affected_paths,
> merge_b->ctx,
> iterpool));
>
> In this example we may get past the 79 character limit.

There are no shortage of uses like this in the codebase:

   SVN_ERR(svn_client_diff_summarize_peg2
           (target_url, &peg_revision,
            &opt_revision1, &opt_revision2,
            depth,
            merge_b->ignore_ancestry,
            get_diff_summary_func_cb,
            merge_b->reflective_rev_affected_paths,
            merge_b->ctx,
            iterpool));

Also, you could shorted the name of the 'reflective_rev_affected_paths'
variable.

-- 
C. Michael Pilato <cmpilato_at_collab.net>
CollabNet   <>   www.collab.net   <>   Distributed Development On Demand

Received on 2008-01-08 16:49:55 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.