- Timestamp:
- Oct 29, 2007, 2:59:23 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20071023/psModules/src/objects/pmModel.c
r15398 r15418 6 6 * @author EAM, IfA 7 7 * 8 * @version $Revision: 1.15.6. 2$ $Name: not supported by cvs2svn $9 * @date $Date: 2007-10- 29 01:37:48$8 * @version $Revision: 1.15.6.3 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2007-10-30 00:59:23 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 46 46 psTrace("psModules.objects", 3, "---- %s() begin ----\n", __func__); 47 47 48 pmModel *tmp = (pmModel *) psAlloc(sizeof(pmModel));49 psMemSetDeallocator(tmp, (psFreeFunc) modelFree);50 51 48 pmModelClass *class = pmModelClassSelect (type); 52 49 if (class == NULL) { … … 54 51 return(NULL); 55 52 } 53 54 pmModel *tmp = (pmModel *) psAlloc(sizeof(pmModel)); 55 psMemSetDeallocator(tmp, (psFreeFunc) modelFree); 56 56 57 57 tmp->type = type; … … 89 89 } 90 90 91 bool psMemCheckModel(psPtr ptr) 92 { 93 PS_ASSERT_PTR(ptr, false); 94 return ( psMemGetDeallocator(ptr) == (psFreeFunc) modelFree); 95 } 96 91 97 // copy model to a new structure 92 98 pmModel *pmModelCopy (pmModel *model) 93 99 { 100 PS_ASSERT_PTR_NON_NULL(model, NULL); 94 101 95 102 pmModel *new = pmModelAlloc (model->type);
Note:
See TracChangeset
for help on using the changeset viewer.
