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



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)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]