Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r47:08e8a5eea3b4
Date: 2014-09-16 15:39 +0200
http://bitbucket.org/cffi/creflect/changeset/08e8a5eea3b4/

Log:    Uniformize the class names

diff --git a/creflect/cparser.py b/creflect/cparser.py
--- a/creflect/cparser.py
+++ b/creflect/cparser.py
@@ -133,7 +133,7 @@
             realtype = model.unknown_ptr_type(decl.name)
         else:
             realtype = self._get_type(decl.type, approx_name = '$' + decl.name)
-        self.declarations.append(model.TypeDef(decl.name, realtype))
+        self.declarations.append(model.TypeDefDecl(decl.name, realtype))
 
     def _get_type_pointer(self, type, const):
         if isinstance(type, model.RawFunctionType):
diff --git a/creflect/model.py b/creflect/model.py
--- a/creflect/model.py
+++ b/creflect/model.py
@@ -413,7 +413,7 @@
         funcblock.sprintf(r"};\n")
 
 
-class TypeDef(object):
+class TypeDefDecl(object):
     def __init__(self, name, type):
         self.name = name
         self.type = type
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to