[pypy-svn] r68919 - pypy/trunk/pypy/translator/c

arigo at codespeak.net arigo at codespeak.net
Mon Nov 2 16:56:38 CET 2009


Author: arigo
Date: Mon Nov  2 16:56:37 2009
New Revision: 68919

Modified:
   pypy/trunk/pypy/translator/c/genc.py
Log:
Don't print a meaningless line "struct None;" to structdef.h.


Modified: pypy/trunk/pypy/translator/c/genc.py
==============================================================================
--- pypy/trunk/pypy/translator/c/genc.py	(original)
+++ pypy/trunk/pypy/translator/c/genc.py	Mon Nov  2 16:56:37 2009
@@ -703,7 +703,7 @@
         if hasattr(node, 'forward_decl'):
             if node.forward_decl:
                 print >> f, node.forward_decl
-        else:
+        elif node.name is not None:
             print >> f, '%s %s;' % (node.typetag, node.name)
     print >> f
     for node in structdeflist:



More information about the Pypy-commit mailing list