Changeset 4b54bd9 in mainline for uspace/lib/pcut/src/internal.h


Ignore:
Timestamp:
2018-09-12T13:23:03Z (6 years ago)
Author:
Vojtech Horky <vojtech.horky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3da0ee4
Parents:
275530a4
Message:

Update PCUT to latest revision

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/pcut/src/internal.h

    r275530a4 r4b54bd9  
    3535
    3636#include <pcut/pcut.h>
     37
     38#pragma warning(push, 0)
    3739#include <stdlib.h>
     40#pragma warning(pop)
    3841
    3942
     
    4851 */
    4952#ifdef PCUT_DEBUG_BUILD
     53#pragma warning(push, 0)
    5054#include <stdio.h>
     55#pragma warning(pop)
    5156#define PCUT_DEBUG_INTERNAL(msg, ...) \
    5257        fprintf(stderr, "[PCUT %s:%d]: " msg "%s", __FILE__, __LINE__, __VA_ARGS__)
     
    7883 */
    7984#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_s
    87 #endif
    8885
    8986extern int pcut_run_mode;
     
    125122        /** Test completed. */
    126123        void (*test_done)(pcut_item_t *, int, const char *, const char *,
    127             const char *);
     124                const char *);
    128125};
    129126
     
    135132void pcut_report_test_start(pcut_item_t *test);
    136133void pcut_report_test_done(pcut_item_t *test, int outcome,
    137     const char *error_message, const char *teardown_error_message,
    138     const char *extra_output);
     134                const char *error_message, const char *teardown_error_message,
     135                const char *extra_output);
    139136void pcut_report_test_done_unparsed(pcut_item_t *test, int outcome,
    140     const char *unparsed_output, size_t unparsed_output_size);
     137                const char *unparsed_output, size_t unparsed_output_size);
    141138void pcut_report_done(void);
    142139
     
    187184char *pcut_str_find_char(const char *haystack, const char needle);
    188185
     186/** Format string to a buffer.
     187 *
     188 */
     189int pcut_snprintf(char *dest, size_t size, const char *format, ...);
    189190
    190191#endif
Note: See TracChangeset for help on using the changeset viewer.