Skip to content
Permalink
Browse files
8254364: Remove leading _ from struct/union declarations in jvmti.h
Reviewed-by: dholmes, sspitsyn
  • Loading branch information
iklam committed Oct 13, 2020
1 parent e49232a commit c9ca1bb025174b7d314fe59436fe912818d85524
Showing 1 changed file with 7 additions and 7 deletions.
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (c) 2002, 2019, Oracle and/or its affiliates. All rights reserved.
Copyright (c) 2002, 2020, Oracle and/or its affiliates. All rights reserved.
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
This code is free software; you can redistribute it and/or modify it
@@ -406,11 +406,11 @@ typedef </xsl:text>
</xsl:template>

<xsl:template match="typedef" mode="early">
<xsl:text>struct _</xsl:text>
<xsl:text>struct </xsl:text>
<xsl:value-of select="@id"/>
<xsl:text>;
</xsl:text>
<xsl:text>typedef struct _</xsl:text>
<xsl:text>typedef struct </xsl:text>
<xsl:value-of select="@id"/>
<xsl:text> </xsl:text>
<xsl:value-of select="@id"/>
@@ -419,7 +419,7 @@ typedef </xsl:text>
</xsl:template>

<xsl:template match="typedef" mode="body">
<xsl:text>struct _</xsl:text>
<xsl:text>struct </xsl:text>
<xsl:value-of select="@id"/>
<xsl:text> {
</xsl:text>
@@ -429,11 +429,11 @@ typedef </xsl:text>
</xsl:template>

<xsl:template match="uniontypedef" mode="early">
<xsl:text>union _</xsl:text>
<xsl:text>union </xsl:text>
<xsl:value-of select="@id"/>
<xsl:text>;
</xsl:text>
<xsl:text>typedef union _</xsl:text>
<xsl:text>typedef union </xsl:text>
<xsl:value-of select="@id"/>
<xsl:text> </xsl:text>
<xsl:value-of select="@id"/>
@@ -442,7 +442,7 @@ typedef </xsl:text>
</xsl:template>

<xsl:template match="uniontypedef" mode="body">
<xsl:text>union _</xsl:text>
<xsl:text>union </xsl:text>
<xsl:value-of select="@id"/>
<xsl:text> {
</xsl:text>

1 comment on commit c9ca1bb

@bridgekeeper
Copy link

@bridgekeeper bridgekeeper bot commented on c9ca1bb Oct 13, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.