mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
ignore non-UTF-8 string constants
2008-10-11 Johan Bilien <jobi@litl.com> * giscanner/scannerparser.y: ignore non-UTF-8 string constants 2008-10-11 Johan Bilien <jobi@litl.com> Bug 552347: Parse #defines constants * girepository/gtypelib.c: update the list of value_size with recently defined type tags * giscanner/scannerparser.y: brought back parsing of #defined, as present in older version * giscanner/giscannermodule.c: bind gi_source_scanner_append_filename * giscanner/girwriter.py: write out constant tags in the gir * giscanner/sourcescanner.py: add accessor for const_string * giscanner/transformer.py, giscanner/glibtransformer.py: handle constant svn path=/trunk/; revision=673
This commit is contained in:
parent
a0d5227db5
commit
1b2aa59534
36
gtypelib.c
36
gtypelib.c
@ -878,13 +878,35 @@ validate_constant_blob (GTypelib *typelib,
|
||||
GError **error)
|
||||
{
|
||||
gint value_size[] = {
|
||||
0, 4, 1, 1, 2, 2, 4, 4, 8, 8,
|
||||
sizeof (gint), sizeof (guint),
|
||||
sizeof (glong), sizeof (gulong),
|
||||
sizeof (gssize), sizeof (gsize),
|
||||
sizeof (gfloat), sizeof (gdouble),
|
||||
0, 0
|
||||
};
|
||||
0, /* VOID */
|
||||
4, /* BOOLEAN */
|
||||
1, /* INT8 */
|
||||
1, /* UINT8 */
|
||||
2, /* INT16 */
|
||||
2, /* UINT16 */
|
||||
4, /* INT32 */
|
||||
4, /* UINT32 */
|
||||
8, /* INT64 */
|
||||
8, /* UINT64 */
|
||||
sizeof (gint),
|
||||
sizeof (guint),
|
||||
sizeof (glong),
|
||||
sizeof (gulong),
|
||||
sizeof (gssize),
|
||||
sizeof (gsize),
|
||||
sizeof (gfloat),
|
||||
sizeof (gdouble),
|
||||
sizeof (time_t),
|
||||
0, /* GTYPE */
|
||||
0, /* UTF8 */
|
||||
0, /* FILENAME */
|
||||
0, /* ARRAY */
|
||||
0, /* INTERFACE */
|
||||
0, /* GLIST */
|
||||
0, /* GSLIST */
|
||||
0, /* GHASH */
|
||||
0, /* ERROR */
|
||||
};
|
||||
ConstantBlob *blob;
|
||||
SimpleTypeBlob *type;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user