diff options
author | Matt Wette <matt.wette@gmail.com> | 2017-11-22 16:32:39 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2017-11-22 16:33:57 +0100 |
commit | bb5d316b161add31612e6afe41e5a6ea5851c277 (patch) | |
tree | 835e4781a0ec8a9a0844d8c74ce6a1bb379702c6 /doc | |
parent | 3e7c80a62f760d2110dc19975eb588dd7526a326 (diff) |
foreign: Add 'uintptr_t' and 'intptr_t'.
* libguile/foreign.c (scm_uintptr_t, scm_intptr_t): New variables.
(scm_init_foreign): Define them.
* module/system/foreign.scm: Export 'intptr_t' and 'uintptr_t'.
* doc/ref/api-foreign.texi (Foreign Types): Document them.
Co-authored-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/ref/api-foreign.texi | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/ref/api-foreign.texi b/doc/ref/api-foreign.texi index bb93d6d1f..d99a33300 100644 --- a/doc/ref/api-foreign.texi +++ b/doc/ref/api-foreign.texi @@ -498,6 +498,8 @@ platform-dependent size: @defvrx {Scheme Variable} size_t @defvrx {Scheme Variable} ssize_t @defvrx {Scheme Variable} ptrdiff_t +@defvrx {Scheme Variable} intptr_t +@defvrx {Scheme Variable} uintptr_t Values exported by the @code{(system foreign)} module, representing C numeric types. For example, @code{long} may be @code{equal?} to @code{int64} on a 64-bit platform. |