Skip to content

Refactor includes structure, getting rid of rust_internal.h #2118

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

Closed
wants to merge 5 commits into from

Conversation

jamorton
Copy link
Contributor

@jamorton jamorton commented Apr 3, 2012

Many changes to code structure are included:

  • removed TIME_SLICE_IN_MS
  • removed sychronized_indexed_list
  • removed region_owned
  • kernel_owned move to kernel.h, task_owned moved to task.h
  • global configs moved to rust_globals.h
  • changed #pragma once to standard guard in rust_upcall.h
  • got rid of memory.h
  • moved type stuff to rust_type.h
  • moved refcounting stuff to rust_refcount.h

Some things are still a bit weird, like the circular depencies between sched_loop and task, but I hope overall it's much more clean than before

Fixes #2083

jamorton added 2 commits April 3, 2012 02:46
Many changes to code structure are included:
- removed TIME_SLICE_IN_MS
- removed sychronized_indexed_list
- removed region_owned
- kernel_owned move to kernel.h, task_owned moved to task.h
- global configs moved to rust_globals.h
- changed #pragma once to standard guard in rust_upcall.h
- got rid of memory.h
@brson
Copy link
Contributor

brson commented Apr 3, 2012

Beautiful.

@jamorton
Copy link
Contributor Author

jamorton commented Apr 3, 2012

Gah. I swear it builds on my computer! I'll take a look

@jamorton
Copy link
Contributor Author

jamorton commented Apr 3, 2012

Try this, I suppose.

@brson
Copy link
Contributor

brson commented Apr 3, 2012

It was not effective.

@jamorton
Copy link
Contributor Author

jamorton commented Apr 3, 2012

Weird. PRIxPTR is clearly defined in inttypes.h which is included by rust_globals.h. Not sure what the problem is yet. I'll just install gcc here and keep trying stuff.

@brson
Copy link
Contributor

brson commented Apr 3, 2012

Thanks!

@brson brson closed this Apr 3, 2012
Kobzol pushed a commit to Kobzol/rust that referenced this pull request Dec 30, 2024
bors pushed a commit to rust-lang-ci/rust that referenced this pull request Jan 2, 2025
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.

rt: Get rid of rust_internal.h
2 participants