Commit graph

1208 commits

Author SHA1 Message Date
jjgarcia
7626509a55 call-cfun and make-dynamic-callback now take an optional argument 2005-10-19 09:05:53 +00:00
jjgarcia
b5ecf3d165 Fixed typo 2005-10-19 09:01:50 +00:00
goffioul
585fd4aa33 Remove unneeded line that makes compilation fail with threads enabled. 2005-10-19 08:19:56 +00:00
goffioul
5d0c5ebafe Mingw32 Typo. 2005-10-19 08:03:02 +00:00
goffioul
305163009c Implement controllable calling convention for FFI/callbacks. 2005-10-19 07:54:24 +00:00
goffioul
e4ed682397 Fix compiled callbacks: order arguments correctly and restore stack in correct state. 2005-10-18 14:30:44 +00:00
japhie
fb350f46e8 - Fixed second half of typo ;) 2005-10-17 21:09:17 +00:00
goffioul
758ba5068c Fixes bugs in dynamic callbacks (MSVC). 2005-10-17 12:23:23 +00:00
jjgarcia
407fe16185 Fixed typo (fixed previously by Macjiek, redone by today's sync) 2005-10-17 11:51:46 +00:00
jjgarcia
0ee18977e0 Implementation of dynamically created callbacks. FASL files and DLLs are now garbage collected unless a symbol has been referenced with si::find-foreign-symbol. 2005-10-17 10:29:33 +00:00
japhie
40b4fdd62d - Fix :cstring argument type handling in ffi:c-inline; sockets do work again. 2005-10-13 18:58:54 +00:00
japhie
ddab9365a9 - #ifdef out symbols related to dynamic FFI (build on non-x86
platforms failed)
2005-10-13 11:07:45 +00:00
goffioul
45c74701d4 Make cl_core.libraries vector extendable. 2005-10-13 10:28:13 +00:00
jjgarcia
e1d3382279 Importing of C threads into the lisp world 2005-10-12 09:22:09 +00:00
goffioul
103730c6ba Remove duplicated (I guess) colon. 2005-10-12 07:46:44 +00:00
jjgarcia
9285b53303 Move variable declarations to the beginning of functions. 2005-10-12 07:41:58 +00:00
jjgarcia
8399d27d19 A patch got applied twice. 2005-10-11 09:04:04 +00:00
jjgarcia
4c146bc8c1 Simple implementation of callbacks, much like CFFI does. 2005-10-11 09:01:25 +00:00
goffioul
5e0c4037d5 Add dynamic FFI support under Win32/MSVC. 2005-10-10 14:54:57 +00:00
goffioul
b7dfab42cd Fix dynamic FFI: low-level functions are in the system package. 2005-10-10 14:38:18 +00:00
jjgarcia
6263acc77c Automatic generation of calls to C functions, plus fixes on the handling of :CSTRING arguments to C-INLINE 2005-10-10 11:11:48 +00:00
jjgarcia
f67be57b37 Automatic generation of calls to C functions, plus fixes on the handling of :CSTRING arguments to C-INLINE 2005-10-10 10:23:42 +00:00
goffioul
f1af99ebea Fix typos. 2005-10-10 08:42:22 +00:00
jjgarcia
ef8fbc903d Fixes for the old garbage collector 2005-10-08 14:46:09 +00:00
goffioul
b9e0348f37 - Added SI:LOAD-FOREIGN-MODULE to load a dynamic module into memory with load-only-once capability
- Added :DEFAULT as possible module argument to SI:FIND-FOREIGN-SYMBOL to look into the already
  loaded modules
2005-10-06 13:51:09 +00:00
jjgarcia
77e86b4c38 Name change of FIND-FOREIGN-VAR -> FIND-FOREIGN-SYMBOL 2005-10-04 13:51:36 +00:00
jjgarcia
96fcaaf344 New implementation of DEF-FOREIGN-VAR which can load shared libraries on demand (M. Goffioul) 2005-10-04 13:48:34 +00:00
jjgarcia
6e02b093c5 ECL's LOAD-FOREIGN-LIBRARY can only handle modules whose access path is known 2005-10-04 11:19:24 +00:00
jjgarcia
a04037ea70 The latest optimizations for the cross-compile phase had deactivated linking against GMP also in the normal builds 2005-09-21 17:32:27 +00:00
jjgarcia
60dd7ca769 Fixed typo 2005-09-21 09:57:51 +00:00
japhie
51136f3ef4 - Added possibility of configuring --without-gmp when cross-compiling
to reduce memory usage when true bignums aren't needed (doesn't work
  for native compilation because compiler needs bignums).
2005-09-19 21:52:46 +00:00
japhie
077a491319 - Added TAGS target for running etags. 2005-09-19 21:31:20 +00:00
jjgarcia
2d5bb45946 Replaced the code walker with some hooks in the bytecodes compiler and use this for the analysis of method functions. The optimizations of SLOT-VALUE references are removed, since they are buggy. 2005-09-19 09:31:01 +00:00
jjgarcia
5bc2e8ede3 Precompile all effective methods required by standard method combinations. 2005-09-19 09:30:48 +00:00
jjgarcia
19bb8501a7 Simplified the code for creating method combinations. Remove need for code walker here. 2005-09-19 09:30:34 +00:00
japhie
020764b055 - Line up vertical bars in (trace) when trace level is above 10. 2005-09-14 12:37:36 +00:00
japhie
14864f4b6d - Bugfix: make C::GET-RETURN-TYPE return function's return type, not
argument type list.
2005-09-14 11:57:40 +00:00
japhie
2aa8494146 - New variable: *trace-max-indent*, allows customizing maximal trace
depth that is indented.
2005-09-13 14:27:46 +00:00
japhie
e466f359e8 - Compiler warning fix. 2005-09-11 13:54:08 +00:00
japhie
78b0f75203 - Enable passing buildir to top-level configure in environment (makes
it possible to keep different build dirs handy).
2005-09-06 22:43:52 +00:00
goffioul
ff0f03ef28 Allow compilation without debug info under MSVC. 2005-09-05 09:27:02 +00:00
goffioul
797ffafcb5 Revert previous accidental commit. 2005-09-05 08:21:02 +00:00
goffioul
bac1b4634c Fix executable name handling under MSVC. 2005-09-05 08:09:22 +00:00
japhie
05548a030e - Typo fix. 2005-09-04 02:26:19 +00:00
japhie
011cec9e16 Oops... remove debug (print). 2005-09-04 01:44:22 +00:00
japhie
8464729a14 - Copying command-line pattern before substituting argument in order
not to destroy original +command-arg-rules+ constant alist (makes
  multiple -load, -eval etc. work again).
2005-09-04 01:18:37 +00:00
japhie
abd0969041 - Reverted AC_DEFINE(TCP) 2005-09-03 14:57:33 +00:00
jjgarcia
a78bdff27a Activated building ECL with debug information under Windows VC6 (M. Goffioul) 2005-09-02 15:29:25 +00:00
jjgarcia
47e85318c1 Explain the init-names option for building libraries (J. Stecklina) 2005-09-02 13:45:33 +00:00
goffioul
db73b0fdc8 Fix foreign function return type handling when it is specified with a user-defined foreign type that
is and alias for a foreign primitive type.
2005-09-02 12:45:50 +00:00