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

make Cstring more usable as a return value #12889

Merged
merged 1 commit into from
Sep 4, 2015

Conversation

stevengj
Copy link
Member

As mentioned in #10799, it is natural for people to use Cstring and Cwstring as return values in ccall, not just as argument types. This makes that work a bit better by defining convert to pointer types and free and pointer_to_string on Cstring, to make it work more like Ptr{UInt8}.

@ScottPJones
Copy link
Contributor

Nice! This is for post 0.4, right?

@stevengj
Copy link
Member Author

I guess so; this is a pretty small patch, but it is not technically a bugfix.

jakebolewski added a commit that referenced this pull request Sep 4, 2015
make Cstring more usable as a return value
@jakebolewski jakebolewski merged commit 2a2524b into JuliaLang:master Sep 4, 2015
@stevengj stevengj deleted the more_cstring branch September 4, 2015 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants