You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/scenarios/clibs.rst
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -12,9 +12,9 @@ C Foreign Function Interface
12
12
13
13
`CFFI <https://cffi.readthedocs.io/en/latest/>`_ provides a simple to use
14
14
mechanism for interfacing with C from both CPython and PyPy. It supports two
15
-
modes: an inline ABI compatibility mode (example provided below), which allows
15
+
modes: an inline `ABI<https://stackoverflow.com/questions/2171177/what-is-an-application-binary-interface-abi>`_ compatibility mode (example provided below), which allows
16
16
you to dynamically load and run functions from executable modules (essentially
17
-
exposing the same functionality as LoadLibrary or dlopen), and an API mode,
17
+
exposing the same functionality as `LoadLibrary <https://docs.microsoft.com/en-us/windows/desktop/api/libloaderapi/nf-libloaderapi-loadlibrarya>`_ or `dlopen<https://www.tldp.org/HOWTO/C++-dlopen/index.html>`_), and an API mode,
18
18
which allows you to build C extension modules.
19
19
20
20
ABI Interaction
@@ -41,13 +41,13 @@ library for interfacing with C/C++ from CPython, and it provides not only
41
41
full access to the native C interface of most major operating systems (e.g.,
42
42
kernel32 on Windows, or libc on \*nix), but also provides support for loading
43
43
and interfacing with dynamic libraries, such as DLLs or shared objects, at
44
-
runtime. It does bring along with it a whole host of types for interacting
44
+
runtime. It brings along with it a whole host of types for interacting
45
45
with system APIs, and allows you to rather easily define your own complex
46
46
types, such as structs and unions, and allows you to modify things such as
47
47
padding and alignment, if needed. It can be a bit crufty to use, but in
48
-
conjunction with the `struct <https://docs.python.org/3.5/library/struct.html>`_
48
+
conjunction with the `struct <https://docs.python.org/3/library/struct.html>`_
49
49
module, you are essentially provided full control over how your data types get
50
-
translated into something usable by a pure C(++) method.
50
+
translated into something usable by a pure C/C++ method.
0 commit comments