Changeset 2055
- Timestamp:
- Oct 12, 2004, 9:32:44 AM (22 years ago)
- Location:
- trunk/psLib/src
- Files:
-
- 4 edited
-
collections/psScalar.c (modified) (2 diffs)
-
collections/psScalar.h (modified) (2 diffs)
-
mathtypes/psScalar.c (modified) (2 diffs)
-
mathtypes/psScalar.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/collections/psScalar.c
r1807 r2055 8 8 * @author Ross Harman, MHPCC 9 9 * 10 * @version $Revision: 1.1 0$ $Name: not supported by cvs2svn $11 * @date $Date: 2004- 09-14 20:01:52$10 * @version $Revision: 1.11 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2004-10-12 19:32:44 $ 12 12 * 13 13 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 138 138 return newScalar; 139 139 } 140 141 void psScalarFree(psScalar* restrict scalar)142 {143 if (scalar == NULL) {144 return;145 }146 147 psFree(scalar);148 } -
trunk/psLib/src/collections/psScalar.h
r1477 r2055 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1. 9$ $Name: not supported by cvs2svn $14 * @date $Date: 2004- 08-11 20:08:08$13 * @version $Revision: 1.10 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2004-10-12 19:32:44 $ 15 15 * 16 16 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 70 70 ); 71 71 72 /** Deallocate a scalar.73 *74 * Uses psLib memory allocation functions to deallocate a scalar.75 *76 */77 void psScalarFree(78 psScalar* restrict scalar ///< Scalar to free.79 );80 81 72 /** Copy a scalar. 82 73 * -
trunk/psLib/src/mathtypes/psScalar.c
r1807 r2055 8 8 * @author Ross Harman, MHPCC 9 9 * 10 * @version $Revision: 1.1 0$ $Name: not supported by cvs2svn $11 * @date $Date: 2004- 09-14 20:01:52$10 * @version $Revision: 1.11 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2004-10-12 19:32:44 $ 12 12 * 13 13 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 138 138 return newScalar; 139 139 } 140 141 void psScalarFree(psScalar* restrict scalar)142 {143 if (scalar == NULL) {144 return;145 }146 147 psFree(scalar);148 } -
trunk/psLib/src/mathtypes/psScalar.h
r1477 r2055 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1. 9$ $Name: not supported by cvs2svn $14 * @date $Date: 2004- 08-11 20:08:08$13 * @version $Revision: 1.10 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2004-10-12 19:32:44 $ 15 15 * 16 16 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 70 70 ); 71 71 72 /** Deallocate a scalar.73 *74 * Uses psLib memory allocation functions to deallocate a scalar.75 *76 */77 void psScalarFree(78 psScalar* restrict scalar ///< Scalar to free.79 );80 81 72 /** Copy a scalar. 82 73 *
Note:
See TracChangeset
for help on using the changeset viewer.
