void oImgBitmap::setContents(EXTfldval &pContents) { if (mImage == NULL) { // really? } else { // We get the binary as is, we assume the contents is raw picture data in any format supported by STB qlong bitmapLen = pContents.getBinLen(); if (bitmapLen > 0) { qbyte * bitmapData = (qbyte *)MEMmalloc(sizeof(qbyte) * (bitmapLen+1)); if (bitmapData != NULL) { qlong reallen; pContents.getBinary(bitmapLen, bitmapData, reallen); // and assign it to our image mImage->copy(bitmapData, reallen); // and free our memory MEMfree(bitmapData); } else { oBaseComponent::addToTraceLog("setContents: Couldn't allocate memory for pixel buffer"); }; } else { oBaseComponent::addToTraceLog("setContents: No image specified"); }; }; };
static info *infoMake() { info *result; DBUG_ENTER("infoMake"); result = MEMmalloc(sizeof(info)); infoClear(result); DBUG_RETURN(result); }
static info *MakeInfo() { info *result; result = MEMmalloc(sizeof(info)); INFO_FIRSTERROR(result) = FALSE; return result; }
static dequeue_t *dequeueCreate() { dequeue_t *result; result = MEMmalloc(sizeof(dequeue_t)); result->first = NULL; result->last = NULL; return result; }
static info *MakeInfo() { info *result; result = MEMmalloc(sizeof(info)); result->nest_level = 0; result->local = hashmap_create(); result->global = hashmap_create(); return result; }
static info * MakeInfo( void) { info *result; DBUG_ENTER ("MakeInfo"); result = MEMmalloc (sizeof (info)); INFO_LUT(result) = LUTgenerateLut(); DBUG_RETURN (result); }
static info *infoMake() { info *result; DBUG_ENTER("infoMake"); result = MEMmalloc(sizeof(info)); INFO_PATTERN(result) = NULL; INFO_TAGS(result) = 0; DBUG_RETURN(result); }
static info *infoMake() { info *result; DBUG_ENTER("infoMake"); result = MEMmalloc(sizeof(info)); INFO_LOC(result) = LOCATION_UNKNOWN; //0 INFO_TOP(result) = NULL; DBUG_RETURN(result); }
static dequeue_element_t *dequeueElementCreate(node *def, char *name) { dequeue_element_t *result; result = MEMmalloc(sizeof(dequeue_element_t)); result->name = name; result->def = def; result->next = NULL; return result; }
/* Makes an info struct. */ static info *infoMake(bool collectUTs, bool collectCTs) { info *result; DBUG_ENTER("infoMake"); result = MEMmalloc(sizeof(info)); INFO_VRECTYPE(result) = TYPnewVrectype(); INFO_COLLECTUTS(result) = collectUTs; INFO_COLLECTCTS(result) = collectCTs; DBUG_RETURN(result); }
static info * MakeInfo () { info *result; DBUG_ENTER ("MakeInfo"); result = MEMmalloc (sizeof (info)); INFO_FREE_FLAG (result) = NULL; INFO_FREE_ASSIGN (result) = NULL; DBUG_RETURN (result); }
static info *MakeInfo(void) { info *result; DBUG_ENTER( "MakeInfo"); result = (info *)MEMmalloc(sizeof(info)); INFO_TYPE( result) = 0; INFO_FUNTYPE( result) =0; INFO_HASRETURN( result) =0; DBUG_RETURN( result); }
static info *MakeInfo(void) { info *result; DBUG_ENTER( "MakeInfo"); result = (info *)MEMmalloc(sizeof(info)); INFO_ADD( result) = 0; INFO_SUB( result) = 0; INFO_MUL( result) = 0; INFO_DIV( result) = 0; INFO_MOD( result) = 0; DBUG_RETURN( result); }