Commits

Armin Rigo  committed 2a78cdb

Tweaks.

  • Participants
  • Parent commits 2eb031e

Comments (0)

Files changed (1)

File cffi/cparser.py

             isinstance(params[-1].type, pycparser.c_ast.TypeDecl) and
             isinstance(params[-1].type.type,
                        pycparser.c_ast.IdentifierType) and
-            ''.join(params[-1].type.type.names) == '__dotdotdot__')
+            params[-1].type.type.names == ['__dotdotdot__'])
         if ellipsis:
             params.pop()
         if (len(params) == 1 and
 
     def _get_struct_or_union_type(self, kind, type):
         name = type.name
+        assert name is not None       # needs to be fixed
         key = '%s %s' % (kind, name)
         if key in self._declarations:
             return self._declarations[key]