diff options
author | TORRI Vincent <torri@doursse.(none)> | 2006-11-28 20:26:54 +0100 |
---|---|---|
committer | TORRI Vincent <torri@doursse.(none)> | 2006-11-28 20:26:54 +0100 |
commit | 67af2d24e4c46580479570cf09586a54b84b1b63 (patch) | |
tree | a1a785423215de11c7a0b289ac39ed1c3fdb17d1 | |
parent | 4c8777f87a28ff5bf45cbdddce509163dbcf8137 (diff) |
add doc tag for the _next functions. It creates doxygen doc in the header files for these functions
-rw-r--r-- | src/c-client.xsl | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/c-client.xsl b/src/c-client.xsl index 5df5762..d70b8b6 100644 --- a/src/c-client.xsl +++ b/src/c-client.xsl @@ -924,6 +924,14 @@ authorization from the authors. </xsl:for-each> <xsl:if test="not($kind)"> <function type="void" name="{$ref}_next"> + <doc>/**</doc> + <doc> * Get the next element of the iterator</doc> + <doc> * @param i Pointer to a <xsl:value-of select="$ref" />_iterator_t</doc> + <doc> *</doc> + <doc> * Get the next element in the iterator. The member rem is</doc> + <doc> * decreased by one. The member data points to the next</doc> + <doc> * element. The member index is increased by sizeof(<xsl:value-of select="$ref" />_t)</doc> + <doc> */</doc> <field type="{$ref}_iterator_t *" name="i" /> <xsl:choose> <xsl:when test="$struct/list[not(@fixed)]"> @@ -1178,6 +1186,10 @@ authorization from the authors. </xsl:call-template> </xsl:variable> <!-- Doxygen for functions in header. --> + <xsl:if test="$h"> + <xsl:apply-templates select="doc" mode="function-doc"> + </xsl:apply-templates> + </xsl:if> /***************************************************************************** ** ** <xsl:value-of select="@type" /> @@ -1242,6 +1254,11 @@ authorization from the authors. </xsl:if> </xsl:template> + <xsl:template match="doc" mode="function-doc"> + <xsl:value-of select="." /><xsl:text> +</xsl:text> + </xsl:template> + <xsl:template match="l" mode="function-body"> <xsl:param name="indent" /> <xsl:value-of select="concat($indent, .)" /><xsl:text> |