Refactor: command_create_f_to_o() and command_get_profile()

This commit is contained in:
0x221E
2026-01-18 22:39:32 +01:00
parent 3cba603e7c
commit c7a96b14e8
2 changed files with 31 additions and 21 deletions

View File

@@ -18,6 +18,12 @@ struct CommandOptions
StringView* files;
};
struct ProfileResult
{
size_t compiler_flags_count;
StringView* compiler_flags_buf;
};
struct Command
{
Arena* a;
@@ -28,8 +34,10 @@ struct Command
typedef struct Argument Argument;
typedef struct Command Command;
typedef struct CommandOptions CommandOptions;
typedef struct ProfileResult ProfileResult;
Command command_create_f_to_o(CommandOptions* co);
ProfileResult command_get_profile(CommandOptions* co);
int command_run(Command* cmd);