diff options
| author | Jack Jansen <jack.jansen@cwi.nl> | 2000-07-06 15:17:52 +0000 |
|---|---|---|
| committer | Jack Jansen <jack.jansen@cwi.nl> | 2000-07-06 15:17:52 +0000 |
| commit | e3889da0762776008260a8d3c9489c6aa00aa844 (patch) | |
| tree | 9a65dfbc588630196f14590ce59242f63ecc3a8b /Tools/bgen | |
| parent | 56cdce3070605422a655b8da8af23622ed876dad (diff) | |
| download | cpython-git-e3889da0762776008260a8d3c9489c6aa00aa844.tar.gz | |
Make a distinction between shorts and unsigned shorts.
Diffstat (limited to 'Tools/bgen')
| -rw-r--r-- | Tools/bgen/bgen/bgenType.py | 1 | ||||
| -rw-r--r-- | Tools/bgen/bgen/macsupport.py | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/Tools/bgen/bgen/bgenType.py b/Tools/bgen/bgen/bgenType.py index b63a06f98f..ac3e74da07 100644 --- a/Tools/bgen/bgen/bgenType.py +++ b/Tools/bgen/bgen/bgenType.py @@ -137,6 +137,7 @@ class OutputOnlyType(OutputOnlyMixIn, Type): void = None char = Type("char", "c") short = Type("short", "h") +unsigned_short = Type("unsigned short", "H") int = Type("int", "i") long = Type("long", "l") unsigned_long = Type("unsigned long", "l") diff --git a/Tools/bgen/bgen/macsupport.py b/Tools/bgen/bgen/macsupport.py index 05d584dbd8..5259f05797 100644 --- a/Tools/bgen/bgen/macsupport.py +++ b/Tools/bgen/bgen/macsupport.py @@ -21,7 +21,7 @@ TextEncoding = Type("TextEncoding", "l") UInt8 = Type("UInt8", "b") SInt8 = Type("SInt8", "b") -UInt16 = Type("UInt16", "h") +UInt16 = Type("UInt16", "H") SInt16 = Type("SInt16", "h") UInt32 = Type("UInt32", "l") SInt32 = Type("SInt32", "l") |
