85 const int len = strlen(name);
91 printf(
"Failed to allocate memory for suggestion.\n");
95 memcpy(newitem->
name, name,
len + 1);
97 newitem->
prev = newitem->
next =
nullptr;
110 newitem->
prev = item;
115 item->
next = newitem;
143 if (prefix_len == 0) {
149 first = last =
nullptr;
Read Blender memory allocation and freeing.
ccl_device_inline dual1 len(const ccl_private dual< T > &a)
void * MEM_new_uninitialized(size_t len, const char *str) ATTR_WARN_UNUSED_RESULT ATTR_ALLOC_SIZE(1) ATTR_NONNULL(2)
void texttool_suggest_prefix(const char *prefix, int prefix_len)
static Text * activeToolText
SuggItem * texttool_suggest_first()
void texttool_suggest_clear()
SuggItem * texttool_suggest_last()
int char char int int BLI_strncasecmp(const char *s1, const char *s2, size_t len) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1
short texttool_text_is_active(struct Text *text)
static void txttl_free_docs()
void texttool_suggest_add(const char *name, char type)
static void txttl_free_suggest()
int * texttool_suggest_top()
SuggItem * texttool_suggest_selected()
static char * documentation
static SuggList suggestions
void texttool_suggest_select(SuggItem *sel)
void texttool_text_set_active(struct Text *text)
void texttool_text_clear()