Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(737)

Unified Diff: header-generator.xsl

Issue 1508036: Add signals to generated header file (Closed)
Patch Set: Created 10 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: header-generator.xsl
diff --git a/header-generator.xsl b/header-generator.xsl
index c32f4b650f64acd40b2884aa2caae340582fffab..36255f34d18297188517c6ee72e0d9e3c5f7b6bc 100644
--- a/header-generator.xsl
+++ b/header-generator.xsl
@@ -137,6 +137,13 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
</xsl:template>
<xsl:template match="signal">
+ <xsl:variable name="varname">
+ <xsl:value-of select="translate(@name,
+ 'abcdefghijklmnopqrstuvwxyz. ',
+ 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_')"/>
+ </xsl:variable>
+#define <xsl:value-of select="concat('MM_SIGNAL_', $varname)"/> "<xsl:value-of select="@name"/>"
+
</xsl:template>
<xsl:template match="method">
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698