Re: [PATCH] Get-Locations TNG Rev. 26 - Using the New Specification
From: Greg Hudson <ghudson_at_MIT.EDU>
Date: 2004-04-29 16:31:31 CEST
I reviewed only the ra_svn parts; however, while looking for them, I
+static int compare_revnum_t (const void *p_a, const void *p_b)
We use the _t suffix for type names, not function names. Call this
+ if (a < b)
Twelve lines where one would do:
return (a < b) ? 1 : (a > b) ? -1 : 0;
Moving onto the ra_svn client:
+ /* Transmit the parameters over the line
One of my style complaints was using two lines for a one-line comment,
/* Transmit the parameters over the line. */
Better yet, omit the "over the line" since it's imprecise (what's a
+ /* TODO: should it be svn_ra_svn_write_number()
As previously discussed, no, it shouldn't be, so this comment can go.
+ if (item->kind == SVN_RA_SVN_WORD &&
if (item->kind == SVN_RA_SVN_WORD && strcmp(item->u.word, "done") == 0)
+ apr_hash_set(fs_locations, apr_pmemdup(pool,
You do not need to cast parameters to const void *. This appears to
In serve.c:
+ return svn_error_create(SVN_ERR_RA_SVN_MALFORMED_DATA, NULL,
Do not exceed 80 columns. You can split a C string into two parts
+ err = svn_fs_trace_node_locations(b->fs,
err = svn_fs_trace_node_locations(b->fs, &fs_locations, abs_path,
+ for(iter = apr_hash_first(pool, fs_locations) ;
for (iter = apr_hash_first(pool, fs_locations); iter;
(Note particularly the correction of "iter = iter = ...", but also the
+ {
Please move these declarations to the top of the function. (Another
---------------------------------------------------------------------
|
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.