From 61f59a247658b126b93c1e57f3eca4776e62c5c4 Mon Sep 17 00:00:00 2001 From: Matthew Flatt Date: Wed, 20 Jun 2018 18:25:25 -0600 Subject: [PATCH] ffi/unsafe docs: clarify C->Racket transtion for `_[std]bool` Closes #1817 --- pkgs/racket-doc/scribblings/foreign/types.scrbl | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/pkgs/racket-doc/scribblings/foreign/types.scrbl b/pkgs/racket-doc/scribblings/foreign/types.scrbl index 8d410d2d41..52aaabf153 100644 --- a/pkgs/racket-doc/scribblings/foreign/types.scrbl +++ b/pkgs/racket-doc/scribblings/foreign/types.scrbl @@ -249,17 +249,18 @@ values.} @defthing[_stdbool ctype?]{ The @racket[_stdbool] type represents the C99 @cpp{bool} type from -@cpp{}. It translates @racket[#f] to a @racket[0] -@cpp{bool} and any other value to a @racket[1] @cpp{bool}. +@cpp{}. Going from Racket to C, @racket[_stdbool] translates +@racket[#f] to a @racket[0] @cpp{bool} and any other value to a +@racket[1] @cpp{bool}. Going from C to Racket, @racket[_stdbool] translates +@racket[0] to a @racket[#f] and any other value to @racket[#t]. @history[#:added "6.0.0.6"]} @defthing[_bool ctype?]{ -Translates @racket[#f] to a @racket[0] @cpp{int} and any other -value to a @racket[1] @cpp{int}, reflecting one of many -traditional (i.e., pre-C99) encodings of booleans. See also -@racket[_stdbool].} +Like @racket[_stdbool], but with an @cpp{int} representation on the C +side, reflecting one of many traditional (i.e., pre-C99) encodings of +booleans.} @defthing[_void ctype?]{