зеркало из https://github.com/mozilla/gecko-dev.git
bug 780203 - add [u]intn_t types to xpidl r=khuey
This commit is contained in:
Родитель
e6ca420bb5
Коммит
f92bb2378a
|
@ -18,6 +18,13 @@ TypeMap = {
|
|||
# builtins
|
||||
'boolean': xpt.Type.Tags.boolean,
|
||||
'void': xpt.Type.Tags.void,
|
||||
'int16_t': xpt.Type.Tags.int16,
|
||||
'int32_t': xpt.Type.Tags.int32,
|
||||
'int64_t': xpt.Type.Tags.int64,
|
||||
'uint8_t': xpt.Type.Tags.uint8,
|
||||
'uint16_t': xpt.Type.Tags.uint16,
|
||||
'uint32_t': xpt.Type.Tags.uint32,
|
||||
'uint64_t': xpt.Type.Tags.uint64,
|
||||
'octet': xpt.Type.Tags.uint8,
|
||||
'short': xpt.Type.Tags.int16,
|
||||
'long': xpt.Type.Tags.int32,
|
||||
|
|
|
@ -120,6 +120,13 @@ class Builtin(object):
|
|||
builtinNames = [
|
||||
Builtin('boolean', 'bool'),
|
||||
Builtin('void', 'void'),
|
||||
Builtin('int16_t', 'int16_t', True, True),
|
||||
Builtin('int32_t', 'int32_t', True, True),
|
||||
Builtin('int64_t', 'int64_t', True, False),
|
||||
Builtin('uint8_t', 'uint8_t'),
|
||||
Builtin('uint16_t', 'uint16_t', False, True),
|
||||
Builtin('uint32_t', 'uint32_t', False, True),
|
||||
Builtin('uint64_t', 'uint64_t', False, False),
|
||||
Builtin('octet', 'PRUint8'),
|
||||
Builtin('short', 'PRInt16', True, True),
|
||||
Builtin('long', 'PRInt32', True, True),
|
||||
|
|
Загрузка…
Ссылка в новой задаче