diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-10-18 03:16:24 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-10-18 04:13:10 +0300 |
commit | c5a13ffcb4b98bbd46dca7637051a966d18cd46f (patch) | |
tree | 95979c1e9028ced7f1a26c0087e686ac405575c7 /source/blender/blenlib | |
parent | 452c78757f44fe456dd10ee16bc509ab5455526b (diff) |
Cleanup: spelling in comments
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r-- | source/blender/blenlib/BLI_filereader.h | 10 | ||||
-rw-r--r-- | source/blender/blenlib/BLI_math_geom.h | 4 | ||||
-rw-r--r-- | source/blender/blenlib/intern/fileops.c | 2 | ||||
-rw-r--r-- | source/blender/blenlib/intern/mesh_intersect.cc | 2 |
4 files changed, 9 insertions, 9 deletions
diff --git a/source/blender/blenlib/BLI_filereader.h b/source/blender/blenlib/BLI_filereader.h index 8d1fa3d1596..da223cddf40 100644 --- a/source/blender/blenlib/BLI_filereader.h +++ b/source/blender/blenlib/BLI_filereader.h @@ -59,9 +59,9 @@ typedef struct FileReader { /* Functions for opening the various types of FileReader. * They either succeed and return a valid FileReader, or fail and return NULL. * - * If a FileReader is created, it has to be cleaned up and freed by calling - * its close() function unless another FileReader has taken ownership - for example, - * Zstd and Gzip take over the base FileReader and will clean it up when their clean() is called. + * If a FileReader is created, it has to be cleaned up and freed by calling its close() + * function unless another FileReader has taken ownership - for example, `Zstd` & `Gzip` + * take over the base FileReader and will clean it up when their clean() is called. */ /* Create FileReader from raw file descriptor. */ @@ -71,9 +71,9 @@ FileReader *BLI_filereader_new_mmap(int filedes) ATTR_WARN_UNUSED_RESULT; /* Create FileReader from a region of memory. */ FileReader *BLI_filereader_new_memory(const void *data, size_t len) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(); -/* Create FileReader from applying Zstd decompression on an underlying file. */ +/* Create FileReader from applying `Zstd` decompression on an underlying file. */ FileReader *BLI_filereader_new_zstd(FileReader *base) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(); -/* Create FileReader from applying Gzip decompression on an underlying file. */ +/* Create FileReader from applying `Gzip` decompression on an underlying file. */ FileReader *BLI_filereader_new_gzip(FileReader *base) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(); #ifdef __cplusplus diff --git a/source/blender/blenlib/BLI_math_geom.h b/source/blender/blenlib/BLI_math_geom.h index fa9a30467ac..be10b302144 100644 --- a/source/blender/blenlib/BLI_math_geom.h +++ b/source/blender/blenlib/BLI_math_geom.h @@ -438,9 +438,9 @@ bool isect_tri_tri_v2(const float p1[2], const float q2[2], const float r2[2]); -/* water-tight raycast (requires pre-calculation) */ +/* water-tight ray-cast (requires pre-calculation). */ struct IsectRayPrecalc { - /* Maximal dimension kz, and orthogonal dimensions. */ + /* Maximal dimension `kz`, and orthogonal dimensions. */ int kx, ky, kz; /* Shear constants. */ diff --git a/source/blender/blenlib/intern/fileops.c b/source/blender/blenlib/intern/fileops.c index 7019acfbbdc..c52feb097d2 100644 --- a/source/blender/blenlib/intern/fileops.c +++ b/source/blender/blenlib/intern/fileops.c @@ -89,7 +89,7 @@ size_t BLI_file_zstd_from_mem_at_pos( total_written += output.pos; } - /* Finalize the Zstd frame. */ + /* Finalize the `Zstd` frame. */ size_t ret = 1; while (ret != 0) { ZSTD_outBuffer output = {out_buf, out_len, 0}; diff --git a/source/blender/blenlib/intern/mesh_intersect.cc b/source/blender/blenlib/intern/mesh_intersect.cc index 8276890eec1..feb7b64f766 100644 --- a/source/blender/blenlib/intern/mesh_intersect.cc +++ b/source/blender/blenlib/intern/mesh_intersect.cc @@ -1162,7 +1162,7 @@ static int filter_plane_side(const double3 &p, } /* - * interesect_tri_tri and helper functions. + * #intersect_tri_tri and helper functions. * This code uses the algorithm of Guigue and Devillers, as described * in "Faster Triangle-Triangle Intersection Tests". * Adapted from code by Eric Haines: |