summaryrefslogtreecommitdiff
path: root/xmlschemastypes.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2005-02-19 18:27:14 +0000
committerDaniel Veillard <veillard@src.gnome.org>2005-02-19 18:27:14 +0000
commitb5839c3b57f7d130cbbe112a83e4dadb292c3dc8 (patch)
tree69d2eaf2734c4f2942b74cdbef2d98e6f154faeb /xmlschemastypes.c
parent5e094143e423c01739ac9221f371846fd290be4e (diff)
downloadlibxml2-b5839c3b57f7d130cbbe112a83e4dadb292c3dc8.tar.gz
a bit of cleanup rebuilt the API the tests and the documentation as a
* xmlschemastypes.c: a bit of cleanup * elfgcchack.h testapi.c doc/*: rebuilt the API the tests and the documentation as a result. Daniel
Diffstat (limited to 'xmlschemastypes.c')
-rw-r--r--xmlschemastypes.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/xmlschemastypes.c b/xmlschemastypes.c
index 01eb497e..13cc095c 100644
--- a/xmlschemastypes.c
+++ b/xmlschemastypes.c
@@ -684,6 +684,7 @@ xmlSchemaNewValue(xmlSchemaValType type) {
/**
* xmlSchemaNewStringValue:
* @type: the value type
+ * @value: the value
*
* Allocate a new simple type value. The type can be
* of XML_SCHEMAS_STRING.
@@ -710,7 +711,8 @@ xmlSchemaNewStringValue(xmlSchemaValType type,
/**
* xmlSchemaNewNOTATIONValue:
- * @type: the value type
+ * @name: the notation name
+ * @ns: the notation namespace name or NULL
*
* Allocate a new NOTATION value.
*
@@ -4629,17 +4631,16 @@ xmlSchemaValidateFacet(xmlSchemaTypePtr base ATTRIBUTE_UNUSED,
* @val: the precomputed value
* @retValue: the returned value
*
- * Returns a the cononical representation of the value.
- * The called has to free the returned retValue.
+ * Get a the cononical representation of the value.
+ * The caller has to free the returned retValue.
*
* Returns 0 if the value could be built and -1 in case of
* API errors or if the value type is not supported yet.
*/
int
-xmlSchemaGetCanonValue(xmlSchemaValPtr val,
- const xmlChar **retValue)
+xmlSchemaGetCanonValue(xmlSchemaValPtr val, const xmlChar **retValue)
{
- if (retValue == NULL)
+ if ((retValue == NULL) || (val == NULL))
return (-1);
*retValue = NULL;
switch (val->type) {