diff options
author | Colin Walters <walters@verbum.org> | 2015-09-27 14:32:38 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2015-09-27 14:32:45 -0400 |
commit | 7c37a16ade424cf063414ce0dd4d170fd2f9c9b1 (patch) | |
tree | 0b09436c3e8c6dafd98c2e539fc9d2d8c8aecd6e /giscanner/ast.py | |
parent | 4d9453f218074d03a5c44dbd44eeadb8e9e89f6c (diff) | |
download | gobject-introspection-7c37a16ade424cf063414ce0dd4d170fd2f9c9b1.tar.gz |
scanner: Warn and ignore on incorrect transfer annotations
This reverts commit 232f3c831260f596e36159112292897962a505b4.
Diffstat (limited to 'giscanner/ast.py')
-rw-r--r-- | giscanner/ast.py | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/giscanner/ast.py b/giscanner/ast.py index c7ea2d74..405a71fd 100644 --- a/giscanner/ast.py +++ b/giscanner/ast.py @@ -214,13 +214,17 @@ TYPE_FILENAME = Type(target_fundamental='filename', ctype='gchar*') TYPE_VALIST = Type(target_fundamental='va_list', ctype='va_list') -BASIC_GIR_TYPES = [TYPE_BOOLEAN, TYPE_INT8, TYPE_UINT8, TYPE_INT16, - TYPE_UINT16, TYPE_INT32, TYPE_UINT32, TYPE_INT64, - TYPE_UINT64, TYPE_CHAR, TYPE_SHORT, TYPE_USHORT, TYPE_INT, - TYPE_UINT, TYPE_LONG, TYPE_ULONG, TYPE_SIZE, TYPE_SSIZE, - TYPE_LONG_LONG, TYPE_LONG_ULONG, TYPE_INTPTR, TYPE_UINTPTR, - TYPE_FLOAT, TYPE_DOUBLE, - TYPE_LONG_DOUBLE, TYPE_UNICHAR, TYPE_GTYPE] +BASIC_TYPES = [TYPE_BOOLEAN, TYPE_INT8, TYPE_UINT8, TYPE_INT16, + TYPE_UINT16, TYPE_INT32, TYPE_UINT32, TYPE_INT64, + TYPE_UINT64, TYPE_CHAR, TYPE_SHORT, TYPE_USHORT, TYPE_INT, + TYPE_UINT, TYPE_LONG, TYPE_ULONG, TYPE_SIZE, TYPE_SSIZE, + TYPE_LONG_LONG, TYPE_LONG_ULONG, + TYPE_FLOAT, TYPE_DOUBLE, + TYPE_LONG_DOUBLE, TYPE_UNICHAR, TYPE_GTYPE] + +BASIC_GIR_TYPES = [TYPE_INTPTR, TYPE_UINTPTR] +BASIC_GIR_TYPES.extend(BASIC_TYPES) + GIR_TYPES = [TYPE_NONE, TYPE_ANY] GIR_TYPES.extend(BASIC_GIR_TYPES) GIR_TYPES.extend([TYPE_STRING, TYPE_FILENAME, TYPE_VALIST]) |