Matthew Flatt
ff41a896bc
add ffi/com',
ffi/unsafe/com'
2012-01-10 18:35:32 -07:00
Matthew Flatt
1ebde53db7
fix `compiler-sizeof' docs and error message
2011-11-30 07:39:36 -07:00
Eric Hanchrow
23d38b14a4
Add missing word
2011-10-22 20:58:56 -04:00
Matthew Flatt
e71abf5aba
Add a tutorial to the FFI overview
2011-10-21 20:34:51 -06:00
Matthew Flatt
5724aa1d1b
doc clarifications
...
Merge to 5.2
2011-10-10 14:45:53 -06:00
Matthew Flatt
f38e57ff68
add #:get-lib-dirs and #:fail args to `ffi-lib'
...
Not currently used, because an experiment that used the additions
was abandoned, but another use in the future seems likely.
2011-10-05 06:28:30 -06:00
John Clements
9b91d37032
added entry for cstruct->list converter
2011-09-06 10:05:42 -07:00
Kevin Tew
d5d28d3357
fix [] to {}
2011-08-30 11:27:18 -06:00
Kevin Tew
07c5c076e2
Fix cpointer and cstruct tag text
2011-08-30 09:52:06 -06:00
Kevin Tew
a810b30b87
remove underscore from cpointer key
2011-08-29 08:44:32 -06:00
Kevin Tew
0f595f4882
docs cpointers over place-channels
2011-08-23 14:02:01 -06:00
Matthew Flatt
345b06838d
FFI: add C arrays and unions
2011-08-20 10:24:32 -06:00
Matthew Flatt
9a14b47ccc
doc typo
...
Closes PR 12006
2011-08-02 17:15:23 -06:00
Eli Barzilay
3157955d40
".ss" -> ".rkt" scan done.
2011-07-02 10:37:53 -04:00
Ryan Culpepper
1b702a2ae3
docs reorganization
...
added tutorial, racket categories
relabeled some other categories
normalized manual names: de-bolded, changed some names
2011-07-01 17:16:53 -06:00
Matthew Flatt
59731368fc
add ffi/winapi; use it in mzlib/os
...
Closes PR 12007
2011-07-01 10:42:17 -06:00
Matthew Flatt
1160d3df62
remove syntax certificates; add syntax taints
2011-06-29 19:15:48 -06:00
Eli Barzilay
a38f384a00
Finish converting scheme' ->
racket'.
...
Everything compiles fine now even if the compatibility bindings are
gone.
2011-06-28 00:45:38 -04:00
Eli Barzilay
ac26fe7554
A ton of @scheme*' ->
@racket*' and related updates.
...
Also, updates some of the mzlib files to point at `racket/*' libraries
rather than to `scheme/*' ones.
2011-06-25 04:08:47 -04:00
Eli Barzilay
debd1f9f1e
Recketizing much in `net/*', mass ".ss" -> ".rkt" conversion in .scrbl files.
...
(Some other minor things here and there.)
2011-06-20 04:27:14 -04:00
Matthew Flatt
f34a31cac9
"under <platform>" -> "on <platform>"; "X" -> "Unix"
...
I originally picked "under" as the preposition to go before
a platform name, but obviously you should build "on" a
platform, and "under" suddenly annoys me. The choice of "on"
is now codified in the documentation style guide. Meanwhile,
"Unix" insted of "X" seems more clear and consistent in the
`racket/gui' docs.
More usefully, this patch also fixes a few out-of-date
platform-specific claims.
2011-06-17 18:54:43 -06:00
Matthew Flatt
49aadc599a
ffi: add `#:in-original-place?' to deal with thread-unsafe libs
...
and use it for Pango, which is not thread-safe at the C level
2011-05-13 08:55:04 -06:00
Matthew Flatt
3bf438f580
rewrite `ffi-lib' docs with better guidance on versions
2011-05-03 13:16:21 -06:00
Jon Rafkind
cdb63b9c77
show an example of define-fun-syntax and using the keywords
2011-04-18 17:27:21 -06:00
Ryan Culpepper
9bc3457bbd
renamed ffi/unsafe/security to ffi/file
2011-04-15 14:47:29 -06:00
Ryan Culpepper
a19a0340aa
added ffi/unsafe/security
2011-04-07 09:47:20 -06:00
Matthew Flatt
ff0a591b7b
change FFI `_float' to coerce to Racket double-precision flonum
2011-01-31 19:33:07 -07:00
Matthew Flatt
2c0a034792
doc typo fixes from Eric Hanchrow
2011-01-27 19:20:13 -07:00
Robby Findler
519eb580b2
typo
2010-12-24 13:36:31 -06:00
Matthew Flatt
7f5ac2b7f9
restore Win64 fix to FFI
...
that I had improperly added to "foreign.c" instead of the source
2010-12-14 07:53:19 -07:00
Matthew Flatt
116d88577e
restore old behavior of _fixint' and
_ufixint'
...
Closes PR 11492
2010-12-03 14:20:38 -07:00
Matthew Flatt
8b8dd77ad6
change nearly all long's to
intptr_t'
...
and also changed vector, string, and byte string counts to
`intptr_t' instead of `int'.
Except for the vector count, etc. change, this is not really a
change for any currently supported platform, where `intptr_t'
is the same as `long'. It's a step to suporting Win64, though,
where `long' is the same as `int' instead of `intptr_t'.
2010-12-03 08:48:33 -07:00
Matthew Flatt
bd28f2ab54
make `equal?' equate C pointers that refer to the same address
2010-11-24 13:41:11 -07:00
John Clements
b2edac3179
edited async-apply description
2010-11-16 17:56:13 -08:00
Eli Barzilay
b8bbed6eb4
Throw an error when translating an unknown enum integer to a symbol.
...
Also, add a keyword argument that can be used to get the old behavior
back.
Also, improve the way the `_enum' and `_bitmask' functions are wrapped.
2010-11-16 15:19:38 -05:00
Matthew Flatt
a8b318da7a
fix ffi issue with pointer vs. gcpointer
...
- don't put a non-gcpointer into a pointer array during ffi call setup
- fix GCness of pointers to structs inside of structs
2010-11-14 15:54:17 -07:00
Eli Barzilay
615d8f1329
Add _intptr etc; closes PR11311.
2010-10-12 20:58:08 -04:00
Matthew Flatt
337ace3847
add u8vector->cpointer for consistency; document ->cpointer, etc.
2010-09-27 06:08:58 -04:00
John Clements
c0e34a7166
minor doc update to ffi/cvector
2010-09-25 17:19:03 -07:00
Matthew Flatt
17cdb9eb3b
move #:alignment option for `define-cstruct' to end
...
to make it consistent with options for `struct' and `define-struct'
2010-09-10 08:06:41 -06:00
Matthew Flatt
6ac15688b2
add alignment option to ffi's cstruct support
2010-09-10 06:59:52 -06:00
John Clements
c636aeb840
added docs for 'type' argument to memset
2010-08-27 16:42:32 -07:00
Matthew Flatt
2a387ebba2
try to clarify the async-apply protocol for callbacks
2010-08-25 14:58:27 -06:00
Matthew Flatt
9c0c42f24a
fix ffi/unsafe/try-atomic interaction with exns and prompt tags
2010-08-15 11:02:30 -06:00
Matthew Flatt
9dda6f5d6b
doc clarification
2010-08-14 13:52:09 -06:00
Matthew Flatt
6c8a914c80
support for speculatively atomic calls in ffi/unsafe/try-atomic
2010-08-07 20:49:23 -05:00
Matthew Flatt
4d1e97ec8d
change start-atomic and end-atomic to disable breaks
2010-08-07 20:40:32 -05:00
John Clements
f86edf3c8e
added message about OS behavior on (non-)reload of library
2010-08-06 20:44:14 -04:00
Matthew Flatt
fd5213b0ef
typo in foreignobjc docs
...
Closes PR 11038
2010-07-16 20:43:22 -06:00
Matthew Flatt
768a3721f9
add async-apply support to FFI
2010-07-11 14:59:40 -06:00
Matthew Flatt
5592dd1489
doc corrections
...
Merge to 5.0
2010-05-31 13:17:11 -06:00
Matthew Flatt
f94b727118
Fix one "PLT" that should be "Racket"
...
Merge to v5.0 if convenient
2010-05-28 16:55:25 -06:00
David Van Horn
22e2f3061f
Various typo, spelling, and punctuation fixes in scribblings.
...
Signed-off-by: David Van Horn <dvanhorn@ccs.neu.edu>
2010-05-28 14:47:54 -06:00
Eli Barzilay
28946a0a43
More reformatting
2010-05-21 20:41:35 -04:00
Eli Barzilay
c4f67b3e74
Small typos, some reformatting.
...
Fixes PR10920
2010-05-21 16:30:16 -04:00
Eli Barzilay
2d9601089d
A lot of "MzScheme" -> "Racket"s.
2010-05-16 18:26:26 -04:00
Matthew Flatt
1a5e662433
doc corrections and completions
2010-05-08 11:46:14 -06:00
Matthew Flatt
28b4043077
rename all files .ss -> .rkt
2010-04-27 16:50:15 -06:00
Matthew Flatt
b7c184632b
racket/unsafe/ffi -> ffi/unsafe, etc.
2010-04-26 18:05:29 -06:00
Matthew Flatt
4acba84b5b
reorganize and extend FFI under racket/unsafe/ffi
2010-04-26 17:10:55 -06:00
Matthew Flatt
c7e723eef7
somewhat rackety core docs
2010-04-22 15:10:25 -06:00
Matthew Flatt
d7e4db3efd
fix some tests and docs after racket move
2010-04-20 17:28:07 -06:00
Matthew Flatt
6f0d6b28de
some mz and ffi changes from the mr2 branch
...
svn: r18099
2010-02-16 17:55:28 +00:00
Matthew Flatt
2dcfe69763
fix doc typo
...
svn: r17673
2010-01-16 14:23:16 +00:00
Eli Barzilay
6daf99c7bf
added keywords: to the custom _fun thing
...
svn: r17378
2009-12-21 08:52:44 +00:00
Eli Barzilay
64b11991c1
typo; clarify what happens on non-windows when 'windows is used
...
svn: r17372
2009-12-21 05:39:00 +00:00
Eli Barzilay
b6887adfe8
minor tweaking
...
svn: r17310
2009-12-15 18:09:44 +00:00
Matthew Flatt
87f05fed95
add #:save-errno option for foreign-function types
...
svn: r17299
2009-12-14 23:52:23 +00:00
John Clements
d18403a303
added simple example of _fun
...
svn: r17245
2009-12-09 00:06:13 +00:00
Matthew Flatt
21c6e08e4d
fix typo
...
svn: r16784
2009-11-15 14:26:32 +00:00
Matthew Flatt
c49b22fa2c
change _pointer to mean a reference to non-GCed memory; add _gcpointer (v4.2.2.6)
...
svn: r16546
2009-11-04 19:28:04 +00:00
Matthew Flatt
e704cc05cd
add a note about cwd with _path description
...
svn: r15150
2009-06-12 01:39:56 +00:00
Eli Barzilay
4288c6c2c7
The Scribble reader was improved to make it pull out the syntax
...
punctuations outside of the form, as it does with quote punctuations.
So things like this
#, @foo{...}
that required the space to make the @foo read as a scribble form are
now better written as
@#,foo{...}
This changes all such occurrences. (In case you see this change in
your files and are worried that there might be changes: I mechanically
verified that the result of `read'ing the modified files is identical
to the previous version.)
svn: r15111
2009-06-07 10:12:32 +00:00
Matthew Flatt
146f909afd
clarify version handling in ffi-lib docs
...
svn: r14734
2009-05-06 20:22:09 +00:00
Eli Barzilay
ff73a5395e
removed lots of "the the"s
...
svn: r14679
2009-05-01 21:02:51 +00:00
Eli Barzilay
c0a8a01222
Changed @itemize{...} to @itemize[...] (done after comparing the doc
...
tree and verifying that there are no changes).
(Also fixed a few bugs that were in the code)
svn: r14427
2009-04-05 17:46:20 +00:00
Matthew Flatt
7dc8e077ed
add 'not-provide-all-defined and 'nonimal-id suport for rename transformers; fix scheme/foreign and foreign docs to use it
...
svn: r14195
2009-03-20 16:59:28 +00:00
Matthew Flatt
2109cec2f4
free-id=? propagation through module exports; add 'not-free-identifier=? syntax property to disable free-id=? propagation; add prop:rename-transformer and prop:set-transformer; fix scheme/local so that local syntax bindings are visible to later definitions (v4.1.5.3)
...
svn: r14191
2009-03-19 20:22:18 +00:00
Eli Barzilay
078a8a2424
obviously that wasnt correct
...
svn: r13347
2009-02-01 09:22:55 +00:00
Eli Barzilay
eac9eb42ae
typo (I hope I got it right)
...
svn: r13344
2009-02-01 03:02:19 +00:00
Matthew Flatt
6c77acf6f1
fix Scribble output of multi-line error messages, especially when they contain a blank line; minor doc repairs
...
svn: r13325
2009-01-30 16:41:42 +00:00
Matthew Flatt
0663588ee1
change _string/utf-16 and _string/ucs-4 so that #f = NULL (for consistency with other pointer types), and drop the /null variants
...
svn: r13031
2009-01-07 17:49:14 +00:00
Matthew Flatt
090c73647f
atomic mode for objc methods; doc tweaks
...
svn: r13022
2009-01-06 19:52:40 +00:00
Matthew Flatt
cfbd48a4a4
clarify atomic-function responsibilities
...
svn: r13018
2009-01-06 14:29:00 +00:00
Matthew Flatt
61685c72f9
revised Mac OS X sleeping; optional atomic mode for FFI callbacks
...
svn: r13016
2009-01-06 13:07:45 +00:00
Matthew Flatt
d596401804
scheme/foreign: allow #f as NULL function pointer, allow callback as cpointer
...
svn: r12992
2009-01-03 18:51:15 +00:00
Matthew Flatt
9f5976e46b
scheme/foreign doc fixes related to _fpointer
...
svn: r12966
2009-01-01 21:54:06 +00:00
Matthew Flatt
82ead03b92
change _fpointer handling to work with function pointers in structs and other such uses; add 'function-ptr' casting operation
...
svn: r12913
2008-12-20 05:09:35 +00:00
Matthew Flatt
7dc56df949
add FFI types _string/utf-16/null and _string/ucs-4/null
...
svn: r12911
2008-12-19 23:59:33 +00:00
Matthew Flatt
e3f008c691
doc ffi/objc
...
svn: r12895
2008-12-19 02:06:50 +00:00
Matthew Flatt
2c95f77c31
ctype->layout in scheme/foreign; prototype Objective-C binding in ffi collection
...
svn: r12890
2008-12-18 20:05:21 +00:00
Eli Barzilay
c1123547e4
document basetype change
...
svn: r12883
2008-12-18 06:49:51 +00:00
Matthew Flatt
f830ee6184
reference and ffi corrections and clarifications
...
svn: r12880
2008-12-18 02:52:45 +00:00
Matthew Flatt
077e5a4666
change reference and some other docs to use #f instead of false/c and or/c insteda of one-of/c
...
svn: r12023
2008-10-13 19:45:37 +00:00
Eli Barzilay
8d06e0c707
rename holder -> keep
...
svn: r11932
2008-10-04 19:10:38 +00:00
Eli Barzilay
2886a95318
* Exported `cvector-ptr'
...
* Added `#:hold' to `_fun' for callbacks (will be changed to `#:keep'
soon, but better to have a checkpoint)
* _cprocedure also has a `hold' argument, and is now using keyword
arguments (it was getting crowded in the optional arguments
department)
* Documented everything that changed, with a longish descrption for
options for holding callback values.
* More tests, including tests for callbacks that would crash if the
callback values are not held.
svn: r11931
2008-10-04 19:01:17 +00:00
Matthew Flatt
d6ba5a2820
minor typos in FFI doc
...
svn: r11914
2008-09-30 14:37:46 +00:00
Eli Barzilay
493cd78170
documented abi arguments
...
svn: r11547
2008-09-04 23:24:38 +00:00
Eli Barzilay
e0a89b16e0
typo
...
svn: r11499
2008-08-31 18:17:51 +00:00
Matthew Flatt
9453aaaccf
assign authors to manuals
...
svn: r11287
2008-08-15 20:16:06 +00:00