Cleanup: spelling in comments
This commit is contained in:
@@ -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 <malloc.h>
|
||||
#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 <stdlib.h>
|
||||
#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"
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
/**
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user