Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update ccall documentation #2145

Closed
vtjnash opened this issue Jan 27, 2013 · 8 comments
Closed

update ccall documentation #2145

vtjnash opened this issue Jan 27, 2013 · 8 comments
Assignees
Labels
docs This change adds or pertains to documentation

Comments

@vtjnash
Copy link
Member

vtjnash commented Jan 27, 2013

Struct support has been merged -- documentation needs to be updated accordingly

@ihnorton
Copy link
Member

Also need to document callbacks. I'm happy to do that and structs once struct stuff stabilizes. (least I can do)

@ihnorton
Copy link
Member

note re: callbacks, cfunction is understandably finicky about return types so it is necessary to convert() the return in order to make the return sig match:
function f1(cu::Ptr{Void}) return convert(Uint32, 1) end
otherwise you get:
function_ptr: type signature of f1 does not match
in cfunction at base.jl:143

@stevengj
Copy link
Member

Please also document the possibility of using dlopen and dlsym for the function argument of ccall in the manual. (See #2316).

@stevengj stevengj reopened this Feb 15, 2013
@pao
Copy link
Member

pao commented Feb 15, 2013

Please make that a new issue, rather than reopening one that is specifically for a different topic.

@pao pao closed this as completed Feb 15, 2013
@ihnorton
Copy link
Member

i'll send a doc pr tonight for those and the other C-related things in #2242.

@nolta
Copy link
Member

nolta commented Feb 15, 2013

Should this have been closed? According to the docs, "Currently, it is not possible to pass structs and other non-primitive types from Julia to C libraries."

@ihnorton
Copy link
Member

i think this was closed accidentally, but struct passing is not fully functional yet, see #1831 #2236 #2149 .

@pao
Copy link
Member

pao commented Feb 15, 2013

Oh, yeah, I misunderstood the original reopening. Wasn't reading carefully enough. Sorry @stevengj.

@pao pao reopened this Feb 15, 2013
@vtjnash vtjnash closed this as completed Mar 29, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs This change adds or pertains to documentation
Projects
None yet
Development

No branches or pull requests

5 participants