Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
c2da9945
Commit
c2da9945
authored
Jun 12, 2006
by
Thomas Heller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add pep-291 compatibility markers.
parent
f6083170
Changes
17
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
61 additions
and
2 deletions
+61
-2
Lib/ctypes/__init__.py
Lib/ctypes/__init__.py
+3
-0
Lib/ctypes/_endian.py
Lib/ctypes/_endian.py
+3
-0
Lib/ctypes/macholib/__init__.py
Lib/ctypes/macholib/__init__.py
+3
-0
Lib/ctypes/macholib/dyld.py
Lib/ctypes/macholib/dyld.py
+3
-0
Lib/ctypes/macholib/dylib.py
Lib/ctypes/macholib/dylib.py
+3
-0
Lib/ctypes/macholib/framework.py
Lib/ctypes/macholib/framework.py
+3
-0
Lib/ctypes/util.py
Lib/ctypes/util.py
+3
-0
Lib/ctypes/wintypes.py
Lib/ctypes/wintypes.py
+3
-0
Modules/_ctypes/_ctypes.c
Modules/_ctypes/_ctypes.c
+5
-0
Modules/_ctypes/_ctypes_test.c
Modules/_ctypes/_ctypes_test.c
+5
-0
Modules/_ctypes/callbacks.c
Modules/_ctypes/callbacks.c
+4
-0
Modules/_ctypes/callproc.c
Modules/_ctypes/callproc.c
+5
-0
Modules/_ctypes/cfield.c
Modules/_ctypes/cfield.c
+4
-0
Modules/_ctypes/ctypes.h
Modules/_ctypes/ctypes.h
+3
-1
Modules/_ctypes/ctypes_dlfcn.h
Modules/_ctypes/ctypes_dlfcn.h
+3
-1
Modules/_ctypes/malloc_closure.c
Modules/_ctypes/malloc_closure.c
+4
-0
Modules/_ctypes/stgdict.c
Modules/_ctypes/stgdict.c
+4
-0
No files found.
Lib/ctypes/__init__.py
View file @
c2da9945
######################################################################
# This file should be kept compatible with Python 2.3, see PEP 291. #
######################################################################
"""create and manipulate C data types in Python"""
import
os
as
_os
,
sys
as
_sys
...
...
Lib/ctypes/_endian.py
View file @
c2da9945
######################################################################
# This file should be kept compatible with Python 2.3, see PEP 291. #
######################################################################
import
sys
from
ctypes
import
*
...
...
Lib/ctypes/macholib/__init__.py
View file @
c2da9945
######################################################################
# This file should be kept compatible with Python 2.3, see PEP 291. #
######################################################################
"""
Enough Mach-O to make your head spin.
...
...
Lib/ctypes/macholib/dyld.py
View file @
c2da9945
######################################################################
# This file should be kept compatible with Python 2.3, see PEP 291. #
######################################################################
"""
dyld emulation
"""
...
...
Lib/ctypes/macholib/dylib.py
View file @
c2da9945
######################################################################
# This file should be kept compatible with Python 2.3, see PEP 291. #
######################################################################
"""
Generic dylib path manipulation
"""
...
...
Lib/ctypes/macholib/framework.py
View file @
c2da9945
######################################################################
# This file should be kept compatible with Python 2.3, see PEP 291. #
######################################################################
"""
Generic framework path manipulation
"""
...
...
Lib/ctypes/util.py
View file @
c2da9945
######################################################################
# This file should be kept compatible with Python 2.3, see PEP 291. #
######################################################################
import
sys
,
os
# find_library(name) returns the pathname of a library, or None.
...
...
Lib/ctypes/wintypes.py
View file @
c2da9945
######################################################################
# This file should be kept compatible with Python 2.3, see PEP 291. #
######################################################################
# XXX This module needs cleanup.
from
ctypes
import
*
...
...
Modules/_ctypes/_ctypes.c
View file @
c2da9945
/*****************************************************************
This file should be kept compatible with Python 2.3, see PEP 291.
*****************************************************************/
/*
ToDo:
...
...
Modules/_ctypes/_ctypes_test.c
View file @
c2da9945
/*****************************************************************
This file should be kept compatible with Python 2.3, see PEP 291.
*****************************************************************/
#include <Python.h>
/*
...
...
Modules/_ctypes/callbacks.c
View file @
c2da9945
/*****************************************************************
This file should be kept compatible with Python 2.3, see PEP 291.
*****************************************************************/
#include "Python.h"
#include "compile.h"
/* required only for 2.3, as it seems */
#include "frameobject.h"
...
...
Modules/_ctypes/callproc.c
View file @
c2da9945
/*****************************************************************
This file should be kept compatible with Python 2.3, see PEP 291.
*****************************************************************/
/*
* History: First version dated from 3/97, derived from my SCMLIB version
* for win16.
...
...
Modules/_ctypes/cfield.c
View file @
c2da9945
/*****************************************************************
This file should be kept compatible with Python 2.3, see PEP 291.
*****************************************************************/
#include "Python.h"
#include <ffi.h>
...
...
Modules/_ctypes/ctypes.h
View file @
c2da9945
/******************************************************************/
/*****************************************************************
This file should be kept compatible with Python 2.3, see PEP 291.
*****************************************************************/
#if (PY_VERSION_HEX < 0x02050000)
typedef
int
Py_ssize_t
;
...
...
Modules/_ctypes/ctypes_dlfcn.h
View file @
c2da9945
/******************************************************************/
/*****************************************************************
This file should be kept compatible with Python 2.3, see PEP 291.
*****************************************************************/
#ifndef _CTYPES_DLFCN_H_
#define _CTYPES_DLFCN_H_
...
...
Modules/_ctypes/malloc_closure.c
View file @
c2da9945
/*****************************************************************
This file should be kept compatible with Python 2.3, see PEP 291.
*****************************************************************/
#include <Python.h>
#include <ffi.h>
#ifdef MS_WIN32
...
...
Modules/_ctypes/stgdict.c
View file @
c2da9945
/*****************************************************************
This file should be kept compatible with Python 2.3, see PEP 291.
*****************************************************************/
#include "Python.h"
#include <ffi.h>
#ifdef MS_WIN32
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment