Skip to content
Snippets Groups Projects
Commit c750b199a0f0 authored by Armin Rigo's avatar Armin Rigo
Browse files

Fix

parent e9011d41d639
No related branches found
No related tags found
No related merge requests found
...@@ -11,10 +11,10 @@ ...@@ -11,10 +11,10 @@
raise Exception("Linux-only demo") raise Exception("Linux-only demo")
DIR = ctypes.OPAQUE # <-- DIR = ctypes.OPAQUE() # <--
DIR_p = ctypes.POINTER(DIR) DIR_p = ctypes.POINTER(DIR)
class DIRENT(ctypes.PartialStructure): # <-- class DIRENT(ctypes.PartialStructure): # <--
_fields_ = [ _fields_ = [
('d_type', ctypes.c_ubyte), # type of file; not supported ('d_type', ctypes.c_ubyte), # type of file; not supported
# by all file system types # by all file system types
...@@ -15,10 +15,10 @@ ...@@ -15,10 +15,10 @@
DIR_p = ctypes.POINTER(DIR) DIR_p = ctypes.POINTER(DIR)
class DIRENT(ctypes.PartialStructure): # <-- class DIRENT(ctypes.PartialStructure): # <--
_fields_ = [ _fields_ = [
('d_type', ctypes.c_ubyte), # type of file; not supported ('d_type', ctypes.c_ubyte), # type of file; not supported
# by all file system types # by all file system types
('d_name', ctypes.c_char * Ellipsis), # filename ('d_name', ctypes.c_char * Ellipsis), # <--
] ]
DIRENT_p = ctypes.POINTER(DIRENT) DIRENT_p = ctypes.POINTER(DIRENT)
DIRENT_pp = ctypes.POINTER(DIRENT_p) DIRENT_pp = ctypes.POINTER(DIRENT_p)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment