summaryrefslogtreecommitdiff
path: root/xcbgen
AgeCommit message (Collapse)AuthorFilesLines
2013-07-12Add support for X Generic Extension eventsDaniel Martin1-5/+21
With these patches, we are able to mark an XGE event as such and generate the correct header for it. XGE events can be found in the X Input Extension v2++. Signed-off-by: Daniel Martin <consume.noise@gmail.com> Reviewed-by: Keith Packard <keithp@keithp.com> Signed-off-by: Peter Harris <pharris@opentext.com>
2013-05-23xcbgen: Handle multiple <enumref> in a <bitcase>Daniel Martin1-4/+11
Adopt the XML schema change from commit ee71d96 Allow multiple <enumref> in a <bitcase> and its usage with commit b3b5e02 XKB: Fix GetKbdByName. Signed-off-by: Daniel Martin <consume.noise@gmail.com> Signed-off-by: Peter Harris <pharris@opentext.com>
2013-02-14Simplify boolean attribute retrievalDaniel Martin1-2/+1
2012-03-26xproto: add doc tags, xcbgen: handle doc tagsMichael Stapelberg2-12/+64
Signed-off-by: Julien Danjou <julien@danjou.info>
2012-03-23Rename the ExprType "parent" attribute to "parents".Alex Plotnick1-2/+2
This is fallout from commit 76ca2c0b1527541be59c344118c538ba055ad9d8, which renamed the *parent parameter of ExprType.__init__, but failed to rename the instance attribute to which it was assigned. Signed-off-by: Julien Danjou <julien@danjou.info>
2011-05-03Use absolute imports in xcbgen for Python 3 compatibilityDavid Coles3-6/+7
Python 3 has stricter syntax for relative imports. Use absolute imports to ensure compatibility with all versions of Python. Also break cyclical module import between state.py and matcher.py by deferring import. Signed-off-by: David Coles <dcoles@gaikai.com> Signed-off-by: Julien Danjou <julien@danjou.info>
2010-08-16xcbgen: small fix to store anchestor objects more systematicChristoph Reimann1-8/+7
xml: small fixes according to Xlib or the spec
2010-08-02small fix wrt bitcase type namesChristoph Reimann1-5/+4
2010-07-22support name attribute for bitcases and set BitcaseType.has_name accordinglyChristoph Reimann1-1/+11
2010-07-15assign switch name to bitcases as well (important in case of switch that ↵Christoph Reimann2-4/+13
appear inside another switch)
2010-07-13- changed handling of anchestor types (may be more than one now)Christoph Reimann1-2/+147
- added SwitchType and BitcaseType
2010-07-13add support for new expr tags popcount, enumref, sumofChristoph Reimann1-1/+29
2010-06-12xcbgen: perform lenfield lookup within all anchestorsChristoph Reimann1-12/+15
2010-05-22changed Exception message in case of unknown/unhandled XML tagsChristoph Reimann1-2/+2
2010-05-14xcbgen: Add unop supportMarcin Kościelnicki1-1/+8
Reviewed-by: Julien Cristau <jcristau@debian.org> Signed-off-by: Julien Danjou <julien@danjou.info>
2010-05-14Revive support for hex literals in protocolMikhail Gusarov2-3/+3
As a side-effect it also adds octal and binary literals. Exact syntax is described at http://docs.python.org/reference/lexical_analysis.html#numbers It is unwise to use full syntax, as there might be other binding generators, octal, binary and hex literals seem to be safe though. Signed-off-by: Mikhail Gusarov <dottedmag@dottedmag.net> Signed-off-by: Julien Danjou <julien@danjou.info>
2009-10-21Revert "made changes to support new value-mask-pad field of valueparam ↵Eamon Walsh1-24/+4
structures" This change fixes a ConfigureWindow request padding issue, but has a bug that affects xpyb (#24507). This reverts commit 57934caa3fb207320c33312646d8e98290950f51.
2008-09-03Make bit-numbers available to code-generatorsCarsten Meier1-0/+3
The Enum-class now exports the bit numbers in the 'bits'-list if they have been specified in the protocol description. Signed-off-by: Bart Massey <bart@cs.pdx.edu>
2008-09-03Generate values instead of shift-expressions for enum-bitsCarsten Meier1-2/+1
Now more language independent as some languages don't have C-like shift-operators. Signed-off-by: Bart Massey <bart@cs.pdx.edu>
2008-09-03made changes to support new value-mask-pad field of valueparam structuresBart Massey1-4/+24
2008-07-09Work around a Python bug involving the file name 'types.py'.Eamon Walsh4-3/+3
2008-05-21Fix a type size calculation.Eamon Walsh1-1/+1
2008-05-16Add is_simple boolean attribute for plain integer types.Eamon Walsh1-0/+2
2008-04-19Add Python parser language-independent parts.Eamon Walsh7-0/+842