Commit Graph

49 Commits

Author SHA1 Message Date
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
Kevin Tew
02c658eaba Foreign.ssc comment
svn: r15057
2009-06-02 17:43:14 +00:00
Eli Barzilay
6562b6ac6f change foreign.ssc to match foreign.c
svn: r15054
2009-06-02 17:08:51 +00:00
Kevin Tew
27215bcbca Move global foreign creations to before MASTER GC switchout
svn: r15049
2009-06-02 16:24:19 +00:00
Eli Barzilay
e9bcf8b15f work around xform parsing issue
svn: r14766
2009-05-09 23:21:13 +00:00
Eli Barzilay
cd6fbedfa8 dont take sizeof(void), fix function typecase (both PR10234), fix error message
svn: r14764
2009-05-09 19:39:17 +00:00
Eli Barzilay
d39ff7e079 fix other comment terminator in .ssc, reflow comment
svn: r14163
2009-03-17 22:41:13 +00:00
Matthew Flatt
e8dba7c7b1 fix comment closer: merge to 4.1.5
svn: r14159
2009-03-17 20:49:04 +00:00
Eli Barzilay
c20a9ab7a8 yet more formattings
svn: r14078
2009-03-12 18:59:37 +00:00
Eli Barzilay
e59b597753 minor change to an error message
svn: r14070
2009-03-12 09:07:41 +00:00
Eli Barzilay
813e16489e more minor formattings
svn: r14069
2009-03-12 08:48:04 +00:00
Eli Barzilay
60a421e9ab reformatting, moving some undefs, etc -- preparing for a new preprocessor version
svn: r14067
2009-03-12 05:51: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
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
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
9ea047a05e fix ptr-set! to allow installing function points into an offset cpointer
svn: r12910
2008-12-19 23:39:55 +00:00
Eli Barzilay
d1e5dd842e use symbols for printout of primitive types
svn: r12894
2008-12-19 01:44:08 +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
6283205982 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
2008-12-18 06:48:10 +00:00
Matthew Flatt
ab18970f67 fix ffi passing offset null pointer
svn: r12879
2008-12-17 20:44:28 +00:00
Matthew Flatt
06efa91709 scheme_malloc_code and scheme_free_code
svn: r11958
2008-10-07 11:58:51 +00:00
Eli Barzilay
f2756fca3c properly mark callback memory as executable
svn: r11930
2008-10-03 19:52:51 +00:00
Eli Barzilay
f43990ee3b use sysv only on Windows (usable elsewhere, but its the default anyway)
svn: r11625
2008-09-10 02:22:59 +00:00
Eli Barzilay
39a388e426 ABI constants are not preprocessor definitions; STDCALL only on Windows
svn: r11570
2008-09-08 06:29:29 +00:00
Eli Barzilay
bf1e7a5ab0 Added optional abi argument to ffi-call', ffi-callback', `make-cstruct-type'.
svn: r11533
2008-09-04 10:35:41 +00:00
Matthew Flatt
441c509549 fix to 64-bit problems and let-values optimization (PRs 8748 and 8744)
svn: r6668
2007-06-15 22:54:56 +00:00
Matthew Flatt
e9385a910e 370.2
svn: r6369
2007-05-29 03:26:32 +00:00
Eli Barzilay
1e0f84d937 fix memory functions argument parsing, fix foreign tests
svn: r5711
2007-03-01 06:38:30 +00:00
Eli Barzilay
8b642ebc47 * Added `offset-ptr?' (returns #t for any offset, even if it's 0, #f for
no-offset or non-pointer)

* Added `ptr-add!' (must get `offset-ptr?' value, destructive, returns void)

* Added `ptr-offset' (works on any cpointer value)

* Added `set-ptr-offset!' for pointers, with an optional ctype multiplier
  (works only for `offset-ptr?' inputs)

* Changed memcopy, memmove & memset to have a single c-type argument.

svn: r5646
2007-02-20 08:42:34 +00:00
Matthew Flatt
92193f575a fix generation of SCHEME2C for non-ptr types
svn: r5624
2007-02-16 12:13:52 +00:00
Matthew Flatt
ba698cf9a4 fix SCHEME2C macro, which may help big-endian problem
svn: r5623
2007-02-16 11:36:47 +00:00
Matthew Flatt
4b765cfa5a 369.8
svn: r5594
2007-02-14 02:41:49 +00:00
Matthew Flatt
2211493242 avoid mis-aligned pointer (relevant for 3m) in ffi-set
svn: r3973
2006-08-05 12:57:59 +00:00
Matthew Flatt
b49af61b7c avoid mis-aligned pointer (relevant for 3m) in ffi-ref
svn: r3972
2006-08-05 12:50:34 +00:00
Eli Barzilay
1605526ba1 fixed more big-endian problems
svn: r3683
2006-07-11 21:44:37 +00:00
Eli Barzilay
f63abcc9de better macrology for c_to_scheme
svn: r3682
2006-07-11 20:34:59 +00:00
Matthew Flatt
0c19a5d838 Add WINAPI to EnumProcessModules decl
svn: r3596
2006-07-05 12:35:06 +00:00
Matthew Flatt
c71bffa4bd avoid reading past EnumProcessModules result array
svn: r3583
2006-07-03 16:24:16 +00:00
Matthew Flatt
fd00f718cf accidentally left epm_tried in test mode
svn: r3511
2006-06-27 22:29:37 +00:00
Eli Barzilay
d448f27c23 some comments
svn: r3510
2006-06-27 22:01:14 +00:00
Matthew Flatt
e21a9c093a make #f ffi-lib work the same in Windows as in Unix
svn: r3509
2006-06-27 21:37:34 +00:00
Matthew Flatt
32f1ddc860 fixed sign mismatches (as reported by gcc 4)
svn: r2626
2006-04-06 18:50:55 +00:00
Matthew Flatt
6a751d4e92 cast ptr to long insteda of int to avoid a warning on 64-bit machines
svn: r2573
2006-04-01 14:40:16 +00:00
Eli Barzilay
268ed5df20 * Undo big endian check in configure since it was already in mzscheme;
* Make foreign use special handling for big endians depending on accessing
  a location directly or accessing an argument.

svn: r623
2005-08-21 07:03:28 +00:00
Eli Barzilay
7c5318c704 Removed traces of lightning
svn: r270
2005-06-29 19:28:16 +00:00
Eli Barzilay
a559d96009 Fixed a stupid alignment bug on big-endian machines.
svn: r29
2005-05-31 21:29:34 +00:00
Eli Barzilay
e41b2fb359 Added src, set properties for all DOS files.
svn: r4
2005-05-27 21:53:51 +00:00