On Thu, May 26, 2011 at 1:23 PM, Radek Novacek <rnovacek(a)redhat.com> wrote:
On Thursday 26 of May 2011 07:26:02 Andrew Beekhof wrote:
> small has a dash but upper an underscore, is that intentional?
Sorry that I didn't explain the change. There is C code generated from XML.
Dash in the name is fine in XML but in C dash can't be part name because it's
interpreted as minus. So this trasfromation make underscore from dash. I'll
add a comment with this explanation.
ah, perfect. ack with comment
>
> On Wed, May 25, 2011 at 4:54 PM, Radek Novacek <rnovacek(a)redhat.com> wrote:
> > Signed-off-by: Radek Novacek <rnovacek(a)redhat.com>
> > ---
> > src/dbus-to-c.xsl | 4 ++--
> > 1 files changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/src/dbus-to-c.xsl b/src/dbus-to-c.xsl
> > index 96c796f..223b5fb 100644
> > --- a/src/dbus-to-c.xsl
> > +++ b/src/dbus-to-c.xsl
> > @@ -32,8 +32,8 @@
> > </xsl:template>
> >
> > <!-- This is needed for converting properties names to uppercase -->
> > -<xsl:variable name="smallcase"
select="'abcdefghijklmnopqrstuvwxyz'" />
> > -<xsl:variable name="uppercase"
select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'" />
> > +<xsl:variable name="smallcase"
select="'abcdefghijklmnopqrstuvwxyz-'" />
> > +<xsl:variable name="uppercase"
select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'" />
> >
> > <xsl:template name="enum">
> > <!-- Create enum of the properties and first property with id 0 -->
> > --
> > 1.7.5.1
> >
> > _______________________________________________
> > Matahari mailing list
> > Matahari(a)lists.fedorahosted.org
> >
https://fedorahosted.org/mailman/listinfo/matahari
_______________________________________________
Matahari mailing list
Matahari(a)lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/matahari