* Allocate and return a new feature of the specified * type. * @param FeatureDesc description of feature to be created. * @return New #FEATURE. * @note History: Mon May 21 14:06:42 1990, DSJ, Created. */
| 92 | * @note History: Mon May 21 14:06:42 1990, DSJ, Created. |
| 93 | */ |
| 94 | FEATURE NewFeature(const FEATURE_DESC_STRUCT* FeatureDesc) { |
| 95 | FEATURE Feature; |
| 96 | |
| 97 | Feature = (FEATURE) alloc_struct (sizeof (FEATURE_STRUCT) + |
| 98 | (FeatureDesc->NumParams - 1) * |
| 99 | sizeof (FLOAT32), |
| 100 | "sizeof(FEATURE_STRUCT)+sizeof(FLOAT32)*(NumParamsIn(Feature)-1)"); |
| 101 | Feature->Type = FeatureDesc; |
| 102 | return (Feature); |
| 103 | |
| 104 | } /* NewFeature */ |
| 105 | |
| 106 | /** |
| 107 | * Allocate and return a new feature set large enough to |
no test coverage detected