Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
config: Refactor escape_string function.
The escape_string function used for pretty printing from now on has a POOL_MEM as argument to store the escaped data in. It also now sizes the buffer right based on the len argument given. This way the calling code can be cleaned up quite a bit as it now does the same action multiple times which leads to much more code maintenance.
- Loading branch information
Marco van Wieringen
committed
Jul 28, 2016
1 parent
01cae66
commit cd2433e
Showing
4 changed files
with
94 additions
and
96 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
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
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.