public inbox for libffi-discuss@sourceware.org
 help / color / mirror / Atom feed
* size_t and ptrdiff_t
@ 2012-09-18 23:34 Reuben Thomas
  0 siblings, 0 replies; only message in thread
From: Reuben Thomas @ 2012-09-18 23:34 UTC (permalink / raw)
  To: libffi-discuss

I want to bind memchr with libffi. memchr's prototype is:

       void *memchr(const void *s, int c, size_t n);

void * and int I can bind with libffi, but I can't bind size_t.

It would be possible of course to use sizeof and assume that size_t
will correspond to ffi_type_uint32 or ffi_type_uint64, similar to the
code that produces ffi_type_uint, but I wondered if there was a reason
why it is not implemented as standard, like other non-concrete
standard types such as int and long, and whether a patch to add
support for size_t and ptrdiff_t would be welcomed.

-- 
http://rrt.sc3d.org

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-09-18 23:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-18 23:34 size_t and ptrdiff_t Reuben Thomas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).