diff options
author | Keith Packard <keithp@keithp.com> | 2013-07-11 15:56:54 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2013-11-06 16:50:55 -0800 |
commit | 4d8241c67c83957aa0f612da6823db2d18fdd314 (patch) | |
tree | 34b5a30d098b2ca030541b0a19ca69b8e3bcc952 /xcbgen/state.py | |
parent | 84c032775f30e313395c63b96ecec7a184fd0938 (diff) |
Add CARD64/INT64 protocol types
No reason to make people use two 32-bit values when every modern
compiler has native 64-bit objects.
Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'xcbgen/state.py')
-rw-r--r-- | xcbgen/state.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xcbgen/state.py b/xcbgen/state.py index ae3d2d4..10a8722 100644 --- a/xcbgen/state.py +++ b/xcbgen/state.py @@ -74,9 +74,11 @@ class Module(object): self.add_type('CARD8', '', ('uint8_t',), tcard8) self.add_type('CARD16', '', ('uint16_t',), tcard16) self.add_type('CARD32', '', ('uint32_t',), tcard32) + self.add_type('CARD64', '', ('uint64_t',), tcard64) self.add_type('INT8', '', ('int8_t',), tint8) self.add_type('INT16', '', ('int16_t',), tint16) self.add_type('INT32', '', ('int32_t',), tint32) + self.add_type('INT64', '', ('int64_t',), tint64) self.add_type('BYTE', '', ('uint8_t',), tcard8) self.add_type('BOOL', '', ('uint8_t',), tcard8) self.add_type('char', '', ('char',), tchar) |