public inbox for ~johnnyrichard/olang-devel@lists.sr.ht
 help / color / mirror / code / Atom feed
* [PATCH olang v2 0/2] ast: refactor: inline union typedefs
@ 2024-08-13 18:55 Johnny Richard
  2024-08-13 18:55 ` [PATCH olang v2 1/2] ast: inline ast_literal_value_t union typedef Johnny Richard
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Johnny Richard @ 2024-08-13 18:55 UTC (permalink / raw)
  To: ~johnnyrichard/olang-devel; +Cc: Johnny Richard

In order to reduce noise and remove the extra step when accessing union
attributes in structs, I have inlined all 'typedef union' within the
structs.

This will make the code more readable.

Johnny Richard (2):
  ast: inline ast_literal_value_t union typedef
  ast: inline ast_node_data_t union typedef

 src/ast.c                   | 20 ++++++++++----------
 src/ast.h                   | 30 +++++++++++++-----------------
 src/codegen_linux_aarch64.c | 12 ++++++------
 src/codegen_linux_x86_64.c  | 12 ++++++------
 src/parser.c                |  4 ++--
 src/pretty_print_ast.c      | 14 +++++++-------
 tests/unit/parser_test.c    | 14 +++++++-------
 7 files changed, 51 insertions(+), 55 deletions(-)


base-commit: 36b028f712ff2402761ea307467860c346d3c0a0
-- 
2.46.0


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-08-16 22:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-08-13 18:55 [PATCH olang v2 0/2] ast: refactor: inline union typedefs Johnny Richard
2024-08-13 18:55 ` [PATCH olang v2 1/2] ast: inline ast_literal_value_t union typedef Johnny Richard
2024-08-13 18:55 ` [PATCH olang v2 2/2] ast: inline ast_node_data_t " Johnny Richard
2024-08-13 18:04   ` [olang/patches/.build.yml] build success builds.sr.ht
2024-08-16  2:30 ` [PATCH olang v2 0/2] ast: refactor: inline union typedefs Carlos Maniero
2024-08-16 22:29   ` Johnny Richard

Code repositories for project(s) associated with this public inbox

	https://git.johnnyrichard.com/olang.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox