From defaeae1df9fa607c7a07f5f469ffbe322db6d2e Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Wed, 30 Nov 2005 16:04:34 +0000 Subject: [PATCH] Use "title" class to add underline to titles instead of HR element afterwards. --- doc/reference.html | 190 ++++++++++++++++----------------------------- mxmldoc.c | 45 +++++------ 2 files changed, 89 insertions(+), 146 deletions(-) diff --git a/doc/reference.html b/doc/reference.html index 1d29a3b..9168bb1 100644 --- a/doc/reference.html +++ b/doc/reference.html @@ -9,10 +9,11 @@ pre { font-weight: bold; color: #7f0000; margin-left: 2em; } span.info { font-weight: bold; font-style: italic; color: #ffffff; background: #000000; } h3 span.info { float: right; } + h1.title, h2.title, h3.title { border-bottom: solid 2px #000000; } --> -

Contents

+

Contents

-

Enumerations

+

Enumerations

-

mxml_type_e

-
+

mxml_type_e

Description

The XML node type.

Values

@@ -43,7 +43,7 @@ MXML_TEXT Text fragment -

Functions

+

Functions

-

mxmlAdd()

-
+

mxmlAdd()

Description

Add a node to a tree. @@ -121,8 +120,7 @@ mxmlAdd(

Returns

Nothing.

-

mxmlDelete()

-
+

mxmlDelete()

Description

Delete a node and all of its children. @@ -143,8 +141,7 @@ mxmlDelete(

Returns

Nothing.

-

mxmlElementGetAttr()

-
+

mxmlElementGetAttr()

Description

Get an attribute. @@ -167,8 +164,7 @@ mxmlElementGetAttr(

Returns

Attribute value or NULL

-

mxmlElementSetAttr()

-
+

mxmlElementSetAttr()

Description

Set an attribute. @@ -195,8 +191,7 @@ mxmlElementSetAttr(

Returns

Nothing.

-

mxmlEntityAddCallback()

-
+

mxmlEntityAddCallback()

Description

Add a callback to convert entities to Unicode.

Syntax

@@ -209,8 +204,7 @@ mxmlEntityAddCallback(void);

Returns

0 on success, -1 on failure

-

mxmlEntityGetName()

-
+

mxmlEntityGetName()

Description

Get the name that corresponds to the character value. @@ -230,8 +224,7 @@ mxmlEntityGetName(

Returns

Entity name or NULL

-

mxmlEntityGetValue()

-
+

mxmlEntityGetValue()

Description

Get the character corresponding to a named entity. @@ -252,8 +245,7 @@ mxmlEntityGetValue(

Returns

Character value or -1 on error

-

mxmlEntityRemoveCallback()

-
+

mxmlEntityRemoveCallback()

Description

Remove a callback.

Syntax

@@ -266,8 +258,7 @@ mxmlEntityRemoveCallback(void);

Returns

Nothing.

-

mxmlFindElement()

-
+

mxmlFindElement()

Description

Find the named element. @@ -304,8 +295,7 @@ mxmlFindElement(

Returns

Element node or NULL

-

mxmlIndexDelete()

-
+

mxmlIndexDelete()

Description

Delete an index.

Syntax

@@ -323,8 +313,7 @@ mxmlIndexDelete(

Returns

Nothing.

-

mxmlIndexEnum()

-
+

mxmlIndexEnum()

Description

Return the next node in the index. @@ -344,8 +333,7 @@ mxmlIndexEnum(

Returns

Next node or NULL if there is none

-

mxmlIndexFind()

-
+

mxmlIndexFind()

Description

Find the next matching node. @@ -372,8 +360,7 @@ mxmlIndexFind(

Returns

Node or NULL if none found

-

mxmlIndexNew()

-
+

mxmlIndexNew()

Description

Create a new index. @@ -401,8 +388,7 @@ mxmlIndexNew(

Returns

New index

-

mxmlIndexReset()

-
+

mxmlIndexReset()

Description

Reset the enumeration/find pointer in the index and return the first node in the index. @@ -424,8 +410,7 @@ mxmlIndexReset(

Returns

First node or NULL if there is none

-

mxmlLoadFd()

-
+

mxmlLoadFd()

Description

Load a file descriptor into an XML node tree. @@ -456,8 +441,7 @@ mxmlLoadFd(

Returns

First node or NULL if the file could not be read.

-

mxmlLoadFile()

-
+

mxmlLoadFile()

Description

Load a file into an XML node tree. @@ -488,8 +472,7 @@ mxmlLoadFile(

Returns

First node or NULL if the file could not be read.

-

mxmlLoadString()

-
+

mxmlLoadString()

Description

Load a string into an XML node tree. @@ -520,8 +503,7 @@ mxmlLoadString(

Returns

First node or NULL if the string has errors.

-

mxmlNewCDATA()  Mini-XML 2.3 

-
+

mxmlNewCDATA()  Mini-XML 2.3 

Description

Create a new CDATA node. @@ -548,8 +530,7 @@ mxmlNewCDATA(

Returns

New node

-

mxmlNewCustom()  Mini-XML 2.1 

-
+

mxmlNewCustom()  Mini-XML 2.1 

Description

Create a new custom data node. @@ -576,8 +557,7 @@ mxmlNewCustom(

Returns

New node

-

mxmlNewElement()

-
+

mxmlNewElement()

Description

Create a new element node. @@ -601,8 +581,7 @@ mxmlNewElement(

Returns

New node

-

mxmlNewInteger()

-
+

mxmlNewInteger()

Description

Create a new integer node. @@ -626,8 +605,7 @@ mxmlNewInteger(

Returns

New node

-

mxmlNewOpaque()

-
+

mxmlNewOpaque()

Description

Create a new opaque string. @@ -652,8 +630,7 @@ mxmlNewOpaque(

Returns

New node

-

mxmlNewReal()

-
+

mxmlNewReal()

Description

Create a new real number node. @@ -677,8 +654,7 @@ mxmlNewReal(

Returns

New node

-

mxmlNewText()

-
+

mxmlNewText()

Description

Create a new text fragment node. @@ -706,8 +682,7 @@ mxmlNewText(

Returns

New node

-

mxmlNewTextf()

-
+

mxmlNewTextf()

Description

Create a new formatted text fragment node. @@ -737,8 +712,7 @@ mxmlNewTextf(

Returns

New node

-

mxmlRemove()

-
+

mxmlRemove()

Description

Remove a node from its parent. @@ -759,8 +733,7 @@ mxmlRemove(

Returns

Nothing.

-

mxmlSaveAllocString()

-
+

mxmlSaveAllocString()

Description

Save an XML node tree to an allocated string. @@ -790,8 +763,7 @@ mxmlSaveAllocString(

Returns

Allocated string or NULL

-

mxmlSaveFd()

-
+

mxmlSaveFd()

Description

Save an XML tree to a file descriptor. @@ -817,8 +789,7 @@ mxmlSaveFd(

Returns

0 on success, -1 on error.

-

mxmlSaveFile()

-
+

mxmlSaveFile()

Description

Save an XML tree to a file. @@ -844,8 +815,7 @@ mxmlSaveFile(

Returns

0 on success, -1 on error.

-

mxmlSaveString()

-
+

mxmlSaveString()

Description

Save an XML node tree to a string. @@ -877,8 +847,7 @@ mxmlSaveString(

Returns

Size of string

-

mxmlSetCDATA()  Mini-XML 2.3 

-
+

mxmlSetCDATA()  Mini-XML 2.3 

Description

Set the element name of a CDATA node. @@ -902,8 +871,7 @@ mxmlSetCDATA(

Returns

0 on success, -1 on failure

-

mxmlSetCustom()  Mini-XML 2.1 

-
+

mxmlSetCustom()  Mini-XML 2.1 

Description

Set the data and destructor of a custom data node. @@ -927,8 +895,7 @@ mxmlSetCustom(

Returns

0 on success, -1 on failure

-

mxmlSetCustomHandlers()

-
+

mxmlSetCustomHandlers()

Description

Set the handling functions for custom data. @@ -954,8 +921,7 @@ mxmlSetCustomHandlers(

Returns

Nothing.

-

mxmlSetElement()

-
+

mxmlSetElement()

Description

Set the name of an element node. @@ -977,8 +943,7 @@ mxmlSetElement(

Returns

0 on success, -1 on failure

-

mxmlSetErrorCallback()

-
+

mxmlSetErrorCallback()

Description

Set the error message callback.

Syntax

@@ -991,8 +956,7 @@ mxmlSetErrorCallback(void);

Returns

Nothing.

-

mxmlSetInteger()

-
+

mxmlSetInteger()

Description

Set the value of an integer node. @@ -1014,8 +978,7 @@ mxmlSetInteger(

Returns

0 on success, -1 on failure

-

mxmlSetOpaque()

-
+

mxmlSetOpaque()

Description

Set the value of an opaque node. @@ -1037,8 +1000,7 @@ mxmlSetOpaque(

Returns

0 on success, -1 on failure

-

mxmlSetReal()

-
+

mxmlSetReal()

Description

Set the value of a real number node. @@ -1060,8 +1022,7 @@ mxmlSetReal(

Returns

0 on success, -1 on failure

-

mxmlSetText()

-
+

mxmlSetText()

Description

Set the value of a text node. @@ -1085,8 +1046,7 @@ mxmlSetText(

Returns

0 on success, -1 on failure

-

mxmlSetTextf()

-
+

mxmlSetTextf()

Description

Set the value of a text node to a formatted string. @@ -1112,8 +1072,7 @@ mxmlSetTextf(

Returns

0 on success, -1 on failure

-

mxmlWalkNext()

-
+

mxmlWalkNext()

Description

Walk to the next logical node in the tree. @@ -1139,8 +1098,7 @@ mxmlWalkNext(

Returns

Next node or NULL

-

mxmlWalkPrev()

-
+

mxmlWalkPrev()

Description

Walk to the previous logical node in the tree. @@ -1166,7 +1124,7 @@ mxmlWalkPrev(

Returns

Previous node or NULL

-

Structures

+

Structures

-

mxml_attr_s

-
+

mxml_attr_s

Description

Data types...

Definition

@@ -1196,8 +1153,7 @@ struct mxml_attr_s value Attribute value -

mxml_custom_s  Mini-XML 2.1 

-
+

mxml_custom_s  Mini-XML 2.1 

Description

An XML custom value.

Definition

@@ -1214,8 +1170,7 @@ struct mxml_custom_s data Pointer to (allocated) custom data -

mxml_element_s

-
+

mxml_element_s

Description

An XML element value.

Definition

@@ -1236,8 +1191,7 @@ struct mxml_element_s num_attrs Number of attributes -

mxml_index_s

-
+

mxml_index_s

Description

An XML node index.

Definition

@@ -1262,8 +1216,7 @@ struct mxml_index_s num_nodes Number of nodes in index -

mxml_node_s

-
+

mxml_node_s

Description

An XML node.

Definition

@@ -1292,8 +1245,7 @@ struct mxml_node_s value Node value -

mxml_text_s

-
+

mxml_text_s

Description

An XML text value.

Definition

@@ -1312,7 +1264,7 @@ struct mxml_text_s whitespace Leading whitespace? -

Types

+

Types

-

mxml_attr_t

-
+

mxml_attr_t

Description

Data types...

Definition

@@ -1334,8 +1285,7 @@ struct mxml_text_s typedef struct mxml_attr_s mxml_attr_t; -

mxml_custom_load_cb_t

-
+

mxml_custom_load_cb_t

Description

Custom data load callback function

Definition

@@ -1343,8 +1293,7 @@ typedef struct mxml_attr_s mxml_attr_t; typedef int (*mxml_custom_load_cb_t)(mxml_node_t *, const char *); -

mxml_custom_save_cb_t

-
+

mxml_custom_save_cb_t

Description

Custom data save callback function

Definition

@@ -1352,8 +1301,7 @@ typedef int (*mxml_custom_load_cb_t)(mxml_node_t *, c typedef char * (*mxml_custom_save_cb_t)(mxml_node_t *); -

mxml_custom_t  Mini-XML 2.1 

-
+

mxml_custom_t  Mini-XML 2.1 

Description

An XML custom value.

Definition

@@ -1361,8 +1309,7 @@ typedef char * (*mxml_custom_save_cb_t)(mxml_node_t * typedef struct mxml_custom_s mxml_custom_t; -

mxml_element_t

-
+

mxml_element_t

Description

An XML element value.

Definition

@@ -1370,8 +1317,7 @@ typedef struct mxml_custom_s mxml_custom_t; typedef struct mxml_element_s mxml_element_t; -

mxml_index_t

-
+

mxml_index_t

Description

An XML node index.

Definition

@@ -1379,8 +1325,7 @@ typedef struct mxml_element_s mxml_element_t; typedef struct mxml_index_s mxml_index_t; -

mxml_node_t

-
+

mxml_node_t

Description

An XML node.

Definition

@@ -1388,8 +1333,7 @@ typedef struct mxml_index_s mxml_index_t; typedef struct mxml_node_s mxml_node_t; -

mxml_text_t

-
+

mxml_text_t

Description

An XML text value.

Definition

@@ -1397,8 +1341,7 @@ typedef struct mxml_node_s mxml_node_t; typedef struct mxml_text_s mxml_text_t; -

mxml_value_t

-
+

mxml_value_t

Description

An XML node value.

Definition

@@ -1406,13 +1349,12 @@ typedef struct mxml_text_s mxml_text_t; typedef union mxml_value_u mxml_value_t; -

Unions

+

Unions

-

mxml_value_u

-
+

mxml_value_u

Description

An XML node value.

Definition

diff --git a/mxmldoc.c b/mxmldoc.c index ffbf721..2f3de71 100644 --- a/mxmldoc.c +++ b/mxmldoc.c @@ -2216,6 +2216,7 @@ write_documentation( "\tpre { font-weight: bold; color: #7f0000; margin-left: 2em; }\n" "\tspan.info { font-weight: bold; font-style: italic; color: #ffffff; background: #000000; }\n" "\th3 span.info { float: right; }\n" + "\th1.title, h2.title, h3.title { border-bottom: solid 2px #000000; }\n" "\t-->\n" "\n" "\n", title); @@ -2240,7 +2241,7 @@ write_documentation( * Table of contents... */ - puts("

Contents

"); + puts("

Contents

"); puts("