Changeset 17901 for branches/eam_branch_20080511/ppSim/src/ppSimUtils.c
- Timestamp:
- Jun 4, 2008, 1:52:32 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20080511/ppSim/src/ppSimUtils.c
r17672 r17901 212 212 213 213 // Get a value from the command-line arguments and add it to recipe options 214 bool ppSimArgToRecipeBool(bool *status, 215 psMetadata *options, // Target to which to add value 216 const char *recipeName, // Name for value in the recipe 217 psMetadata *arguments, // Command-line arguments 218 const char *argName // Argument name in the command-line arguments 219 ) 220 { 221 bool myStatus; 222 bool value = psMetadataLookupS32(&myStatus, arguments, argName); // Value of interest 223 if (status) { *status = myStatus; } 224 225 psMetadataAddBool(options, PS_LIST_TAIL, recipeName, PS_META_REPLACE, NULL, value); 226 return value; 227 } 228 229 // Get a value from the command-line arguments and add it to recipe options 214 230 char *ppSimArgToRecipeStr(bool *status, 215 231 psMetadata *options, // Target to which to add value
Note:
See TracChangeset
for help on using the changeset viewer.
