mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 03:51:18 +00:00
Fix issue when parsing bitstructs, preventing them from implementing interfaces.
This commit is contained in:
@@ -68,6 +68,7 @@
|
|||||||
- Fix `poll` and `POLL_FOREVER`.
|
- Fix `poll` and `POLL_FOREVER`.
|
||||||
- Missing end padding when including a packed struct #1966.
|
- Missing end padding when including a packed struct #1966.
|
||||||
- Issue when scalar expanding a boolean from a conditional to a bool vector #1954.
|
- Issue when scalar expanding a boolean from a conditional to a bool vector #1954.
|
||||||
|
- Fix issue when parsing bitstructs, preventing them from implementing interfaces.
|
||||||
|
|
||||||
### Stdlib changes
|
### Stdlib changes
|
||||||
- Added '%h' and '%H' for printing out binary data in hexadecimal using the formatter.
|
- Added '%h' and '%H' for printing out binary data in hexadecimal using the formatter.
|
||||||
|
|||||||
@@ -1830,6 +1830,8 @@ static inline Decl *parse_bitstruct_declaration(ParseContext *c)
|
|||||||
|
|
||||||
if (!consume_type_name(c, "bitstruct")) return poisoned_decl;
|
if (!consume_type_name(c, "bitstruct")) return poisoned_decl;
|
||||||
|
|
||||||
|
if (!parse_interface_impls(c, &decl->interfaces)) return poisoned_decl;
|
||||||
|
|
||||||
TRY_CONSUME_OR_RET(TOKEN_COLON, "':' followed by bitstruct type (e.g. 'int') was expected here.", poisoned_decl);
|
TRY_CONSUME_OR_RET(TOKEN_COLON, "':' followed by bitstruct type (e.g. 'int') was expected here.", poisoned_decl);
|
||||||
|
|
||||||
ASSIGN_TYPE_OR_RET(decl->strukt.container_type, parse_type(c), poisoned_decl);
|
ASSIGN_TYPE_OR_RET(decl->strukt.container_type, parse_type(c), poisoned_decl);
|
||||||
|
|||||||
Reference in New Issue
Block a user