apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryan Bloom <...@covalent.net>
Subject Re: [PATCH] performance improvement for apr_pstrcat
Date Thu, 27 Sep 2001 02:02:58 GMT
On Wednesday 26 September 2001 06:57 pm, Brian Pane wrote:
> Ryan Bloom wrote:
>
> [...]
>
> >+    static const int MAX_SAVED_LENGTHS = 6;
> >
> >Why is this a static const istead of a #define?
>
> So that its scope will be limited to the enclosing function

But why is that a good thing?  This should be a compile time limit set with
a simple macro.

Ryan
______________________________________________________________
Ryan Bloom				rbb@apache.org
Covalent Technologies			rbb@covalent.net
--------------------------------------------------------------

Mime
View raw message