summaryrefslogtreecommitdiff
path: root/docs/refcount.txt
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2017-04-07 16:18:53 +0200
committerTor Andersson <tor.andersson@artifex.com>2017-04-13 13:52:16 +0200
commitc88941abc6f0fe91a41dc35dcaa1874d4de2c429 (patch)
tree51ff32d773f80219922a0458ec76f401ba21e138 /docs/refcount.txt
parent9c805cc9f934cd12e89014db8ad70e3191cdaf2d (diff)
downloadmupdf-c88941abc6f0fe91a41dc35dcaa1874d4de2c429.tar.xz
Organize docs into HTML files.
Diffstat (limited to 'docs/refcount.txt')
-rw-r--r--docs/refcount.txt17
1 files changed, 0 insertions, 17 deletions
diff --git a/docs/refcount.txt b/docs/refcount.txt
deleted file mode 100644
index e575142a..00000000
--- a/docs/refcount.txt
+++ /dev/null
@@ -1,17 +0,0 @@
-Reference counting uses special words in functions to make it easy to remember
-and follow the rules.
-
-Words that take ownership: new, find, load, open, keep.
-
-Words that release ownership: drop, free, close.
-
-If an object is returned by a function with one of the special words that take
-ownership, you are responsible for freeing it by calling "drop" or "free", or
-"close" before you return. You may pass ownership of an owned object by return
-it only if you name the function using one of the special words.
-
-Any objects returned by functions that do not have any of these special words,
-are borrowed and have a limited life time. Do not hold on to them past the
-duration of the current function, or stow them away inside structs. If you need
-to keep the object for longer than that, you have to either "keep" it or make
-your own copy.