diff options
author | Campbell Barton <ideasman42@gmail.com> | 2022-01-06 05:54:52 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2022-01-06 05:54:52 +0300 |
commit | 499fec6f79a26c9c9d2d61b90bda2e4cec424f81 (patch) | |
tree | 828271035f950a504f11a8bdb3454516835d0800 /source/blender/blenlib/intern | |
parent | aa363ec2ae9382c052f024284dcdb77ac495c177 (diff) |
Cleanup: spelling in comments
Diffstat (limited to 'source/blender/blenlib/intern')
-rw-r--r-- | source/blender/blenlib/intern/array_store.c | 2 | ||||
-rw-r--r-- | source/blender/blenlib/intern/math_color_inline.c | 2 | ||||
-rw-r--r-- | source/blender/blenlib/intern/path_util.c | 10 | ||||
-rw-r--r-- | source/blender/blenlib/intern/polyfill_2d.c | 2 | ||||
-rw-r--r-- | source/blender/blenlib/intern/scanfill.c | 4 |
5 files changed, 11 insertions, 9 deletions
diff --git a/source/blender/blenlib/intern/array_store.c b/source/blender/blenlib/intern/array_store.c index 08696c9168d..825682736e8 100644 --- a/source/blender/blenlib/intern/array_store.c +++ b/source/blender/blenlib/intern/array_store.c @@ -439,7 +439,7 @@ static void bchunk_list_ensure_min_size_last(const BArrayInfo *info, if (data_merge_len <= info->chunk_byte_size_max) { /* we have enough space to merge */ - /* remove last from linklist */ + /* Remove last from the linked-list. */ BLI_assert(chunk_list->chunk_refs.last != chunk_list->chunk_refs.first); cref->prev->next = NULL; chunk_list->chunk_refs.last = cref->prev; diff --git a/source/blender/blenlib/intern/math_color_inline.c b/source/blender/blenlib/intern/math_color_inline.c index febe1568176..a7f229e7147 100644 --- a/source/blender/blenlib/intern/math_color_inline.c +++ b/source/blender/blenlib/intern/math_color_inline.c @@ -261,7 +261,7 @@ MINLINE void cpack_cpy_3ub(unsigned char r_col[3], const unsigned int pack) } /* -------------------------------------------------------------------- */ -/** \name RGB/Grayscale Functions +/** \name RGB/Gray-Scale Functions * * \warning * These are only an approximation, diff --git a/source/blender/blenlib/intern/path_util.c b/source/blender/blenlib/intern/path_util.c index 958480cc616..56ff71fb670 100644 --- a/source/blender/blenlib/intern/path_util.c +++ b/source/blender/blenlib/intern/path_util.c @@ -957,15 +957,15 @@ bool BLI_path_abs(char *path, const char *basepath) #endif - /* push slashes into unix mode - strings entering this part are + /* NOTE(@jesterKing): push slashes into unix mode - strings entering this part are * potentially messed up: having both back- and forward slashes. * Here we push into one conform direction, and at the end we * push them into the system specific dir. This ensures uniformity - * of paths and solving some problems (and prevent potential future - * ones) -jesterKing. - * For UNC paths the first characters containing the UNC prefix + * of paths and solving some problems (and prevent potential future ones). + * + * NOTE(@elubie): For UNC paths the first characters containing the UNC prefix * shouldn't be switched as we need to distinguish them from - * paths relative to the .blend file -elubie */ + * paths relative to the `.blend` file. */ BLI_str_replace_char(tmp + BLI_path_unc_prefix_len(tmp), '\\', '/'); /* Paths starting with `//` will get the blend file as their base, diff --git a/source/blender/blenlib/intern/polyfill_2d.c b/source/blender/blenlib/intern/polyfill_2d.c index 2a02abf147a..0ade306bcb9 100644 --- a/source/blender/blenlib/intern/polyfill_2d.c +++ b/source/blender/blenlib/intern/polyfill_2d.c @@ -147,7 +147,7 @@ typedef struct PolyFill { #endif } PolyFill; -/* circular linklist */ +/** Circular double linked-list. */ typedef struct PolyIndex { struct PolyIndex *next, *prev; uint index; diff --git a/source/blender/blenlib/intern/scanfill.c b/source/blender/blenlib/intern/scanfill.c index 26ecc7552dc..9fe82069d2c 100644 --- a/source/blender/blenlib/intern/scanfill.c +++ b/source/blender/blenlib/intern/scanfill.c @@ -357,8 +357,10 @@ static ScanFillVertLink *addedgetoscanlist(ScanFillVertLink *scdata, return NULL; } +/** + * Return true if `eve` inside the bound-box of `eed`. + */ static bool boundinsideEV(ScanFillEdge *eed, ScanFillVert *eve) -/* is eve inside boundbox eed */ { float minx, maxx, miny, maxy; |