From 92900198b45475e78a9b108dc4e6b2a8e5852a52 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 21 Oct 2016 12:17:06 +0200 Subject: Update docs/naming.txt --- docs/naming.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/naming.txt b/docs/naming.txt index 6c641c33..03ab3e4c 100644 --- a/docs/naming.txt +++ b/docs/naming.txt @@ -7,6 +7,8 @@ Functions should be named according to one of the following schemes: get_noun_attribute -- when the 'noun_attribute' name conflicts with a type set_noun_attribute + noun_from_noun -- convert from one type to another (avoid noun_to_noun) + Prefixes are mandatory for exported functions, macros, enums, globals and types. fz for common code @@ -20,7 +22,7 @@ These words are reserved for reference counting schemes: new, find, load, open, keep -- return objects that you are responsible for freeing. - drop, free, close -- relinquish ownership of the object passed in. + drop -- relinquish ownership of the object passed in. When searching for an object or value, the name used depends on whether returning the value is passing ownership: -- cgit v1.2.3