reduced form calculated
This commit is contained in:
@@ -11,7 +11,7 @@ static void print_context_tokens()
|
||||
{
|
||||
int i;
|
||||
|
||||
ft_putchar('\n');
|
||||
ft_putchar_fd('\n', STDERR_FILENO);
|
||||
i = 0;
|
||||
while (tokens_g_err[i].type != TOKEN_END)
|
||||
{
|
||||
@@ -54,14 +54,14 @@ static void print_context_tokens()
|
||||
}
|
||||
i++;
|
||||
}
|
||||
ft_putchar('\n');
|
||||
ft_putchar_fd('\n', STDERR_FILENO);
|
||||
}
|
||||
|
||||
static void print_context_terms()
|
||||
{
|
||||
int i;
|
||||
|
||||
ft_putchar('\n');
|
||||
ft_putchar_fd('\n', STDERR_FILENO);
|
||||
i = 0;
|
||||
while (terms_g_err[i].position != TERM_END)
|
||||
{
|
||||
@@ -92,7 +92,14 @@ static void print_context_terms()
|
||||
ft_dprintf(STDERR_FILENO, " | %8s : %d\n", "exponent", terms_g_err[i].exponent);
|
||||
i++;
|
||||
}
|
||||
ft_putchar('\n');
|
||||
ft_putchar_fd('\n', STDERR_FILENO);
|
||||
}
|
||||
|
||||
static void print_context_polynom()
|
||||
{
|
||||
dprintf(STDERR_FILENO, "\npolynom[a]: %10g\n", polynom_g_err->a);
|
||||
dprintf(STDERR_FILENO, "polynom[b]: %10g\n", polynom_g_err->b);
|
||||
dprintf(STDERR_FILENO, "polynom[c]: %10g\n", polynom_g_err->c);
|
||||
}
|
||||
|
||||
void print_state()
|
||||
@@ -104,6 +111,8 @@ void print_state()
|
||||
print_context_tokens();
|
||||
if (terms_g_err)
|
||||
print_context_terms();
|
||||
if (polynom_g_err)
|
||||
print_context_polynom();
|
||||
}
|
||||
|
||||
int stop_errors(e_program_error err, const char *details, ...)
|
||||
|
||||
Reference in New Issue
Block a user