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

Allow referencing non-function symbols in native modules #1071

Closed
elly opened this issue Oct 25, 2011 · 3 comments
Closed

Allow referencing non-function symbols in native modules #1071

elly opened this issue Oct 25, 2011 · 3 comments
Labels
A-linkage Area: linking into static, shared libraries and binaries C-enhancement Category: An issue proposing an enhancement or a PR with one.

Comments

@elly
Copy link
Contributor

elly commented Oct 25, 2011

For example, libncurses relies heavily on a global pointer called stdscr, which has to be passed to many functions (e.g. keypad(3)). In general, it should be possible to extract non-functions from C libraries.

@Yoric
Copy link
Contributor

Yoric commented Oct 29, 2011

Also, values such as NaN.

@graydon
Copy link
Contributor

graydon commented Feb 15, 2012

See also #553, the native / unsafe system(s) ought to support globals defined in-rust and outside.

@Aatch
Copy link
Contributor

Aatch commented Jun 7, 2013

This is now possible. Full functionality is blocked on some sort of global mutable data, but that is a separate issue.

@Aatch Aatch closed this as completed Jun 7, 2013
coastalwhite pushed a commit to coastalwhite/rust that referenced this issue Aug 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-linkage Area: linking into static, shared libraries and binaries C-enhancement Category: An issue proposing an enhancement or a PR with one.
Projects
None yet
Development

No branches or pull requests

4 participants