mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Removed original_type, pure, removed bigint, added i128 type, lots of fixes to $Foo, reassigning ct type, catch/macro, "!", removed type inference.
This commit is contained in:
committed by
Christoffer Lerno
parent
1b086e06f1
commit
b4df56db54
@@ -250,6 +250,17 @@ static inline bool is_hex(char c)
|
||||
}
|
||||
}
|
||||
|
||||
static inline int hex_nibble(char c)
|
||||
{
|
||||
static int conv[256] = {
|
||||
['0'] = 0, ['1'] = 1, ['2'] = 2, ['3'] = 3, ['4'] = 4,
|
||||
['5'] = 5, ['6'] = 6, ['7'] = 7, ['8'] = 8, ['9'] = 9,
|
||||
['A'] = 10, ['B'] = 11, ['C'] = 12, ['D'] = 13, ['E'] = 14, ['F'] = 15,
|
||||
['a'] = 10, ['b'] = 11, ['c'] = 12, ['d'] = 13, ['e'] = 14, ['f'] = 15,
|
||||
};
|
||||
return conv[(unsigned char)c];
|
||||
}
|
||||
|
||||
static inline bool is_whitespace(char c)
|
||||
{
|
||||
switch (c)
|
||||
|
||||
Reference in New Issue
Block a user