Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor|libdoomsday|DED: Definition memory management
This commit applies some C++ sugar so ease the handling of the DED v1 definitions. Since these are C POD structs, a DEDArray<> template was added to help with the allocating and releasing of memory owned by elements. DEDArray also handles the dynamic resizing of the array, as ded_count_s has been incorporated into it. Each individual DED data struct is now responsible for releasing and reallocating memory owned by it (such as Uris). These methods will be called by DEDArray as needed. The inline copy logic from the DED parser was moved to the DED structs.
- Loading branch information
Showing
6 changed files
with
627 additions
and
929 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.