[pypy-commit] cffi default: This 256 is better found out automatically.

arigo noreply at buildbot.pypy.org
Fri Jul 13 19:56:42 CEST 2012


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r637:cb4309ca5812
Date: 2012-07-13 19:56 +0200
http://bitbucket.org/cffi/cffi/changeset/cb4309ca5812/

Log:	This 256 is better found out automatically.

diff --git a/demo/readdir2.py b/demo/readdir2.py
--- a/demo/readdir2.py
+++ b/demo/readdir2.py
@@ -15,7 +15,7 @@
     struct dirent {
         unsigned char  d_type;      /* type of file; not supported
                                        by all file system types */
-        char           d_name[256]; /* filename */
+        char           d_name[...]; /* filename */
         ...;
     };
 


More information about the pypy-commit mailing list