Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
38f8b69a
Commit
38f8b69a
authored
Dec 11, 2009
by
Peter Eastman
Browse files
Fixed bug in wrapping references to enumerations
parent
042ab1aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
wrappers/FortranWrapper_Source.xslt
wrappers/FortranWrapper_Source.xslt
+6
-1
No files found.
wrappers/FortranWrapper_Source.xslt
View file @
38f8b69a
...
...
@@ -513,6 +513,11 @@ OPENMM_EXPORT <xsl:if test="$has_return">
<xsl:variable
name=
"enum_class"
select=
"/GCC_XML/*[@id=$type_node/@context]"
/>
<xsl:value-of
select=
"concat('(OpenMM_', $enum_class/@name, '_', $type_node/@name, ') ', @name)"
/>
</xsl:when>
<xsl:when
test=
"local-name($type_node)='ReferenceType' and not(empty(/GCC_XML/Enumeration[@id=$type_node/@type]))"
>
<xsl:variable
name=
"enum_node"
select=
"/GCC_XML/Enumeration[@id=$type_node/@type]"
/>
<xsl:variable
name=
"enum_class"
select=
"/GCC_XML/*[@id=$enum_node/@context]"
/>
<xsl:value-of
select=
"concat('(OpenMM_', $enum_class/@name, '_', $enum_node/@name, '*) ', @name)"
/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of
select=
"@name"
/>
</xsl:otherwise>
...
...
@@ -634,7 +639,7 @@ OPENMM_EXPORT <xsl:if test="$has_return">
<xsl:with-param
name=
"type_id"
select=
"$node/@type"
/>
</xsl:call-template>
</xsl:when>
<xsl:when
test=
"local-name($node)='Enumeration'"
>
<xsl:when
test=
"local-name($node)='Enumeration'
or (local-name($node)='ReferenceType' and not(empty(/GCC_XML/Enumeration[@id=$node/@type])))
"
>
<xsl:call-template
name=
"hide_type"
>
<xsl:with-param
name=
"type_id"
select=
"$node/@context"
/>
</xsl:call-template>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment