Commit Graph

123 Commits

Author SHA1 Message Date
Matthew Flatt
f9a3e7205a adjust handling of version numbers with dylib suffix
svn: r13476

original commit: 20f2e32f99baabf26954091350dbc94f825a11bd
2009-02-06 23:46:29 +00:00
Eli Barzilay
52854880c8 use the cstruct type directly, not via ctype-basetype
svn: r13345

original commit: cc6ff9d5d75e09c781c1043dd7651034fcb544ff
2009-02-01 03:31:41 +00:00
Matthew Flatt
365bc53e44 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

original commit: 0663588ee1f03c92ad6d4d0956a293d43e6f266d
2009-01-07 17:49:14 +00:00
Matthew Flatt
3fd92992ee revised Mac OS X sleeping; optional atomic mode for FFI callbacks
svn: r13016

original commit: 61685c72f9f4dc9c759011c02c013ee92ea185be
2009-01-06 13:07:45 +00:00
Matthew Flatt
2e250514c6 scheme/foreign: allow #f as NULL function pointer, allow callback as cpointer
svn: r12992

original commit: d596401804242ca39007e56d798e12f3852810f0
2009-01-03 18:51:15 +00:00
Matthew Flatt
000fe5277f fine-tune typechecking index entry
svn: r12920

original commit: ec600c59bb9caa15f10fb68844677e56a4ce86dc
2008-12-21 13:57:46 +00:00
Matthew Flatt
90abe67ff6 change _fpointer handling to work with function pointers in structs and other such uses; add 'function-ptr' casting operation
svn: r12913

original commit: 82ead03b92f7288fede1aaf6679312fc5d2093f2
2008-12-20 05:09:35 +00:00
Eli Barzilay
0a87e4bd26 fix _-identifier? typo
svn: r12912

original commit: a62b6a312809f2cc9b10a8cc9b92b73f4b9ef69f
2008-12-20 03:06:59 +00:00
Matthew Flatt
e73dd4b4af add FFI types _string/utf-16/null and _string/ucs-4/null
svn: r12911

original commit: 7dc56df9499127695e4fc09d754bdd4cdd411fa5
2008-12-19 23:59:33 +00:00
Matthew Flatt
588e3b23a5 ctype->layout in scheme/foreign; prototype Objective-C binding in ffi collection
svn: r12890

original commit: 2c95f77c3141a0827bd094d8d93b3e3fa39ef8b5
2008-12-18 20:05:21 +00:00
Eli Barzilay
ad2792fb85 ctype-basetype now holds:
* a symbol naming the type for primitive types
* a list of ctypes for cstruct types
* another ctype for user-defined ctypes

svn: r12882

original commit: 6283205982477aec904affbffa8eab57d239dd31
2008-12-18 06:48:10 +00:00
Eli Barzilay
fe2ab39bbd better syntax error message when define-cstruct gets an identifier without a _
svn: r12420

original commit: 987b16447822e647552a8c28f53b870d8638a2c9
2008-11-13 02:18:16 +00:00
Matthew Flatt
9c70829089 streamline srfi-4 index-argument check
svn: r12155

original commit: 8b666c17100e95ceef6a81501bcd8afa7bde55a2
2008-10-28 12:12:09 +00:00
Eli Barzilay
ae40ef8c69 register-finalizer is not unsafe
svn: r11994

original commit: 2bd0019110f83b31d50a075d4bb30e9339299b02
2008-10-12 06:13:46 +00:00
Eli Barzilay
84c6b9a032 rename holder -> keep
svn: r11932

original commit: 8d06e0c707295a6dee60e722dfafe40c4e2d7992
2008-10-04 19:10:38 +00:00
Eli Barzilay
92168b8ed4 * 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

original commit: 2886a9531844f75faf563516447524bb893c9796
2008-10-04 19:01:17 +00:00
Eli Barzilay
84f2904bb4 make _cpointer types return the result of the scheme->c function, if any
svn: r11888

original commit: c8be2b6f577700b33d5e5fa8c690c526cdfe022e
2008-09-27 06:35:08 +00:00
Eli Barzilay
901c60532c added #:abi keyword spec to _fun
svn: r11542

original commit: ade8dfad31e66319cf1409021295ba93720c1057
2008-09-04 22:05:10 +00:00
Eli Barzilay
9f077008d6 fix misuse of _
svn: r10569

original commit: ecfc0cd104265fadfe71ea05116aa29bccf90261
2008-07-03 00:49:52 +00:00
Matthew Flatt
6b6ae47140 new hash function names and ops (3.99.0.23)
svn: r9209

original commit: 021d4d7527f39cc01b6b8952f4a90e61e55e8956
2008-04-08 21:42:38 +00:00
Eli Barzilay
8dc8589a9a * Moved the srfi-4 functionality back into the foreign library, so its
available from there instead of only from srfi/4
* Added scheme/modspec-forms with `matching-identifiers-in' for a
  generic regexp-based selection of identifiers
* Used this new form to get make srfi/4 reprovide the relevant stuff
  from foreign
* Did the same for srfi/66 (and added the missing renames etc to
  foreign)

svn: r8944

original commit: 3c29bbda9d7cd8366b0bbe283f75aa1ce00c94d9
2008-03-11 13:06:29 +00:00
Noel Welsh
694ebaae8e I have changed the SRFI-4 implementation so structure types are exported for types except u8. This allows developers to subtype the SRFI-4 structures. I have also refactored the code, leading to a significantly simpler implementation
svn: r8918

original commit: a53d243e99a1d9a44b6cf9126b5d7eecdd0cb3e9
2008-03-07 16:24:06 +00:00
Eli Barzilay
0cc6039906 use new require specs in many places
svn: r8774

original commit: b1a08edd5a8c0db0bae4a9e052d9a93d1faabb4f
2008-02-23 09:42:03 +00:00
Matthew Flatt
15b2bb3c4a weak hash table for cstructs needs ephemerons
svn: r8353

original commit: 74062d996f96be38a2a36b202d6bbd6bc835edcb
2008-01-16 23:19:07 +00:00
Matthew Flatt
adca444b9a 3.99.0.9: binding links in docs use nominal import sources
svn: r8196

original commit: 7fc41024c0f09d03bed22c9e68bc2548f9222b77
2008-01-03 19:07:02 +00:00
Matthew Flatt
2d7b53140b lazy, force, delay in scheme/promise and scheme; clean up mzscheme some, and clean up the docs some
svn: r8053

original commit: 415cd0bf1529db4521b8372ebb21e76e6ff628be
2007-12-18 21:37:23 +00:00
Matthew Flatt
193490b000 finish FFI scribbling
svn: r7944

original commit: d7e8371254553dcbcab8bc56a9040ef37b8d617b
2007-12-11 00:32:41 +00:00
Matthew Flatt
5c959ff3e6 v3.99.0.2
svn: r7706

original commit: 39cedb62edf9258b051a22a29a90be9c6841956f
2007-11-13 12:40:00 +00:00
Matthew Flatt
a2a1b023c1 370.2
svn: r6369

original commit: e9385a910eac5c2f84dccbe6d66fed0741200785
2007-05-29 03:26:32 +00:00
Eli Barzilay
8ed8fd7a62 made it possible to try several versions, use it in readline and openssl
svn: r6138

original commit: 26ab4af5f70617fa1752190458c0533ceaef7cd8
2007-05-04 06:08:48 +00:00
Eli Barzilay
22126e8a01 u8vector is implemented using bytes
svn: r5921

original commit: bf8cd534cdac8545d04e417ea73963e8bef22b93
2007-04-11 06:46:17 +00:00
Eli Barzilay
2103c65b3d make-cvector with 0 args
svn: r5619

original commit: 492733aa40a6b73bb7adbbcba89ec8afa9b11eec
2007-02-15 20:39:17 +00:00
Matthew Flatt
8cbc701049 369.8
svn: r5594

original commit: 4b765cfa5a580e49bff9177104b5ec962d45b79c
2007-02-14 02:41:49 +00:00
Matthew Flatt
eed6ec36e9 369.4
svn: r5327

original commit: 91add0453f25090c3b11b3fae06a01d65dbb0b3e
2007-01-12 07:09:56 +00:00
Eli Barzilay
041cd1420d check identifiers
svn: r5135

original commit: e56e336194cc374e0edb7892fe8720fc5931e51a
2006-12-18 05:08:01 +00:00
Eli Barzilay
a73435da8c fix c->scheme for structs: set all tags
svn: r4799

original commit: b04926284f3dcf66c04856eb9a7bf4ae454847c9
2006-11-07 04:25:04 +00:00
Eli Barzilay
840ee32d3b typo
svn: r4448

original commit: b123c4b3940fa84108d100be20fd8f78a6c6a5fe
2006-09-27 19:12:26 +00:00
Eli Barzilay
f84645ec2a added _bytes/eof
svn: r4447

original commit: 6c2343f20cc5fdf43039308e1425b3584bb4f0d9
2006-09-27 19:11:45 +00:00
Eli Barzilay
ccc7e72733 error message typo
svn: r4295

original commit: 412a8b8cb3e33d3e9de33273afb0618f9bc9d3df
2006-09-10 16:36:43 +00:00
Matthew Flatt
621c98d7b4 missing conversion to internal version of get-ffi-lib
svn: r3539

original commit: 0dca64f8f49863650b6ad0147c5c2d889171d213
2006-06-29 14:10:41 +00:00
Eli Barzilay
4a5b63f079 redoing proper changes
svn: r3533

original commit: ed80f4a94561dd4af4993aa742c630c7ad18bb92
2006-06-28 21:01:38 +00:00
Matthew Flatt
2d3b1c32f4 unwind apparently accidental commit
svn: r3520

original commit: 788d291b132a9df09f9363518fa2f0cf060c1228
2006-06-28 11:40:24 +00:00
Eli Barzilay
8c65e0439b get-ffi-lib does not expect an ffi-lib input
svn: r3515

original commit: 8d9e8b852a1e22ade2f1872b8fe05cc3b7c4a423
2006-06-28 01:14:14 +00:00
Eli Barzilay
cf11f1ba8c sort comments
svn: r3074

original commit: f4386a4598f4718a8cc42a94ff6a93ab04c21def
2006-05-26 13:19:23 +00:00
Matthew Flatt
852bde8386 fixed typo
svn: r3071

original commit: 4a0d8018b181f490443964d7022397458b1c03d9
2006-05-26 12:12:26 +00:00
Eli Barzilay
daf01359f4 dont use get-lib-search-dirs if the input path is absolute
svn: r3058

original commit: c4e52e3919fd86f38eb3131014cebdf20571ba2e
2006-05-25 16:14:17 +00:00
Matthew Flatt
a68dc71b45 301.15: new install tree for Unix, moved docs, moved teachpacks, added config.ss
svn: r2962

original commit: c727afef0444e8a583c63f17fe6b993b983ba00c
2006-05-18 15:03:05 +00:00
Eli Barzilay
b9cd082e12 typo
svn: r2739

original commit: 4edd6f5b4f0e366bd3b296fd7e1975a7188f61b2
2006-04-23 00:53:23 +00:00
Eli Barzilay
b8d5164d65 typo in list->cblock (PR7990)
svn: r2611

original commit: 9b3965f900707ea666b324d1e59860558fe4b2e2
2006-04-05 22:18:16 +00:00
Matthew Flatt
4bc1b90a7c delay finalizer thread until needed
svn: r2494

original commit: d7d9efb1acedc5e438932decaa21ab1d7e192861
2006-03-24 13:41:41 +00:00