Fix typos
This commit is contained in:
@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.11)
|
|||||||
|
|
||||||
set(REFCOUNT_USE_THREADS
|
set(REFCOUNT_USE_THREADS
|
||||||
ON
|
ON
|
||||||
CACHE BOOL "Weather or not RefCount should be thread aware.")
|
CACHE BOOL "Whether or not RefCount should be thread aware.")
|
||||||
|
|
||||||
if(REFCOUNT_USE_THREADS)
|
if(REFCOUNT_USE_THREADS)
|
||||||
message("Building with thread support, setting CMAKE_C_STANDARD to 11.")
|
message("Building with thread support, setting CMAKE_C_STANDARD to 11.")
|
||||||
|
|||||||
@ -401,7 +401,7 @@ static inline void *refcount_ref_weakref(RefcountWeakref *wr) {
|
|||||||
* Same as #refcount_context_weakref_is_valid, but operates on the global
|
* Same as #refcount_context_weakref_is_valid, but operates on the global
|
||||||
* context.
|
* context.
|
||||||
* @param wr The weak reference
|
* @param wr The weak reference
|
||||||
* @return Weather the reference is still valid
|
* @return Whether the reference is still valid
|
||||||
*/
|
*/
|
||||||
static inline bool refcount_weakref_is_valid(RefcountWeakref *wr) {
|
static inline bool refcount_weakref_is_valid(RefcountWeakref *wr) {
|
||||||
return refcount_context_weakref_is_valid(refcount_default_context, wr);
|
return refcount_context_weakref_is_valid(refcount_default_context, wr);
|
||||||
|
|||||||
@ -149,7 +149,7 @@ static bool init_obj_weakref(const RefcountContext *ctx, void *obj) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @struct DestructorEntry
|
* @struct DestructorEntry
|
||||||
* Hash table entry used to hold descructor callback information.
|
* Hash table entry used to hold destructor callback information.
|
||||||
*/
|
*/
|
||||||
struct DestructorEntry {
|
struct DestructorEntry {
|
||||||
refcount_destructor_callback_t callback; //!< The callback itself.
|
refcount_destructor_callback_t callback; //!< The callback itself.
|
||||||
@ -299,9 +299,9 @@ static bool call_object_destructors_foreach_callback(void *key, void *entry_raw,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Call descructors for an object.
|
* Call destructors for an object.
|
||||||
* @param ctx The #RefcountContext
|
* @param ctx The #RefcountContext
|
||||||
* @param obj The object to call descructors for
|
* @param obj The object to call destructors for
|
||||||
*/
|
*/
|
||||||
static void call_object_destructors(const RefcountContext *ctx, void *obj) {
|
static void call_object_destructors(const RefcountContext *ctx, void *obj) {
|
||||||
ht_foreach(ENTRY->destructors, call_object_destructors_foreach_callback,
|
ht_foreach(ENTRY->destructors, call_object_destructors_foreach_callback,
|
||||||
@ -549,7 +549,7 @@ static const HTTableFunctions ROOT_COUNTS_FNS = {
|
|||||||
struct ContextAndRootPtr {
|
struct ContextAndRootPtr {
|
||||||
RefcountContext *ctx; //!< The context.
|
RefcountContext *ctx; //!< The context.
|
||||||
RefcountList **root_ptr; //!< Double pointer to the root.
|
RefcountList **root_ptr; //!< Double pointer to the root.
|
||||||
bool did_update; //!< Weather or not *root_ptr was changed.
|
bool did_update; //!< Whether or not *root_ptr was changed.
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -758,7 +758,7 @@ void refcount_context_destroy_weakref(const RefcountContext *ctx,
|
|||||||
* Return weather the object referenced by a weak reference still exists.
|
* Return weather the object referenced by a weak reference still exists.
|
||||||
* @param ctx The #RefcountContext
|
* @param ctx The #RefcountContext
|
||||||
* @param wr The weak reference
|
* @param wr The weak reference
|
||||||
* @return Weather the reference is still valid
|
* @return Whether the reference is still valid
|
||||||
*/
|
*/
|
||||||
bool refcount_context_weakref_is_valid(const RefcountContext *ctx,
|
bool refcount_context_weakref_is_valid(const RefcountContext *ctx,
|
||||||
RefcountWeakref *wr) {
|
RefcountWeakref *wr) {
|
||||||
|
|||||||
Reference in New Issue
Block a user