Changeset 4b54bd9 in mainline for uspace/lib/pcut/src/internal.h
- Timestamp:
- 2018-09-12T13:23:03Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3da0ee4
- Parents:
- 275530a4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/pcut/src/internal.h
r275530a4 r4b54bd9 35 35 36 36 #include <pcut/pcut.h> 37 38 #pragma warning(push, 0) 37 39 #include <stdlib.h> 40 #pragma warning(pop) 38 41 39 42 … … 48 51 */ 49 52 #ifdef PCUT_DEBUG_BUILD 53 #pragma warning(push, 0) 50 54 #include <stdio.h> 55 #pragma warning(pop) 51 56 #define PCUT_DEBUG_INTERNAL(msg, ...) \ 52 57 fprintf(stderr, "[PCUT %s:%d]: " msg "%s", __FILE__, __LINE__, __VA_ARGS__) … … 78 83 */ 79 84 #define PCUT_RUN_MODE_SINGLE 2 80 81 /*82 * Use sprintf_s in Windows but only with Microsoft compiler.83 * Namely, let MinGW use snprintf.84 */85 #if (defined(__WIN64) || defined(__WIN32) || defined(_WIN32)) && defined(_MSC_VER)86 #define snprintf sprintf_s87 #endif88 85 89 86 extern int pcut_run_mode; … … 125 122 /** Test completed. */ 126 123 void (*test_done)(pcut_item_t *, int, const char *, const char *, 127 124 const char *); 128 125 }; 129 126 … … 135 132 void pcut_report_test_start(pcut_item_t *test); 136 133 void pcut_report_test_done(pcut_item_t *test, int outcome, 137 138 134 const char *error_message, const char *teardown_error_message, 135 const char *extra_output); 139 136 void pcut_report_test_done_unparsed(pcut_item_t *test, int outcome, 140 137 const char *unparsed_output, size_t unparsed_output_size); 141 138 void pcut_report_done(void); 142 139 … … 187 184 char *pcut_str_find_char(const char *haystack, const char needle); 188 185 186 /** Format string to a buffer. 187 * 188 */ 189 int pcut_snprintf(char *dest, size_t size, const char *format, ...); 189 190 190 191 #endif
Note:
See TracChangeset
for help on using the changeset viewer.