Commit 63575fe7 authored by Armin Rigo's avatar Armin Rigo
Browse files

Tweaks

parent 1ff67de0da1e
......@@ -231,6 +231,8 @@ strings as arguments instead of not byte strings. (Before cffi version 0.9,
inconsistently, not defined by default.)
.. _loading-libraries:
ffi.dlopen(): loading libraries in ABI mode
-------------------------------------------
......
......@@ -53,21 +53,19 @@ Download and Installation:
* http://pypi.python.org/packages/source/c/cffi/cffi-1.2.0.tar.gz
- Or grab the most current version by following the instructions below.
- MD5: ...
- SHA: ...
* Or get it from the `Bitbucket page`_:
* Or grab the most current version from the `Bitbucket page`_:
``hg clone https://bitbucket.org/cffi/cffi``
* ``python setup.py install`` or ``python setup_base.py install``
(should work out of the box on Linux or Windows; see below for
`MacOS X`_ or `Windows 64`_.)
* running the tests: ``py.test c/ _cffi1/ testing/`` (if you didn't
install cffi yet, you may need ``python setup_base.py build_ext -f
* running the tests: ``py.test c/ testing/`` (if you didn't
install cffi yet, you need first ``python setup_base.py build_ext -f
-i``)
.. _`Bitbucket page`: https://bitbucket.org/cffi/cffi
......
......@@ -33,8 +33,8 @@ Simple example (ABI level, in-line)
... """)
>>> C = ffi.dlopen(None) # loads the entire C namespace
>>> arg = ffi.new("char[]", "world") # equivalent to C code: char arg[] = "world";
>>> C.printf("hi there, %s!\n", arg) # call printf
hi there, world!
>>> C.printf("hi there, %s.\n", arg) # call printf
hi there, world.
17 # this is the return value
>>>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment