summaryrefslogtreecommitdiff
path: root/demo/readdir2.py
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2012-06-14 13:17:49 +0200
committerArmin Rigo <arigo@tunes.org>2012-06-14 13:17:49 +0200
commit0ad74abc09966571a6e15b92f29296ff5eeff90d (patch)
treecddfdc919a9921405e42f6756f1954c33dcb43b1 /demo/readdir2.py
parent6d91e461d8a0d96d54afd8fecaf4ccc0cbe05e9a (diff)
downloadcffi-0ad74abc09966571a6e15b92f29296ff5eeff90d.tar.gz
Restore the comments copy-pasted from the man page.
Diffstat (limited to 'demo/readdir2.py')
-rw-r--r--demo/readdir2.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/demo/readdir2.py b/demo/readdir2.py
index 834289d..f999314 100644
--- a/demo/readdir2.py
+++ b/demo/readdir2.py
@@ -9,8 +9,9 @@ ffi.cdef("""
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 */
...;
};