diff options
| author | Carson Fleming <cflems@cflems.net> | 2026-07-26 11:09:14 -0700 |
|---|---|---|
| committer | Carson Fleming <cflems@cflems.net> | 2026-07-26 11:09:14 -0700 |
| commit | 6a169de321b131e73b86967a1a8564365217275a (patch) | |
| tree | a407e682af226a9d77acbaef6cb8bf579f2a3ddf /lexer.c | |
| parent | 0cabbd2a0853c332c82af621b8716643741d758a (diff) | |
| download | ccc-6a169de321b131e73b86967a1a8564365217275a.tar.gz | |
clean up types
Diffstat (limited to 'lexer.c')
| -rw-r--r-- | lexer.c | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -1,4 +1,3 @@ -#include "ccc.h" #include "lexer.h" #include <stdlib.h> #include <stdio.h> @@ -104,11 +103,11 @@ static unsigned char digit_val(int c, unsigned char base) { static void lex_float_lit( struct token* p_token, unsigned char base, - float_lit_t iv + floating_t iv ) { if (consume_char() != '.') LEXER_PANIC("sanity error, float literal without decimal point"); - float_lit_t exp = 1.0; + floating_t exp = 1.0; while (is_hexadecimal(lookahead)) { int c = consume_char(); exp /= base; @@ -124,7 +123,7 @@ static void lex_float_lit( }; } -static void lex_int_lit(struct token* p_token, int_lit_t iv) { +static void lex_int_lit(struct token* p_token, integral_t iv) { unsigned char base = 10; if (iv == 0) { @@ -149,7 +148,7 @@ static void lex_int_lit(struct token* p_token, int_lit_t iv) { } if (lookahead == '.') { - lex_float_lit(p_token, base, (float_lit_t) iv); + lex_float_lit(p_token, base, (floating_t) iv); return; } |
