Commit Graph

14 Commits

Author SHA1 Message Date
Thibault Saunier
c3edb7dce8 Use a G_GUINT64_FORMAT to print the result of sizeof
Using G_OFFSET_FORMAT was misused
2017-10-04 23:22:37 +02:00
Thibault Saunier
c02ee2eb1a generator: Use parent structure fields whene generating ABI for fieldless structures 2017-10-04 16:37:27 -03:00
Thibault Saunier
7d7036c9c6 generator: Handle different gapi content if from bindinator or our parser
Basically our "parser" does not generate <field> for instance structure
parent wherease bindinator generate (broken ones, being pointers instead
of plain structures)
2017-10-04 16:37:27 -03:00
Thibault Saunier
05cfd406ef fixup: Allow specifying max number of matches to patch attributes for 2017-10-04 16:37:27 -03:00
Thibault Saunier
1d88acfbe7 generator: Use a AbiStruct for Class structures
Not for interfaces as it won't should not be required.
2017-10-04 16:37:27 -03:00
Thibault Saunier
248278d267 generator: Use a new AbiStruct object to handle wrapped type ABI
This allows us to totally get rid of the glue as this new class
handles bitfields and union properly.
2017-10-04 16:13:01 -03:00
Thibault Saunier
7d902ef7e4 generator: Handle new Callback field type. 2017-10-04 16:13:01 -03:00
Thibault Saunier
2852b771ea generator: Use TextWriter instead of StreamWriter in base classes
Giving users of the writer more possibility, such as generating the
code in strings before actually using it.
2017-10-04 16:13:01 -03:00
Thibault Saunier
2d71de1360 generator: Enhance logging avoiding the use of simple prints
And adding a LogWriter.Info method enabled with the GENERATOR_DEBUG
environment variable.
2017-10-04 16:13:01 -03:00
Thibault Saunier
d28c09d15e generator: Make instance_offset as hiding inherited member 2017-09-26 02:30:38 +02:00
Thibault Saunier
d1457f6e03 generator: Mark instance_offset field as static
Those are per class and should not be overriden ever
2017-09-21 20:39:06 +02:00
Thibault Saunier
9de231db82 Generate ABI compatible structures for unions 2017-09-06 18:36:01 +02:00
Thibault Saunier
9a9ef4b60b Remove autotools 2017-09-06 18:35:44 +02:00
cra0zy
c35a345041 Quick Reorganization 2017-09-04 22:36:28 -03:00