]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
update CodingStyle
authorMiek Gieben <miekg@NLnetLabs.nl>
Wed, 14 Sep 2005 07:09:52 +0000 (07:09 +0000)
committerMiek Gieben <miekg@NLnetLabs.nl>
Wed, 14 Sep 2005 07:09:52 +0000 (07:09 +0000)
doc/CodingStyle

index aaada3955bc032521121e1115ba9ced1116a503a..ba6cc792dbdbe8f38362a0ddf8d61da8a638c699 100644 (file)
@@ -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-<tools>
+* use exit(EXIT_FAILURE)/ exit(SUCCES)
+* 
+
+
+