Clean up some imports

This commit is contained in:
Bruce Hill 2024-09-05 02:37:45 -04:00
parent f5140086ae
commit fa5ca582ff
4 changed files with 1 additions and 9 deletions

View File

@ -2,7 +2,6 @@
#include <ctype.h>
#include <err.h>
#include <gmp.h>
#include <gc.h>
#include <math.h>
#include <stdbool.h>

View File

@ -51,7 +51,6 @@
#include <ctype.h>
#include <err.h>
#include <gc.h>
#include <gmp.h>
#include <limits.h>
#include <printf.h>
#include <stdbool.h>

View File

@ -1,9 +1,6 @@
// Recursive descent parser for parsing code
#include <ctype.h>
#include <gc.h>
#include <gmp.h>
#include <libgen.h>
#include <linux/limits.h>
#include <math.h>
#include <setjmp.h>
#include <stdarg.h>

View File

@ -1,7 +1,6 @@
// Logic for getting a type from an AST node
#include <ctype.h>
#include <gc.h>
#include <gmp.h>
#include <signal.h>
#include <stdarg.h>
#include <stdlib.h>
@ -1369,9 +1368,7 @@ bool is_constant(env_t *env, ast_t *ast)
auto info = Match(ast, Int);
if (info->bits == IBITS_UNSPECIFIED) {
Int_t int_val = Int$from_text(Text$from_str(info->str), NULL);
mpz_t i;
mpz_init_set_int(i, int_val);
return (mpz_cmpabs_ui(i, BIGGEST_SMALL_INT) <= 0);
return (Int$compare_value(int_val, I(BIGGEST_SMALL_INT)) <= 0);
}
return true;
}