void tst_brkm_(const char *file, const int lineno, int ttype, void (*func)(void), const char *arg_fmt, ...) { char tmesg[USERMESG]; EXPAND_VAR_ARGS(tmesg, arg_fmt, USERMESG); tst_brk__(file, lineno, ttype, func, "%s", tmesg); /* Shouldn't be reached, but fixes build time warnings about noreturn. */ abort(); }
/* * tst_brkm_() - Interface to tst_brk(), with no filename. */ void tst_brkm_(const char *file, const int lineno, int ttype, void (*func)(void), const char *arg_fmt, ...) { char tmesg[USERMESG]; #if DEBUG printf("IN tst_brkm_\n"); fflush(stdout); fflush(stdout); #endif EXPAND_VAR_ARGS(tmesg, arg_fmt, USERMESG); tst_brk__(file, lineno, ttype, NULL, func, "%s", tmesg); /* Shouldn't be reach, but fixes build time warnings about noreturn. */ abort(); }
void tst_brkm_(const char *file, const int lineno, int ttype, void (*func)(void), const char *arg_fmt, ...) { char tmesg[USERMESG]; EXPAND_VAR_ARGS(tmesg, arg_fmt, USERMESG); if (tst_test) { if (func) { tst_brk_(file, lineno, TBROK, "Non-NULL cleanup in newlib!"); } tst_brk_(file, lineno, ttype, "%s", tmesg); } else { tst_brk__(file, lineno, ttype, func, "%s", tmesg); } /* Shouldn't be reached, but fixes build time warnings about noreturn. */ abort(); }