* xmlSchemaNewValue: * @type: the value type * * Allocate a new simple type value * * Returns a pointer to the new value or NULL in case of error */
| 212 | * Returns a pointer to the new value or NULL in case of error |
| 213 | */ |
| 214 | static xmlSchemaValPtr |
| 215 | xmlSchemaNewValue(xmlSchemaValType type) { |
| 216 | xmlSchemaValPtr value; |
| 217 | |
| 218 | value = (xmlSchemaValPtr) xmlMalloc(sizeof(xmlSchemaVal)); |
| 219 | if (value == NULL) { |
| 220 | return(NULL); |
| 221 | } |
| 222 | memset(value, 0, sizeof(xmlSchemaVal)); |
| 223 | value->type = type; |
| 224 | return(value); |
| 225 | } |
| 226 | |
| 227 | static xmlSchemaFacetPtr |
| 228 | xmlSchemaNewMinLengthFacet(int value) |
no outgoing calls
no test coverage detected