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

dlmalloc: add missing docs #23866

Merged
merged 4 commits into from
Mar 5, 2025

Conversation

virus-rpi
Copy link
Contributor

@virus-rpi virus-rpi commented Mar 5, 2025

This pull request includes several documentation improvements to the dlmalloc module. The changes primarily involve adding comments to functions to describe their purpose and functionality.

Documentation improvements:

  • vlib/dlmalloc/dlmalloc.v: Added a comment to the new function to describe its purpose of creating a new instance of Dlmalloc with the given system allocator.
  • vlib/dlmalloc/dlmalloc.v: Added a comment to the malloc function to describe its purpose of allocating a block of memory of the given size.
  • vlib/dlmalloc/dlmalloc_sys_nix.c.v: Added a comment to the get_system_allocator function to describe its purpose of returning an allocator that uses the system allocator.
  • vlib/dlmalloc/dlmalloc_sys_windows.c.v: Added a comment to the get_system_allocator function to describe its purpose of returning an allocator that uses the system allocator.

Copy link

Connected to Huly®: V_0.6-22270

Copy link
Member

@spytheman spytheman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent work.

@spytheman spytheman merged commit ae22bcf into vlang:master Mar 5, 2025
62 checks passed
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.

2 participants