Start str8 renaming
This commit is contained in:
@@ -34,7 +34,7 @@ void _runTests(WpTestFunc *func1, ...) {
|
||||
|
||||
wp_intern void handleTestResult(WpTestFuncResult result) {
|
||||
TerminalColour colour;
|
||||
Str8 result_text = wapp_str8_buf(64);
|
||||
WpStr8 result_text = wapp_str8_buf(64);
|
||||
|
||||
if (result.passed) {
|
||||
colour = WAPP_TERM_COLOUR_FG_BR_GREEN;
|
||||
@@ -47,7 +47,7 @@ wp_intern void handleTestResult(WpTestFuncResult result) {
|
||||
printf("[");
|
||||
wapp_shell_termcolour_print_text(&result_text, colour);
|
||||
wapp_shell_termcolour_clear_colour();
|
||||
printf("] " WAPP_STR8_SPEC "\n", wapp_str8_varg(result.name));
|
||||
printf("] " WP_STR8_SPEC "\n", wpStr8Varg(result.name));
|
||||
|
||||
if (!result.passed) {
|
||||
exit(EXIT_FAILURE);
|
||||
|
||||
@@ -19,10 +19,10 @@ BEGIN_C_LINKAGE
|
||||
|
||||
typedef struct WpTestFuncResult WpTestFuncResult;
|
||||
struct WpTestFuncResult {
|
||||
Str8 name;
|
||||
WpStr8 name;
|
||||
b8 passed;
|
||||
|
||||
wpMiscUtilsReservePadding(sizeof(Str8) + sizeof(b8));
|
||||
wpMiscUtilsReservePadding(sizeof(WpStr8) + sizeof(b8));
|
||||
};
|
||||
|
||||
typedef WpTestFuncResult(WpTestFunc)(void);
|
||||
|
||||
Reference in New Issue
Block a user