Cleanup: style, spelling
This commit is contained in:
@@ -467,9 +467,9 @@ static const char *unit_find_str(const char *str, const char *substr)
|
|||||||
if (str_found) {
|
if (str_found) {
|
||||||
/* Previous char cannot be a letter. */
|
/* Previous char cannot be a letter. */
|
||||||
if (str_found == str ||
|
if (str_found == str ||
|
||||||
/* weak unicode support!, so "µm" won't match up be replaced by "m"
|
/* weak unicode support!, so "µm" won't match up be replaced by "m"
|
||||||
* since non ascii utf8 values will NEVER return true */
|
* since non ascii utf8 values will NEVER return true */
|
||||||
isalpha_or_utf8(*BLI_str_prev_char_utf8(str_found)) == 0)
|
isalpha_or_utf8(*BLI_str_prev_char_utf8(str_found)) == 0)
|
||||||
{
|
{
|
||||||
/* next char cannot be alphanum */
|
/* next char cannot be alphanum */
|
||||||
int len_name = strlen(substr);
|
int len_name = strlen(substr);
|
||||||
|
@@ -607,7 +607,7 @@ static Entry *ghash_pop(GHash *gh, GHashIterState *state)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Note: using first_bucket_index here allows us to avoid potential huge number of loops over buckets,
|
/* Note: using first_bucket_index here allows us to avoid potential huge number of loops over buckets,
|
||||||
* in case we are poping from a large ghash with few items in it... */
|
* in case we are popping from a large ghash with few items in it... */
|
||||||
curr_bucket = ghash_find_next_bucket_index(gh, curr_bucket);
|
curr_bucket = ghash_find_next_bucket_index(gh, curr_bucket);
|
||||||
|
|
||||||
Entry *e = gh->buckets[curr_bucket];
|
Entry *e = gh->buckets[curr_bucket];
|
||||||
@@ -915,12 +915,12 @@ bool BLI_ghash_haskey(GHash *gh, const void *key)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Remove a random entry from \a ghp, returning true if a key/value pair could be removed, false otherwise.
|
* Remove a random entry from \a gh, returning true if a key/value pair could be removed, false otherwise.
|
||||||
*
|
*
|
||||||
* \param r_key: The removed key.
|
* \param r_key: The removed key.
|
||||||
* \param r_val: The removed value.
|
* \param r_val: The removed value.
|
||||||
* \param state: Used for efficient removal.
|
* \param state: Used for efficient removal.
|
||||||
* \return true if there was somethjing to pop, false if ghash was already empty.
|
* \return true if there was something to pop, false if ghash was already empty.
|
||||||
*/
|
*/
|
||||||
bool BLI_ghash_pop(
|
bool BLI_ghash_pop(
|
||||||
GHash *gh, GHashIterState *state,
|
GHash *gh, GHashIterState *state,
|
||||||
@@ -1437,7 +1437,7 @@ bool BLI_gset_haskey(GSet *gs, const void *key)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Remove a random entry from \a gsp, returning true if a key could be removed, false otherwise.
|
* Remove a random entry from \a gs, returning true if a key could be removed, false otherwise.
|
||||||
*
|
*
|
||||||
* \param r_key: The removed key.
|
* \param r_key: The removed key.
|
||||||
* \param state: Used for efficient removal.
|
* \param state: Used for efficient removal.
|
||||||
|
@@ -51,7 +51,7 @@
|
|||||||
|
|
||||||
/// @brief list of all CPUDevices. for every hardware thread an instance of CPUDevice is created
|
/// @brief list of all CPUDevices. for every hardware thread an instance of CPUDevice is created
|
||||||
static vector<CPUDevice*> g_cpudevices;
|
static vector<CPUDevice*> g_cpudevices;
|
||||||
static ThreadLocal(CPUDevice*) g_thread_device;
|
static ThreadLocal(CPUDevice *) g_thread_device;
|
||||||
|
|
||||||
#if COM_CURRENT_THREADING_MODEL == COM_TM_QUEUE
|
#if COM_CURRENT_THREADING_MODEL == COM_TM_QUEUE
|
||||||
/// @brief list of all thread for every CPUDevice in cpudevices a thread exists
|
/// @brief list of all thread for every CPUDevice in cpudevices a thread exists
|
||||||
|
Reference in New Issue
Block a user