mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-07-08 18:06:30 +00:00
[PR #1185] [MERGED] [IMPROVEMENT] Improve and simplify dprintf implementation #1974
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/CCExtractor/ccextractor/pull/1185
Author: @NilsIrl
Created: 1/15/2020
Status: ✅ Merged
Merged: 1/25/2020
Merged by: @cfsmp3
Base:
master← Head:dprintf_impl📝 Commits (1)
477dc1aImprove and simplify dprintf implementation📊 Changes
2 files changed (+15 additions, -37 deletions)
View changed files
📝
src/lib_ccx/ccx_common_common.c(+14 -36)📝
src/lib_ccx/ccx_common_common.h(+1 -1)📄 Description
In raising this pull request, I confirm the following (please check boxes):
My familiarity with the project is as follows (check one):
It now returns a value like the rest of the printf family. It doesn't
brute force the amount of memory that needs to be allocated.
It also removes a warning.
I do not believe there should be any performance concerns with this
implementation as it is what
glibcdoes (if anything it probably improves performance by a lot):https://code.woboq.org/userspace/glibc/libio/iovdprintf.c.html
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.