Author: Armin Rigo <ar...@tunes.org> Branch: cpy-extension Changeset: r331:b7673c129631 Date: 2012-06-14 13:17 +0200 http://bitbucket.org/cffi/cffi/changeset/b7673c129631/
Log: Restore the comments copy-pasted from the man page. diff --git a/demo/readdir.py b/demo/readdir.py --- a/demo/readdir.py +++ b/demo/readdir.py @@ -11,11 +11,12 @@ typedef long off_t; struct dirent { - ino_t d_ino; - off_t d_off; - unsigned short d_reclen; - unsigned char d_type; - char d_name[256]; + ino_t d_ino; /* inode number */ + off_t d_off; /* offset to the next dirent */ + unsigned short d_reclen; /* length of this record */ + unsigned char d_type; /* type of file; not supported + by all file system types */ + char d_name[256]; /* filename */ }; int readdir_r(DIR *dirp, struct dirent *entry, struct dirent **result); diff --git a/demo/readdir2.py b/demo/readdir2.py --- a/demo/readdir2.py +++ b/demo/readdir2.py @@ -9,8 +9,9 @@ typedef ... DIR; struct dirent { - unsigned char d_type; - char d_name[]; + unsigned char d_type; /* type of file; not supported + by all file system types */ + char d_name[256]; /* filename */ ...; }; _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit