Christoph Reimann
5e8a7ade2d
small fix to get rid of some compiler warnings
...
also added very basic documentation for xkb
2010-08-16 20:24:40 +02:00
Christoph Reimann
22e1013131
added accessors for special cases
...
major bugfixes include: rewrite of prefix related functions, merge of serialize/unserialize/... generators, extended field name resolution
2010-08-16 18:19:16 +02:00
Christoph Reimann
fe0e32b5fa
special case 'intermixed variable and fixed size fields': fixed reply side, needs testing
2010-08-08 21:25:13 +02:00
Christoph Reimann
77b594f958
renamed most _unserialize() functions to _sizeof() and fixed _unserialize() for the special case of intermixed variable and fixed size fields
2010-08-05 15:55:28 +02:00
Christoph Reimann
b187f029d6
attempt to fix special case: variable fields followed by fixed size fields
2010-08-02 23:30:42 +02:00
Christoph Reimann
a700eeb502
bug fixes for all kinds of 'special cases'
2010-08-01 23:40:20 +02:00
Christoph Reimann
1c590d5a86
partial rewrite of serialize helper functions completed;
...
_serialize() & _unserialize() have been tested for switch derived from valueparam
2010-07-22 16:41:15 +02:00
Christoph Reimann
566ae9baee
preliminary handling of further special cases in unserialize
...
first attempts to unify serialize and unserialize
2010-07-20 22:46:37 +02:00
Christoph Reimann
4e665e1580
added generating code for _serialize() in case of variable sized structs (largely untested)
2010-07-15 18:43:43 +02:00
Christoph Reimann
86704124b1
new and still preliminary functions for switch; feautures include
...
- API compatibility with valueparam
- request _aux() auxiliary functions
- _serialize() and _unserialize() auxiliary functions
- new data type that allows mixing of fixed and variable size members
2010-07-13 20:06:08 +02:00
Marcin Kościelnicki
e4b746ac13
Add ~ operator support in code generator
...
Reviewed-by: Julien Cristau <jcristau@debian.org>
Signed-off-by: Julien Danjou <julien@danjou.info>
2010-05-14 13:19:28 +02:00
Peter Harris
eaa71eac02
Avoid name collisions between xidtype and enum.
...
These changes are necessary to build with latest xcb/proto.
Signed-off-by: Peter Harris <pharris@opentext.com>
2009-03-14 12:34:31 -04:00
Peter Harris
e986d1ee5a
Revert "Don't use enums in generated C code"
...
This commit broke xcb/util.
This reverts commit 9984b72888
.
Signed-off-by: Peter Harris <pharris@opentext.com>
2009-03-13 15:25:30 -04:00
Peter Harris
9984b72888
Don't use enums in generated C code - use integer constants instead.
...
Signed-off-by: Peter Harris <pharris@opentext.com>
2009-02-25 19:07:23 -05:00
Peter Harris
43b612a5e9
Treat XIDs the same as other cardinal values.
...
This fixes a bug where c_client.py wasn't generating *_end functions,
but expected them to exist in order to find the subsequent list's start.
Signed-off-by: Peter Harris <peter.harris@hummingbird.com>
2008-11-19 11:06:01 -05:00
Carsten Meier
9afadd2aef
Added generation of extern "C" for compatibility with C++
...
The auto-generated header files now include an extern "C"
declaration for compatibility with C++.
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-09-09 15:00:38 +02:00
Bart Massey
d6d44e1bf0
fixed overly aggressive warning about fixed field following variable
2008-09-03 13:52:58 -07:00
Bart Massey
7e0674e761
added small fix to support trailing fixed fields; also warning for non-pad fixed fields
2008-09-03 11:58:14 -07:00
Julien Danjou
1ead02e88e
initialize global_id to 0
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-28 13:49:21 +02:00
Eamon Walsh
40566c36d5
Use the python install path from xcb-xproto.pc to locate the xcbgen package.
2008-04-23 20:25:57 -04:00
Jeremy Kolb
b3832bcc46
Add mention of PYTHONPATH if xcbgen cannot be found.
2008-04-20 16:26:51 -04:00
Eamon Walsh
5ee915e12a
Add Python parser C language-dependent part.
2008-04-19 04:44:29 -04:00