Skip to content

Commit eeb289a

Browse files
committed
Fixes #32: Now using a convenient uniform gadget for the inner implementation for all library functions. Also, this merits a version bump.
* Added: An `output_gadget_t` struct * Added: Named constructor idioms for `output_gadget_t`, instead of the function wrappers we have before: For `putchar_()` output, buffer output, discarding/no output, and arbitrary function output. * Implementation functions no longer need to maintain and pass around the parameters `buffer`, `maxlen`, `idx` - these are part of the uniform output gadget * Implementation functions no longer need to increase the position within the output (`idx)`, nor return the increased value to their caller. * No longer need a dummy buffer of size 1, anywhere.
1 parent be42658 commit eeb289a

File tree

2 files changed

+167
-119
lines changed

2 files changed

+167
-119
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ project(
77
LANGUAGES C
88
DESCRIPTION "Self-contained C implementation of printf, vprintf, sprintf and related functions"
99
HOMEPAGE_URL https://github.com/eyalroz/printf
10-
VERSION 5.3.0
10+
VERSION 6.0.0
1111
)
1212

1313
option(BUILD_TESTS "Build test programs for the library" OFF)

0 commit comments

Comments
 (0)