curl-library
Re: [PATCH] Added AUTH NTLM for SMTP
Date: Wed, 10 Aug 2011 19:39:37 +0200
2011/8/10 Steve Holme wrote:
> Hiya,
:-)
> No problem but could you please clarify when a function should be #defined
> as blank in a header file vs #ifdef it in a code file?
We try follow two simple rules:
1) Code which is not intended to be used in the binary due to a
compile time feature being disabled should not be compiled into the
binary. This allows size reduction for those that don't desire all
bells and whistles.
2) We attempt to keep to a minimum the number of '#if' preprocessor
statements inside source code files in order to make code more
readable and maintainable. This usually involves some extra
preprocessor magic in internal header files.
Being above the general rules, it might happen that you encounter
different situations in actual code, for many different reasons. It is
appreciated when new code tries to follow them.
-- -=[Yang]=- ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2011-08-10