Closes #1289: add more well known C types as not referencable in C domain

This commit is contained in:
Georg Brandl 2014-01-12 20:53:56 +01:00
parent 123572e1db
commit 170c75a791

View File

@ -59,7 +59,12 @@ class CObject(ObjectDescription):
# These C types aren't described anywhere, so don't try to create # These C types aren't described anywhere, so don't try to create
# a cross-reference to them # a cross-reference to them
stopwords = set(('const', 'void', 'char', 'int', 'long', 'FILE', 'struct')) stopwords = set((
'const', 'void', 'char', 'wchar_t', 'int', 'short',
'long', 'float', 'double', 'unsigned', 'signed', 'FILE',
'clock_t', 'time_t', 'ptrdiff_t', 'size_t', 'ssize_t',
'struct', '_Bool',
))
def _parse_type(self, node, ctype): def _parse_type(self, node, ctype):
# add cross-ref nodes for all words # add cross-ref nodes for all words