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

New internal layout #190

Closed
rdbo opened this issue Feb 27, 2024 · 4 comments
Closed

New internal layout #190

rdbo opened this issue Feb 27, 2024 · 4 comments

Comments

@rdbo
Copy link
Owner

rdbo commented Feb 27, 2024

Currently, libmem's internal layout is very entangled and messy, abusing procedural macros and doing crazy hacks to get it working.
While it does work, libmem becomes exponentially harder to maintain under these conditions.
So here is my proposal for a new internal layout that should give me less headache once it's finished:
image
This new layout tackles problems like:

  • Common APIs across OSes, but without procedural macros
  • Multiple character sets on Windows
  • Unique APIs for certain platforms
  • Better unification of Unix-like platforms
  • Handle multiple architectures

While it is only a sketch, it does help me visualise what should be done to make the codebase more neat and tidy.

@rdbo
Copy link
Owner Author

rdbo commented Feb 27, 2024

image
Possible directory structure

@rdbo
Copy link
Owner Author

rdbo commented Feb 27, 2024

image

@rdbo
Copy link
Owner Author

rdbo commented Feb 27, 2024

Perhaps call the internals winutils and posixutils

@rdbo
Copy link
Owner Author

rdbo commented May 30, 2024

Done

@rdbo rdbo closed this as completed May 30, 2024
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

No branches or pull requests

1 participant