"build/CMakeFiles/Experimental.dir/progress.make" did not exist on "395d2ce606314a6729939084e5f492f37cd2ff13"
Commit 1e6172d4 authored by Bruce Merry's avatar Bruce Merry Committed by Jason Rhinelander
Browse files

Fix some minor mistakes in comments on struct instance

parent 64a99b92
...@@ -388,7 +388,7 @@ struct instance { ...@@ -388,7 +388,7 @@ struct instance {
uint8_t *status; uint8_t *status;
} nonsimple; } nonsimple;
}; };
/// Weak references (needed for keep alive): /// Weak references
PyObject *weakrefs; PyObject *weakrefs;
/// If true, the pointer is owned which means we're free to manage it with a holder. /// If true, the pointer is owned which means we're free to manage it with a holder.
bool owned : 1; bool owned : 1;
...@@ -405,10 +405,10 @@ struct instance { ...@@ -405,10 +405,10 @@ struct instance {
* (which is typically the size of two pointers), or when multiple inheritance is used on the * (which is typically the size of two pointers), or when multiple inheritance is used on the
* python side. Non-simple layout allocates the required amount of memory to have multiple * python side. Non-simple layout allocates the required amount of memory to have multiple
* bound C++ classes as parents. Under this layout, `nonsimple.values_and_holders` is set to a * bound C++ classes as parents. Under this layout, `nonsimple.values_and_holders` is set to a
* pointer to allocated space of the required space to hold a a sequence of value pointers and * pointer to allocated space of the required space to hold a sequence of value pointers and
* holders followed `status`, a set of bit flags (1 byte each), i.e. * holders followed `status`, a set of bit flags (1 byte each), i.e.
* [val1*][holder1][val2*][holder2]...[bb...] where each [block] is rounded up to a multiple of * [val1*][holder1][val2*][holder2]...[bb...] where each [block] is rounded up to a multiple of
* `sizeof(void *)`. `nonsimple.holder_constructed` is, for convenience, a pointer to the * `sizeof(void *)`. `nonsimple.status` is, for convenience, a pointer to the
* beginning of the [bb...] block (but not independently allocated). * beginning of the [bb...] block (but not independently allocated).
* *
* Status bits indicate whether the associated holder is constructed (& * Status bits indicate whether the associated holder is constructed (&
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment