Age | Commit message (Collapse) | Author | Files | Lines |
|
The ring accessors are pure, not const, because they read pointed-to data (the
ring) that may change between invocations. The BTree iter comparison is const
because it only compares the values passed as parameters (although they contain
pointers, they aren't dereferenced).
|
|
I can never decide between these two patterns for polymorphic objects in C, but
this one seems more appropriate here since it's more conducive to inheritance.
|
|
|
|
|
|
This allows clang to issue warnings at compile time when null is passed to a
non-null parameter. For public entry points, also add assertions to catch such
issues when the compiler does not support this.
|
|
|
|
|
|
|
|
|