Ian Collins wrote:
> Roland Mainz wrote:
>
>   
>> Ian Collins wrote:
>>
>>     
>>> Consider something like
>>>
>>> char buffer[max_consumer_size+string_length];
>>>
>>> Give the constant for 140 a descriptive and and save yourself a comment.
>>>    
>>>
>>>       
>> Maybe a #define is better here since some compilers add an extra symbol
>> which is IMO not worth the space in the resulting binary...
>>
>>  
>>
>>     
> Unlikely unless you take the address of the constant. 
>
> Even if it did, I'm sure an extra 4 or 8 bytes won't break the bank. 
> (Almost) anything's better than a #define!
>   

Plus it can then be made patchable, which you can't do (as easily) with
a #define.

    -- Garrett

> Ian
>
> _______________________________________________
> opensolaris-code mailing list
> [email protected]
> http://mail.opensolaris.org/mailman/listinfo/opensolaris-code
>   


-- 
Garrett D'Amore, Principal Software Engineer
Tadpole Computer / Computing Technologies Division,
General Dynamics C4 Systems
http://www.tadpolecomputer.com/
Phone: 951 325-2134  Fax: 951 325-2191

_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to