Overriding standard type names has no effect if the type was already used

Issue #397 new
Armin Rigo
created an issue

Adapted from Chiong on python-cffi:

>>> import cffi
>>> ffi=cffi.FFI()
>>> ffi.sizeof("size_t")
8
>>> ffi.cdef("typedef char size_t;")
>>> ffi.sizeof("size_t")
8
>>> ffi=cffi.FFI()
>>> ffi.cdef("typedef char size_t;")
>>> ffi.sizeof("size_t")
1

Comments (0)

  1. Log in to comment