On 3/17/2013 13:20, Bart van Ingen Schenau wrote:
> On Fri, 15 Mar 2013 13:01:19 +0000, Ike Naar wrote:
>
>> On 2013-03-15, Bart van Ingen Schenau <>
>> wrote:
>>> On Fri, 15 Mar 2013 03:33:02 -0400, Shao Miller wrote:
>>>> #define Stringify_(x) # x
>>>> #define Stringify(x) Stringify_(x)
>>> #define CvMaxStringLength 127
>>>> #define CvBufSize 128
>>> #define CbBufSize CvMaxStringLength+1
>>
>> This definition may lead to an unpleasant surprise when it is used in an
>> expression such as
>>
>> CbBufSize * 2
>>
>> A safer definition would be
>>
>> #define CbBufSize (CvMaxStringLength+1)
>
> Oops.
> What was it again about spelling flames that must contain a spelling
> error themselves?
>
Heh, whereas I meant "Constant Value", he might've been thinking of the
Windows-common "Count of Bytes" prefix.
--
- Shao Miller
--
"Thank you for the kind words; those are the kind of words I like to hear.
Cheerily," -- Richard Harter
|