Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
cffi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OpenVMS
Python
Modules
cffi
Commits
c750b199a0f0
Commit
c750b199a0f0
authored
12 years ago
by
Armin Rigo
Browse files
Options
Downloads
Patches
Plain Diff
Fix
parent
e9011d41d639
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
demo/readdir_ctypesdef2.py
+2
-2
2 additions, 2 deletions
demo/readdir_ctypesdef2.py
with
2 additions
and
2 deletions
demo/readdir_ctypesdef2.py
+
2
−
2
View file @
c750b199
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment