1
0
Fork 0
Commit Graph

44 Commits (637df9333d481028a97621e65c76c8df3535f49d)

Author SHA1 Message Date
Marco Paland 637df9333d feat(printf): added vprintf() support
Closes #43
6 years ago
Marco Paland 87e1c834f7 chore(printf, test_suite): clean up 6 years ago
Marco Paland d61d0146e6 Merge exponential support 6 years ago
Martijn Jasperse 56d9df0bd3 Added special-case handling to %E, added +inf and -inf handling, test cases 6 years ago
Martijn Jasperse 2019bc0192 Fix for left-justified %E formatting
Adding %E/%G test cases to suite
6 years ago
Marco Paland 369b7bbc98 fix(printf): remove float comparison
Add more float test cases
6 years ago
Marco Paland e9375ed897 test(test_suite): add more #-flag test cases 6 years ago
Marco Paland 80b42fef5f fix(printf): fixed support of NaN
(hot) fixes #37
6 years ago
Vedran Grudenic c7fbbfd600 patch for issue #40 (Digit missing from negative numbers in certain cases) 6 years ago
Marco Paland c013a0e8d6 fix(printf): fctprintf() must not append null terminator
Fixes #39, references #19
6 years ago
Marco Paland d46b3d2b25 chore(printf): cleanup secure strlen() function, added test cases 6 years ago
Marco Paland 00f2525d1a feat(printf): add # flag support for %b specifier
Closes #29
7 years ago
Marco Paland 21a282a2a4 fix(printf): ignore 0 flag for integers if precision is specified
Fixes #27
7 years ago
Marco Paland 7075d314a0 fix(printf): zero precision and zero value hash problem
Fixes #26
7 years ago
Marco Paland 6dae1687b5 fix(printf): fix negative argument precision
Fixes #25
7 years ago
Marco Paland f8a2be378d fix(printf): fix broken right-padding in _ftoa
Fixes #24
7 years ago
Marco Paland be30479110 fix(printf): fix trailing field width in itoa conversion
Fixes #21
7 years ago
Marco Paland e6b5331a36 fix(printf): fix floating point precision limit
Return the correct count of precision digits now. Fixes #22
7 years ago
Marco Paland a07b5d4200 fix(test_suite): fix vsnprint() mocking
Using a structure as va_arg stack mock is too architecture dependent, using a regular va_list now instead.
7 years ago
Marco Paland 810cb2b290 fix(printf): suppress terminating \0 in printf() output
Closes #19
7 years ago
Marco Paland 25b02d709f fix(test_suite): fix vsnprintf va_arg mock test case for x64 7 years ago
Marco Paland 7616d6f5e7 test(test_suite): added vsnprintf() test case 7 years ago
Marco Paland a50f1a8369 test(test_suite): modified fctprintf() test case
Renamed 'user' to 'arg'
7 years ago
Marco Paland 0116b74916 refactor(printf): changed oprintf() to fctprintf()
fctprintf() is more descriptive for its operation
7 years ago
Marco Paland 24c460b977 feat(printf): added new oprintf() function
Write formatted output directly to given output function
7 years ago
Marco Paland d12e52be4c fix(printf): pass dummy buffer for printf to _vsnprintf instead of NULL
Fixes #15
7 years ago
Marco Paland a6e81f9c59 test(test_suite): added more `float` test cases 7 years ago
Marco Paland 277aa259fc fix(printf,test_suite): fix compiler warnings 7 years ago
Marco Paland bb5a8af507 feat(printf): added support for %h, %hh, %j and %t length modifiers
- Renamed compiler switches
- Minor cleanup
Closes #12
7 years ago
Marco Paland 33f10559d6 refactor(printf): usage of (buffer) output routine, fixes return value
Buffer for printf is no longer needed, chars are directly written now.
Return value is specification conform now.
Fixes #11
7 years ago
Marco Paland 85dc7cf074 fix(printf): fixed floating point sign handling 7 years ago
Marco Paland 5a1780b72b fix(test_suite): fixed test cases 7 years ago
Marco Paland d74ad73009 fix(printf): fix snprintf buffer termination
Fixes #7 (partly)
7 years ago
Marco Paland dd8432003c fix(printf): fixed conversion buffer handling
Added according test cases
7 years ago
Marco Paland 281e44d53b test(test_suite): added 'z' test cases 7 years ago
Marco Paland f65dd08b1a Fixed 64 bit %p testcase, again 8 years ago
Marco Paland c355eaa2b0 Fixed 64 bit pointer casting 8 years ago
Marco Paland 7158a6f50f Added pointer testcase 8 years ago
Marco Paland 7936fc34c4 Changed printf.cpp to printf.c to be usable with 'C'-compilers
closes #1
8 years ago
Marco Paland b5b539d814 Added more test cases 8 years ago
Marco Paland 06b080dc45 Added test cases to improve coverage tests 8 years ago
Marco Paland 5813e52e3f Fix compiler/coverity warnings, add test cases 8 years ago
Marco Paland ccaef5d677 Added more test cases 8 years ago
Marco Paland 6eb828eb3a Added initial test cases 8 years ago