Skip to content

use saner parameter order for reallocate / reallocate_inplace #17837

Closed
@thestinger

Description

@thestinger

I wasn't really thinking about it when I added the old_size parameter and just put it at the end since it was a new addition. It would be better to match the order used by other APIs like mremap by putting the old size before the new size because it's more intuitive (old_ptr, old_size, new_size).

Metadata

Metadata

Assignees

Labels

A-allocatorsArea: Custom and system allocatorsC-cleanupCategory: PRs that clean code up or issues documenting cleanup.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions