mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Bitstruct implementation.
This commit is contained in:
committed by
Christoffer Lerno
parent
29e7af843a
commit
4f09b0c351
@@ -262,6 +262,12 @@ static inline int hex_nibble(char c)
|
||||
return conv[(unsigned char)c];
|
||||
}
|
||||
|
||||
static inline char nibble_hex(int c)
|
||||
{
|
||||
static const char *conv = "0123456789ABCDEF";
|
||||
return conv[c];
|
||||
}
|
||||
|
||||
static inline bool is_whitespace(char c)
|
||||
{
|
||||
switch (c)
|
||||
|
||||
Reference in New Issue
Block a user