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

Re: svn commit: r9664 - in trunk/subversion: clients/cmdline include libsvn_client libsvn_subr

From: <kfogel_at_collab.net>
Date: 2004-05-10 23:01:29 CEST

Branko Čibej <brane@xbc.nu> writes:
> O.K., just as long as you're all aware that there will be a /lot/ of them.

One for each library? That doesn't seem like a lot, but maybe it's
just a matter of opinion.

Note that I'm not objecting to using a macro to generate the bodies of
the implementations. That would affect tags-searching slightly, but
not in a very bad way. It's not nearly as severe as having the names
themselves be obscured.

   #define SVN_VERSION_BODY \
       static const svn_version_t versioninfo = \
         { \
           SVN_VER_MAJOR, \
           SVN_VER_MINOR, \
           SVN_VER_MICRO, \
           SVN_VER_NUMTAG \
         }; \
       return &versioninfo

  const svn_version_t *svn_foo_version (void)
  {
    SVN_VERSION_BODY;
  }

  const svn_version_t *svn_bar_version (void)
  {
    SVN_VERSION_BODY;
  }

...or something.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue May 11 00:16:40 2004

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.