- Feb 23, 2013
-
-
Stelian Ionescu authored
-
Stelian Ionescu authored
-
- Feb 21, 2013
-
-
-
-
-
Fixes issue with ABCL not finding things like "strcmp" when no libraries are loaded.
-
- Jan 18, 2013
-
-
CrLF0710 authored
-
- Jan 07, 2013
-
-
- Jan 06, 2013
-
-
This is especially useful when the type and count have been groveled.
-
The previous fix did not work with functions that return no values. Surround the code with braces, so that the C compiler does not complain about the extern declaration.
-
Allow the ECL backend to support different combinations of FFI in the same code by customizing a single special variable.
-
- Nov 24, 2012
-
-
- Nov 23, 2012
-
-
consing aliens.
-
- Nov 12, 2012
-
-
Liam M. Healy authored
In defcstruct, there was a line, removed in be626770, that set a default type class name by appending "-TCLASS". Without this line, the class will be directly FOREIGN-STRUCT-TYPE instead of a subclass. This is acceptable if the translate methods are not going to be redefined, but if they are, any change will apply to all instances (including instances of subclasses of other structures, which may call these with call-next-method). In fact, there is a check in define-translation-method to prevent redefinition with that macro, but of course a defmethod would be just as bad. While in principal one can specify the :class argument, this isn't always possible, for example, if the structure was made by groveling. Even so, it is a bad idea to make a default which has the potential for this kind of harm. This fix now permits GSLL to compile and load correctly.
-
- Nov 04, 2012
-
-
The interactive restart when reloading callbacks is no longer needed. A callable function pointer is now returned by CALLBACK and GET-CALLBACK, which wasn't the case previously. Now down to 25 failing tests! Callbacks "automacro-ly" now get a translation layer to convert back from native types to ones which ABCL expects. This translation is currently a work in progress, as not all cases are covered correctly. (Stas Boukarev) MAKE-FUNCTION-POINTER typo. Refactored to remove compile warnings about MAKE-IMMEDIATE-OBJECT. CFFI-SYS::%LOAD-FOREIGN-LIBRARY tries harder to figure out which library to load. Docstrings added.
-
-
- Jun 07, 2012
-
-
Liam M. Healy authored
Add method expand-to-foreign-dyn-indirect for type foreign-type-alias so that foreign-string-type will be expanded correctly (as a pointer).
-
- May 06, 2012
-
-
Stelian Ionescu authored
-
Stelian Ionescu authored
-
- May 01, 2012
-
-
Luís Oliveira authored
* Instead of a special variable, the parsed struct type instance is now annotated to let the type system know whether we're dealing with deprecated semantics (struct type canonicalizes to :pointer) or not. This approach should hopefully be much less error-prone. * Disabled translations for bare structs. * Fixed and commented out some bogus tests.
-
- Apr 30, 2012
-
-
Stelian Ionescu authored
This broke other stuff, so revert until we understand what's happening This reverts commit 944d3318.
-
Stelian Ionescu authored
-
Stelian Ionescu authored
-
- Apr 19, 2012
-
-
Liam M. Healy authored
-
- Apr 14, 2012
-
-
Luís Oliveira authored
-
Liam M. Healy authored
Create a new function #'foreign-expand-runtime-translator-or-binding which is what the methods expand-to-foreign-dyn (value var body (type enhanced-foreign-type)) expand-to-foreign-dyn-indirect (value var body (type translatable-foreign-type)) both call. Previously, the body of that function was the body of the first method, and the second method called that generic function. This did not work as intended however, the result being that libffi calls were passed the actual object instead of the pointer. This change fixes that problem.
-
Luís Oliveira authored
-
-
- Apr 12, 2012
-
-
Stelian Ionescu authored
-
- Mar 25, 2012
-
-
Liam M. Healy authored
New function expand-to-foreign-dyn-indirect split out from expand-to-foreign-dyn, and the latter function returned to its definition as given in the tip of master, ab10be4f. This function is used if the optional argument 'indirect to translate-objects is T, which in turn the case when functions are calling or return structures by value.
-
- Mar 23, 2012
-
-
Liam M. Healy authored
Multi-level optimizations depending what arguments are constantp; the constantp arguments need to be evaled.
-
- Mar 16, 2012
-
-
Liam M. Healy authored
-
- Mar 11, 2012
-
-
Luís Oliveira authored
Patch courtesy of Mark Evenson.
-
Luís Oliveira authored
Patch courtesy of Mark Evenson.
-
- Mar 10, 2012
-
-
Luís Oliveira authored
Patch courtesy of James Anderson.
-
- Mar 01, 2012
-
-
Liam M. Healy authored
New function mem-aptr will return the pointer to the requested element of the array, and add documentation. It is untested.
-
- Feb 05, 2012
-
-
Liam M. Healy authored
-
- Feb 04, 2012
-
-
Liam M. Healy authored
Use hash table for libffi-type-pointer instead of a class slot, and simplify #'libffi-type-pointer methods. Remove obsolete package definition file. Tests in cffi-tests not run due to error in load, but GSLL tests pass.
-
- Jan 29, 2012
-
-
Liam M. Healy authored
-