diff --git a/intern/guardedalloc/intern/mallocn_intern.hh b/intern/guardedalloc/intern/mallocn_intern.hh index 219dfe680de..3533cc1b236 100644 --- a/intern/guardedalloc/intern/mallocn_intern.hh +++ b/intern/guardedalloc/intern/mallocn_intern.hh @@ -54,11 +54,11 @@ size_t malloc_usable_size(void *ptr); #endif #if !defined(__APPLE__) && !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__OpenBSD__) -/* Needed for `memalign` on Linux and _aligned_alloc on Windows. */ +/* Needed for `memalign` on Linux and `_aligned_alloc` on Windows. */ # include #else -/* Apple's malloc is 16-byte aligned, and does not have malloc.h, so include stdilb instead. */ +/* Apple's malloc is 16-byte aligned, and does not have `malloc.h`, so include `stdilb` instead. */ # include #endif @@ -75,7 +75,7 @@ size_t malloc_usable_size(void *ptr); #define MEMHEAD_ALIGN_PADDING(alignment) \ ((size_t)alignment - (sizeof(MemHeadAligned) % (size_t)alignment)) -/* Real pointer returned by the malloc or aligned_alloc. */ +/* Real pointer returned by the `malloc` or `aligned_alloc`. */ #define MEMHEAD_REAL_PTR(memh) ((char *)memh - MEMHEAD_ALIGN_PADDING(memh->alignment)) #include "mallocn_inline.hh" diff --git a/scripts/modules/addon_utils.py b/scripts/modules/addon_utils.py index 6098cff56d5..8bf34c2ac08 100644 --- a/scripts/modules/addon_utils.py +++ b/scripts/modules/addon_utils.py @@ -765,7 +765,7 @@ def _stale_pending_check_and_remove_once(): return # Some stale data needs to be removed, this is an exceptional case. - # Allow for slower logic that is typically accepted on startup. + # Allow for slower logic than is typically accepted on startup. from _bpy_internal.extensions.stale_file_manager import StaleFiles debug = _bpy.app.debug_python diff --git a/source/blender/editors/include/UI_interface_c.hh b/source/blender/editors/include/UI_interface_c.hh index 63446419300..27e500ecfd5 100644 --- a/source/blender/editors/include/UI_interface_c.hh +++ b/source/blender/editors/include/UI_interface_c.hh @@ -2499,8 +2499,8 @@ void uiTemplateAnyID(uiLayout *layout, /** * Action selector. * - * This is a specialisation of #uiTemplateID, hard-coded to assign Actions to the given ID. - * Such a specialisation is necessary, as the RNA property (`id.animation_data.action`) does not + * This is a specialization of #uiTemplateID, hard-coded to assign Actions to the given ID. + * Such a specialization is necessary, as the RNA property (`id.animation_data.action`) does not * exist when the ID's `adt` pointer is `nullptr`. In that case uiTemplateID will not be able * to find the RNA type of that property, which in turn it needs to determine the type of IDs to * show. diff --git a/source/blender/editors/interface/templates/interface_templates.cc b/source/blender/editors/interface/templates/interface_templates.cc index 38a294667e7..f675cd7a032 100644 --- a/source/blender/editors/interface/templates/interface_templates.cc +++ b/source/blender/editors/interface/templates/interface_templates.cc @@ -1838,7 +1838,7 @@ void uiTemplateAction(uiLayout *layout, /* Construct a pointer with the animated ID as owner, even when `adt` may be `nullptr`. * This way it is possible to use this RNA pointer to get/set `adt->action`, as that RNA property - * has a getter and setter that only need the owner ID and are null-safe regarding the `adt` + * has a `getter` & `setter` that only need the owner ID and are null-safe regarding the `adt` * itself. */ AnimData *adt = BKE_animdata_from_id(id); PointerRNA adt_ptr = RNA_pointer_create(id, &RNA_AnimData, adt); diff --git a/source/blender/makesdna/intern/dna_utils.h b/source/blender/makesdna/intern/dna_utils.h index 53c2a5a7436..f5cd01749c2 100644 --- a/source/blender/makesdna/intern/dna_utils.h +++ b/source/blender/makesdna/intern/dna_utils.h @@ -43,7 +43,7 @@ uint DNA_member_id_offset_end(const char *member_full_trimmed); /** * Copy the member id part (the bare name) of the full source member into \a member_id_dst. * - * \param member_id_dst destination char buffer, must be at least the size of \a member_src_full. + * \param member_id_dst: destination char buffer, must be at least the size of \a member_src_full. */ uint DNA_member_id_strip_copy(char *member_id_dst, const char *member_full_src); /** diff --git a/source/creator/creator.cc b/source/creator/creator.cc index ceaaabb238c..37759183dca 100644 --- a/source/creator/creator.cc +++ b/source/creator/creator.cc @@ -146,7 +146,7 @@ static void main_callback_setup() MEM_set_error_callback(callback_mem_error); } -/* free data on early exit (if Python calls 'sys.exit()' while parsing args for eg). */ +/** Free data on early exit (if Python calls `sys.exit()` while parsing args for eg). */ struct CreatorAtExitData { #ifndef WITH_PYTHON_MODULE bArgs *ba; @@ -208,7 +208,7 @@ static void callback_clg_fatal(void *fp) int main_python_enter(int argc, const char **argv); void main_python_exit(); -/* Rename the 'main' function, allowing Python initialization to call it. */ +/* Rename the `main(..)` function, allowing Python initialization to call it. */ # define main main_python_enter static void *evil_C = nullptr; @@ -457,7 +457,7 @@ int main(int argc, main_args_setup(C, ba, false); /* Begin argument parsing, ignore leaks so arguments that call #exit - * (such as '--version' & '--help') don't report leaks. */ + * (such as `--version` & `--help`) don't report leaks. */ MEM_use_memleak_detection(false); /* Parse environment handling arguments. */ @@ -553,8 +553,8 @@ int main(int argc, #endif /* Explicitly free data allocated for argument parsing: - * - 'ba' - * - 'argv' on WIN32. + * - `ba` + * - `argv` on WIN32. */ callback_main_atexit(&app_init_data); BKE_blender_atexit_unregister(callback_main_atexit, &app_init_data);