diff options
author | Armin Rigo <arigo@tunes.org> | 2016-06-05 23:01:54 +0200 |
---|---|---|
committer | Armin Rigo <arigo@tunes.org> | 2016-06-05 23:01:54 +0200 |
commit | f3ba2e017250bfb0986134f19064426438c37f7c (patch) | |
tree | fe6a5c65968272b64957a6ebb7cd8869567bb069 /demo/gmp_build.py | |
parent | af4e83e3dee906aa54606546f397aa7848d01519 (diff) | |
download | cffi-f3ba2e017250bfb0986134f19064426438c37f7c.tar.gz |
Rename 'ffi' to 'ffibuilder' in the docs and in a few demos, when
it is used in out-of-line builders. I think it makes things clearer,
particularly in examples where the two 'ffi' are close together (and
even sometimes used in the same sentence...)
Diffstat (limited to 'demo/gmp_build.py')
-rw-r--r-- | demo/gmp_build.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/demo/gmp_build.py b/demo/gmp_build.py index 763d6cd..e1a6000 100644 --- a/demo/gmp_build.py +++ b/demo/gmp_build.py @@ -6,9 +6,9 @@ import cffi # http://bazaar.launchpad.net/~tolot-solar-empire/+junk/gmpy_cffi/files # -ffi = cffi.FFI() +ffibuilder = cffi.FFI() -ffi.cdef(""" +ffibuilder.cdef(""" typedef struct { ...; } MP_INT; typedef MP_INT mpz_t[1]; @@ -19,8 +19,8 @@ ffi.cdef(""" """) -ffi.set_source('_gmp_cffi', "#include <gmp.h>", +ffibuilder.set_source('_gmp_cffi', "#include <gmp.h>", libraries=['gmp', 'm']) if __name__ == '__main__': - ffi.compile(verbose=True) + ffibuilder.compile(verbose=True) |