Add a new sub-dir under tests for pkg_printf. This pokes around in the private internals of pkg_printf, so it specially compiles pkg_printf.c using CPP trickery to make all the static functions in there extern. This means it has to be a separate binary from the tests in ../lib
modified libpkg/pkg_printf.c
@@ -37,7 +37,7 @@
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -1430,7 +1430,7 @@ iterate_item(struct sbuf *sbuf, const struct pkg *pkg, const char *format,
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -1478,7 +1478,7 @@ field_modifier(const char *f, struct percent_esc *p)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -1531,7 +1531,7 @@ field_width(const char *f, struct percent_esc *p)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -1639,7 +1639,7 @@ parse_format(const char *f, unsigned context, struct percent_esc *p)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -1773,7 +1773,7 @@ maybe_read_hex_byte(struct sbuf *sbuf, const char *f)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified libpkg/private/pkg_printf.h
@@ -28,7 +28,7 @@
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -213,12 +213,13 @@ _static struct percent_esc *set_list_defaults(struct percent_esc *, const char *
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
| + | |
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
modified tests/Makefile
@@ -1,5 +1,6 @@
|
|
| - | |
| + | |
| + | |
|
|
|
|
|
added tests/pkg_printf/Makefile
@@ -0,0 +1,65 @@
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
added tests/pkg_printf/test.c
@@ -0,0 +1,34 @@
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |