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

[PATCH]document the exception to a 'private function naming rule'

From: Kamesh Jayachandran <kamesh_at_collab.net>
Date: 2006-09-21 14:00:51 CEST

Hi All,
Find the patch and log.

With regards
Kamesh Jayachandran

[[[
Patch by: Kamesh Jayachandran <kamesh@collab.net>

Document the exceptions to the rule that functions private to a file
should not start with 'svn_' prefix.

* www/hacking.html
  (other-conventions):
   Document the exception to naming the 'private to a file only' functions.
   'svn_diff__tree_insert_token'
]]]

Index: www/hacking.html
===================================================================
--- www/hacking.html (revision 21583)
+++ www/hacking.html (working copy)
@@ -662,7 +662,14 @@
       svn_wc__ensure_directory). All declarations private to a single file
       (such as the static function get_entry_url inside
       libsvn_wc/update_editor.c) do not require any additional namespace
- decorations. Symbols that need to be used outside a library, but
+ decorations. However there could be exceptions when the local(static)
+ function name identify some operation over the
+ data type(prefixed by 'svn'), then we may inadvertently pollute the
+ namespace with local functions even though we did not intend it
+ (such as subversion/libsvn_diff/token.c's
+ static function svn_diff__tree_insert_token,
+ this function operates over svn_diff__tree struct).
+ Symbols that need to be used outside a library, but
       still are not public are put in a public header, but use the
       double underscore notation. Such symbols may be used by
       Subversion core code only, and we try to be restrictive

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Sep 21 14:00:32 2006

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.