remove stringify macro from alloc's
This commit is contained in:
@@ -213,7 +213,7 @@ MaskRasterHandle *BKE_maskrasterize_handle_new(void)
|
||||
{
|
||||
MaskRasterHandle *mr_handle;
|
||||
|
||||
mr_handle = MEM_callocN(sizeof(MaskRasterHandle), STRINGIFY(MaskRasterHandle));
|
||||
mr_handle = MEM_callocN(sizeof(MaskRasterHandle), "MaskRasterHandle");
|
||||
|
||||
return mr_handle;
|
||||
}
|
||||
@@ -569,7 +569,7 @@ void BKE_maskrasterize_handle_init(MaskRasterHandle *mr_handle, struct Mask *mas
|
||||
unsigned int masklay_index;
|
||||
|
||||
mr_handle->layers_tot = BLI_countlist(&mask->masklayers);
|
||||
mr_handle->layers = MEM_mallocN(sizeof(MaskRasterLayer) * mr_handle->layers_tot, STRINGIFY(MaskRasterLayer));
|
||||
mr_handle->layers = MEM_mallocN(sizeof(MaskRasterLayer) * mr_handle->layers_tot, "MaskRasterLayer");
|
||||
BLI_rctf_init_minmax(&mr_handle->bounds);
|
||||
|
||||
for (masklay = mask->masklayers.first, masklay_index = 0; masklay; masklay = masklay->next, masklay_index++) {
|
||||
|
@@ -1634,7 +1634,7 @@ void BKE_node_clipboard_add_node(bNode *node)
|
||||
{
|
||||
#ifdef USE_NODE_CB_VALIDATE
|
||||
/* add extra info */
|
||||
bNodeClipboardExtraInfo *node_info = MEM_mallocN(sizeof(bNodeClipboardExtraInfo), STRINGIFY(bNodeClipboardExtraInfo));
|
||||
bNodeClipboardExtraInfo *node_info = MEM_mallocN(sizeof(bNodeClipboardExtraInfo), "bNodeClipboardExtraInfo");
|
||||
|
||||
node_info->id = node->id;
|
||||
if (node->id) {
|
||||
|
@@ -8979,7 +8979,7 @@ static void sort_bhead_old_map(FileData *fd)
|
||||
fd->tot_bheadmap = tot;
|
||||
if (tot == 0) return;
|
||||
|
||||
bhs = fd->bheadmap = MEM_mallocN(tot*sizeof(struct BHeadSort), STRINGIFY(BHeadSort));
|
||||
bhs = fd->bheadmap = MEM_mallocN(tot * sizeof(struct BHeadSort), "BHeadSort");
|
||||
|
||||
for (bhead = blo_firstbhead(fd); bhead; bhead = blo_nextbhead(fd, bhead), bhs++) {
|
||||
bhs->bhead = bhead;
|
||||
|
@@ -47,7 +47,7 @@ static bNodeSocketTemplate cmp_node_mask_out[] = {
|
||||
|
||||
static void node_composit_init_mask(bNodeTree *UNUSED(ntree), bNode *node, bNodeTemplate *UNUSED(ntemp))
|
||||
{
|
||||
NodeMask *data = MEM_callocN(sizeof(NodeMask), STRINGIFY(NodeMask));
|
||||
NodeMask *data = MEM_callocN(sizeof(NodeMask), "NodeMask");
|
||||
data->size_x = data->size_y = 256;
|
||||
node->storage = data;
|
||||
|
||||
|
@@ -818,7 +818,7 @@ static void shade_tface(BakeShade *bs)
|
||||
BLI_lock_thread(LOCK_CUSTOM1);
|
||||
userdata = bs->ibuf->userdata;
|
||||
if (userdata == NULL) /* since the thread was locked, its possible another thread alloced the value */
|
||||
userdata = MEM_callocN(sizeof(BakeImBufuserData), STRINGIFY(BakeImBufuserData));
|
||||
userdata = MEM_callocN(sizeof(BakeImBufuserData), "BakeImBufuserData");
|
||||
|
||||
if (bs->use_mask) {
|
||||
if (userdata->mask_buffer == NULL) {
|
||||
|
Reference in New Issue
Block a user