-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Indirect string one level for libffi
Every argument to libffi is dereferenced before being passed to the function, including pointers. For strings to be correctly passed, an additional level of indirection is needed. This fixes the need to use the "address of" operator `&' in the C function for strings passed to foreign functions that also take structures by value.
- Loading branch information
Liam M. Healy
committed
Oct 27, 2013
1 parent
b0f1979
commit a4c525c
Showing
2 changed files
with
8 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters