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

RE: svn commit: rev 3103 - trunk/subversion/include trunk/subversion/libsvn_wc trunk/subversion/libsvn_subr trunk/subversion/mod_dav_svn trunk/subversion/clients/cmdline

From: Greg Hudson <ghudson_at_MIT.EDU>
Date: 2002-08-31 19:30:46 CEST

On Fri, 2002-08-30 at 04:34, Sander Striker wrote:
> Why not use strncmp?

Since the last answer fizzled, I'll try: because we have too much
cycle-counting mentality in this project.

Admittedly, strncmp() has the problem that you can get bugs like:

  strncmp(mime_type[0], "text/", 6)

which are hard to see. (There are disciplines which prevent such bugs,
but they're ugly as hell.) I've never found it to be a real problem,
though.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Aug 31 19:36:35 2002

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.