From: Miek Gieben Date: Wed, 14 Sep 2005 07:09:52 +0000 (+0000) Subject: update CodingStyle X-Git-Tag: release-1.0.0~141 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=83efbedb6853284d345870d39e99bfcdf773b0e1;p=thirdparty%2Fldns.git update CodingStyle --- diff --git a/doc/CodingStyle b/doc/CodingStyle index aaada395..ba6cc792 100644 --- a/doc/CodingStyle +++ b/doc/CodingStyle @@ -10,6 +10,10 @@ The libdns coding style guide * use defines for (weird) constants, and masks * type 'bool', constants 'true'/'false'. Don't compare bools for equality. +* always use LDNS_MALLOC/FREE etc, or the new/free/deep_free functions +* buffer can scale, so don't alloc the max size, but the min size +* make lint (uses splint) is your friend + * Return values: - new/pointer: return pointer or NULL on error @@ -53,3 +57,10 @@ The libdns coding style guide ancount = answer section count nscount = authority section count arcount = additional section count + +ldns- +* use exit(EXIT_FAILURE)/ exit(SUCCES) +* + + +