MCPcopy Create free account
hub / github.com/Kitware/VTK / xmlSchemaNewValue

Function xmlSchemaNewValue

ThirdParty/libxml2/vtklibxml2/xmlschemastypes.c:214–225  ·  view source on GitHub ↗

* xmlSchemaNewValue: * @type: the value type * * Allocate a new simple type value * * Returns a pointer to the new value or NULL in case of error */

Source from the content-addressed store, hash-verified

212 * Returns a pointer to the new value or NULL in case of error
213 */
214static xmlSchemaValPtr
215xmlSchemaNewValue(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
227static xmlSchemaFacetPtr
228xmlSchemaNewMinLengthFacet(int value)

Callers 9

xmlSchemaNewQNameValueFunction · 0.85
xmlSchemaValidateDatesFunction · 0.85
xmlSchemaValAtomicTypeFunction · 0.85
xmlSchemaDupValFunction · 0.85
_xmlSchemaDateAddFunction · 0.85
xmlSchemaDateNormalizeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected