Include Gir file with constant "[;31;1m"

Daniel Espinosa <[email protected]>
Newsgroups gmane.comp.gnome.gtk+.general,gmane.comp.gnome.db
Message-ID <[email protected]>
I'm trying to add GOI to GDA UI extension, but I found some problems
in the generated gir file for GDA. Please Help Me!

Actually GDA (4.1) have support for GObject Introspection and it
requires a file called witch defines constants like (in the generated
Gir file):

</enumeration>
    <constant name="D_COL_ERR" value="&#x1b;[;31;1m">
      <type name="utf8"/>
    </constant>
    <constant name="D_COL_H0" value="&#x1b;[;34;7m">
      <type name="utf8"/>
    </constant>
    <constant name="D_COL_H1" value="&#x1b;[;36;7m">
      <type name="utf8"/>
    </constant>
    <constant name="D_COL_H2" value="&#x1b;[;36;4m">
      <type name="utf8"/>
    </constant>
    <constant name="D_COL_NOR" value="&#x1b;[0m">
      <type name="utf8"/>
    </constant>
    <constant name="D_COL_OK" value="&#x1b;[;32m">
      <type name="utf8"/>
    </constant>

But the real constants are:

#ifdef GDA_DEBUG
#define D_COL_NOR "\033[0m"
#define D_COL_H0 "\033[;34;7m"
#define D_COL_H1 "\033[;36;7m"
#define D_COL_H2 "\033[;36;4m"
#define D_COL_OK "\033[;32m"
#define D_COL_ERR "\033[;31;1m"
#endif

When I try to include this gir file to generate Gdaui-4.0.gir file,
the parser crash with a message:

SyntaxError: reference to invalid character number: line 2532, column 38

I have updated and installed GIO from repository.

-- 
Trabajar, la mejor arma para tu superación
"de grano en grano, se hace la arena" (R) (en trámite, pero para los
cuates: LIBRE)
_______________________________________________
gtk-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtk-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.