mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 20:11:17 +00:00
* Fix bug where analysing subexpr relied on them not being analysed. Fix issue where converting a const initializer bool to integer failed. Fix of issue where the case check assumed other cases were const values. * Fix bug where analysing subexpr relied on them not being analysed. Fix issue where converting a const initializer bool to integer failed. Fix of issue where the case check assumed other cases were const values. Remove PTHREAD for windows. * Fix bug where analysing subexpr relied on them not being analysed. Fix issue where converting a const initializer bool to integer failed. Fix of issue where the case check assumed other cases were const values. Remove PTHREAD for windows.
32 lines
679 B
C
32 lines
679 B
C
// Copyright (c) 2019 Christoffer Lerno. All rights reserved.
|
|
// Use of this source code is governed by the GNU LGPLv3.0 license
|
|
// a copy of which can be found in the LICENSE file.
|
|
|
|
#include "common.h"
|
|
#include "lib.h"
|
|
#include <stdarg.h>
|
|
|
|
void evprintf(const char *format, va_list list)
|
|
{
|
|
vfprintf(stderr, format, list);
|
|
}
|
|
|
|
void eprintf(const char *format, ...)
|
|
{
|
|
va_list arglist;
|
|
va_start(arglist, format);
|
|
vfprintf(stderr, format, arglist);
|
|
va_end(arglist);
|
|
}
|
|
|
|
NORETURN void error_exit(const char *format, ...)
|
|
{
|
|
va_list arglist;
|
|
va_start(arglist, format);
|
|
vfprintf(stderr, format, arglist);
|
|
fprintf(stderr, "\n");
|
|
va_end(arglist);
|
|
exit_compiler(EXIT_FAILURE);
|
|
}
|
|
|